Professional Documents
Culture Documents
Outline
In this lecture, we will discuss building Methods…
Little mini-programs within our program…
To do sub-tasks for us.
Sometimes, methods are also called procedures.
x = Int( Double d )
Take input parameter d,
Covert it to an Integer value, by truncation (chopping), and
Return the resulting value for assignment to variable x.
User-defined Functions (Example)
*New Requirement: Define and use one user-defined function in your solution.
Task 3 (Pyth. Triples) will be Graded
Submission Method: Electronic via APU Net
You can find instructions for submission in the APU Net Guide
(p. 85).
Use Internet Explorer 6 to submit (not Netscape)
Place your competed task in:
ReportSubmit > jarose > Introduction to Programming EA > Task_3
z You should submit your entire project Folder.
Due Date:
By class-time on Tuesday, May 15 (2007).
Together, this Task and your upcoming RAD assignment will
count as your MIDTERM grade.