Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:30, AsiaDeas4078
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
image
Computers and Technology, 22.06.2019 19:50, rosyposy43
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called. write a constructor for the above class that initialized both variables to zero. write a tostring to display both the tank and speed when the car is printed. modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter. write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
image
Computers and Technology, 22.06.2019 22:30, kierafisher05
What is the most popular genre of video games?
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, bsept1018
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
Do you know the correct answer?
You have been tasked with writing a program for a hardware store. they sell home improvement supplie...

Questions in other subjects:

Konu
Mathematics, 24.11.2020 01:30