Project #11780 - week 5 assignment

Instructions

Modify your week 4 assignment to include an original user-defined function for portion A and a second user-defined function for portion B. You may name these functions and their arguments anything that are not reserved C++ keywords.The function for A should have the quantity of numbers passed in as a parameter and needs to return the largest number. The function for B should have no parameters and return the smallest number.

Assignment Resources

Refer to your textbook and review the Week 5 Sample code document (pseudocode) for help.

  • Download Week 5 Sample Code

Here is some suggested pseudocode for a possible greatest() function:

int greatest(int count)

{

// Initialize final result variable to largest number possible

// start a loop, increment from 0 to count

// Read next number

// Compare number to final result variable

// if number is greater than final result variable, then

// store in final result variable

// end of loop

// return final result

}

end of function greatest()

Subject Computer
Due By (Pacific Time) 09/08/2013 12:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy