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 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately
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
Arts, 18.05.2021 20:30
question
Biology, 18.05.2021 20:30
question
Arts, 18.05.2021 20:30
Questions on the website: 13722360