+
. MODIFY THE PROGRAM TO ADD A FUNCTION TO SUM...

. MODIFY THE PROGRAM TO ADD A FUNCTION TO SUM...

Rating:
Rating
(0)
Author: Henry Carol
Description:

http://theperfecthomework.com/modify-the-program-to-add-a-function-to-sum-the-rainfall-for-each-year-hint-you-need-to-sumfor-each-year-you-can-do-this-using-a-looping-structure/

. MODIFY THE PROGRAM TO ADD A FUNCTION TO SUM THE RAINFALL FOR EACH YEAR. (HINT: YOU NEED TO SUMFOR EACH YEAR. YOU CAN DO THIS USING A LOOPING STRUCTURE).

1. Modify the program to add a function to sum the rainfall for each year. (Hint: you need to sumfor each year. You can do this using a looping structure). Support your experimentation withscreen captures of executing the new code.
 
2. Enhance the program to allow the user to enter another meteorological element such aswindspeed (e.g. 2.4 mph). Note, the user should be able to enter both rainfall and windspeed inyour new implementation. Support your experimentation with screen captures of executing thenew code.
 
3. Prepare a new test table with at least 2 distinct test cases listing input and expected output forthe code you created after step 2.
 
4. What happens if you change the NUMMONTHS and NUMYEARS definitions to other values? Besure to use both lower and higher values. Describe and implement fixes for any issues if errorsresults. Support your experimentation with screen captures of executing the new code.


(more)
See More
Try a College Course Free

Sophia’s self-paced online courses are a great way to save time and money as you earn credits eligible for transfer to over 2,000 colleges and universities.*

Begin Free Trial
No credit card required

25 Sophia partners guarantee credit transfer.

221 Institutions have accepted or given pre-approval for credit transfer.

* The American Council on Education's College Credit Recommendation Service (ACE Credit®) has evaluated and recommended college credit for 20 of Sophia’s online courses. More than 2,000 colleges and universities consider ACE CREDIT recommendations in determining the applicability to their course and degree programs.

Tutorial