subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
You know the right answer?
Develop a C++ program and a flowchart that calculates a cost to replace all generators and solar pa...
Questions
question
Mathematics, 13.07.2019 14:00
question
Computers and Technology, 13.07.2019 14:00
Questions on the website: 13722360