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, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
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, 10.09.2020 23:01
question
English, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
World Languages, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
History, 10.09.2020 23:01
question
Biology, 10.09.2020 23:01
question
Social Studies, 10.09.2020 23:01
question
Physics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
English, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 10.09.2020 23:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
Questions on the website: 13722363