Computers and Technology

Develop a C++ program and a flowchart that calculates a cost to replace all generators and solar panels for an energy business. Customers paying cash get a ten percent discount applied to the total cost of
generator and solar panels. Customers financing the purchase incur a fifteen percent finance charge based on the total
cost of the generator and solar panels. Generators costs $7500.00 each, and solar panels cost $500.00 each. The tax is
7.5% (.075).
Requirements:
1. Use the following variables of the appropriate type: name of the company selling the energy equipment, the
cost per each generator and solar panels, number of purchased, discount if paying cash, sales tax rate.
Generator costs $7500 each, and solar panels cost $500.00 each. Sales Tax Rate = .075, Discount Percent = .10,
and Finance Charge = .15.
2. Variable names must be descriptive.
3. Use additional variables to hold subtotals and totals.
4. For customers paying cash, the discount should be subtracted from the total equipment cost.
5. For customers financing the purchase, the finance charge should be added to the total energy equipment cost.
6. The body of your program must use variables only; there should not be any “hardcoded” values in the output
statements. An example of hardcoding is
Cout<<” Cost for 6 solar panels is $3000.00”< 7. Use cout to output the values of the variables to the console. Your cout statement MUST use the variables to
display the values
8. Display the cost of the equipment, tax and average cost per piece of equipment. The average cost will be the
total cost divided by the number of generator and solar panels purchased. Display the discount if the customer
decides to pay cash or the finance charge if the customer finances the purchase.
9. Output must be labeled and easy to read, as shown in the sample output below.
10. The program must be documented with the following:
a. // Name
b. // Date
c. // Program Name
d. // Description
11. Develop a flowchart
Hints:
The total cost of equipment = cost per generator * number of generators purchased + cost per string trimmer * number
of string trimmer purchased
Calculate the cost of paying cash or financing
Calculate the tax
The average price per energy equipment = Total cost divided by the number of energy equipment purchased
Use getline to get strings and cin to get numbers.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, daniella0123
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
image
Computers and Technology, 23.06.2019 02:00, hctlawton
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
image
Computers and Technology, 23.06.2019 09:10, babyskitt
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
image
Computers and Technology, 23.06.2019 19:00, nayo2006
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
Do you know the correct answer?
Develop a C++ program and a flowchart that calculates a cost to replace all generators and solar pa...

Questions in other subjects: