ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 04 May 2017 My Price 8.00

Create a program that reads solar energy

Slightly confused on how to write this program.  Any help is greatly appreciated!!!

 

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 cost.

LiFiUnit3.java - Main Method

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.

• Use a named constant for the cost of electricity at .085.

• Read in all data from the file. (refer to pages 102-103)o Get input from the file and store production values for each in doubles.

• Get input for “Total system cost” in dollars and stored as an integer. Get inputon same line as prompt, see example.

• Output the following items per the sample below:

• Total Energy Produced in one week.

• Total Savings for one week (total production times cost for electricity)

• Total Savings per day (the average)

• Days to recoup the system cost (truncated)o Use typecasting to integer to get rounded value

• Years to recoup the system cost (truncated)o Use typecasting to integer to get rounded value

• Ensure columns are aligned, use escape characters to align columns.

Answers

(11)
Status NEW Posted 04 May 2017 04:05 AM My Price 8.00

-----------

Not Rated(0)