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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:50, whocares1234
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
image
Computers and Technology, 22.06.2019 12:20, crodriguez87
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
image
Computers and Technology, 22.06.2019 19:20, sindy35111
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
image
Computers and Technology, 22.06.2019 19:30, Jbutler15
When creating a presentation in libre office impress, where does the editing of slides take place?
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 in other subjects:

Konu
Computers and Technology, 31.03.2021 21:30
Konu
Mathematics, 31.03.2021 21:30