subject

You have been tasked with writing a program for a hardware store. they sell home improvement supplies to employees, contractors and the general public. they have three different types of discounts. employees get a 10% discount, orders over $800 get a 5% discount, and contractors get a 20% discount. a customer can get only one discount but they may have an order over $800, be an employee and/or a contractor (or any combination) so you want to be sure to give them the largest discount they have earned and don’t ask them which of those they can be, because they can be all or none of them. the program will take in the total of the order, apply any discounts, apply 8% sales tax and come up with the final amount of the order. customers over 90 years old do not have to pay sales tax. they want to see the amount of the original order, the amount of any discounts, the subtotal, the amount of tax (zero for old people) and the final amount of the bill. make sure you not only get the correct answer but your code is efficiently written. don’t ask unnecessary questions (ie don't ask them if they are employee if they are a contractor, that's already the highest discount) and pay attention to how you nest your if statements.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
question
Computers and Technology, 24.06.2019 23:50
Which career involves analyzing various factors that influence the customer decision-making process? analyze various factors that influence the customer decision-making processes. reset next
Answers: 2
You know the right answer?
You have been tasked with writing a program for a hardware store. they sell home improvement supplie...
Questions
question
Mathematics, 05.05.2020 04:44
question
Advanced Placement (AP), 05.05.2020 04:45
question
Health, 05.05.2020 04:45
Questions on the website: 13722367