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, 23.06.2019 16:30, mirmir62
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
image
Computers and Technology, 23.06.2019 18:40, cyn95xx
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, littledudefromacross
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
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:

Konu
Mathematics, 20.10.2020 20:01
Konu
Mathematics, 20.10.2020 20:01