Lab 10 Going Green and File Interaction Solution

Lab 10 Going Green and File Interaction Solution

Write the Pseudocode, Flowchart, and Python code for the following programming problem from Lab 9.5.  Note that the in addition to what the program already does, it should create a file called savings.txt and store the savings array to a file.  This should be done in append mode in Python, but not in Raptor as it is not an option.  The pseudocode is provided.

 

Last year, a local college implemented rooftop gardens as a way to promote energy efficiency and save money.  Write a program that will allow the user to enter the energy bills from January to December for the year prior to going green.  Next, allow the user to enter the energy bills from January to December of the past year after going green.  The program should calculate the energy difference from the two years and display the two years worth of data, along with the savings.  Additionally, the savings array should be printed to a file called savings.txt. 

 
Powered by