$ 327 $ 759 $ 432 June $ 343 $ 690 $ 347 July $ 363 $ 681 $ 318 August $ 329 $ 782 $ 453 September $ 302 $ 791 $ 489 October $ 459 $ 898 $ 439 November $ 407 $ 923 $ 516 December Do you want to end program? (Enter no or yes): yes The Pseudocode Module main() //Declare local variables Declare endProgram = “no” While endProgram == “no” Declare Real notGreenCost[12] Declare Real goneGreenCost[12] Declare Real savings[12] Declare String months[12] = “January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December” //function calls getNotGreen(notGreenCost, months) getGoneGreen(goneGreenCost, months) energySaved(notGreenCost, goneGreenCosts, savings) displayInfo(notGreenCost, goneGreenCosts, savings, months) you want to end the program? Yes or Display “Do no” Input endProgram End While End Module Module getNotGreen(Real notGreenCost[], String months[]) Set counter = 0 While counter < 12 Display NOT GREEN energy costs “Enter for”, months[counter] Input notGreenCosts[counter] Set counter = counter + 1 End While End Module Module getGoneGreen(Real goneGreenCost[], String months[]) Set counter = 0
$ 327 $ 759 $ 432 June $ 343 $ 690 $ 347 July $ 363 $ 681 $ 318 August $ 329 $ 782 $ 453 September $ 302 $ 791 $ 489 October $ 459 $ 898 $ 439 November $ 407 $ 923 $ 516 December Do you want to end program? (Enter no or yes): yes The Pseudocode Module main() //Declare local variables Declare endProgram = “no” While endProgram == “no” Declare Real notGreenCost[12] Declare Real goneGreenCost[12] Declare Real savings[12] Declare String months[12] = “January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December” //function calls getNotGreen(notGreenCost, months) getGoneGreen(goneGreenCost, months) energySaved(notGreenCost, goneGreenCosts, savings) displayInfo(notGreenCost, goneGreenCosts, savings, months) Display “Do you want to end the program? Yes or no” Input endProgram End While End Module Module getNotGreen(Real notGreenCost[], String months[]) Set counter = 0 While counter < 12 Display “Enter NOT GREEN energy costs for”, months[counter] Input notGreenCosts[counter] Set counter = counter + 1 End While End Module Module getGoneGreen(Real goneGreenCost[], String months[]) Set counter = 0
2476825_1_lab-9-5-student.docx