Basic Requirements
Create a program that reads solar energy production data for the last week from a file, gets
input for the cost of the system, and outputs production, savings, days to recoup cost and
years to recoup the cost.
Don’t worry about being a solar engineer, just use the techniques covered in this chapter. No
prior knowledge is required for solar energy. Refer to pages 102-103 for how to read from a
file.
LiFiUnit3.java - Main Method
The program should read in a file called “energyProduced.txt”. The contents of the file are
at the bottom of the requirements. The file should be a normal text file with no
special formatting. The file should be in the same directory as the program.
on the same line as prompt, see an example.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |