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 16:10
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password.keep yourself loggedin when you leave your computer.don’t write your password down and leave it whereothers can find it.share your password with your friends.each time you visit a website,retain the cookies on your computer.use a long password with mixed characters.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 24.06.2019 15:20
Local area networks use many of the same network technologies and the internet, only on a smaller scale. devices that access lans are equipped with a network interface that contains circuitry for wireless or wired connections. devices also have a physical address, in addition to the ip addresses acquired from a dhcp server. the most popular wired technology is . the most popular wireless technology is , which can be configured as a(n) or star topology. setting up a lan and configuring its router is fairly easy. the first step is to change the standard to one that is secure. next, create a(n) that uniquely identifies the network by name. it is also important to activate wireless to prevent wireless signals from being intercepted during transmission. a limited-access network can be created for visitors to use. by activating , the router will be able to assign ip addresses to each device that joins the network. to connect to a secure lan that is protected by encryption, an encryption , or password, is required. lans can be used to access data collected by iot devices and the networks that tie these devices together. technologies such as rfid, nfc, bluetooth smart, zigbee, and z-wave offer -power links, essential for battery-powered devices that can’t expend excess amounts of energy transmitting data.
Answers: 1
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
Chemistry, 11.10.2021 18:00
Questions on the website: 13722367