Question: Create a program to process and order amount. Your program will have a Class called caleTax, which contains a returning method called Taxrate. As
Create a program to process and order amount. Your program will have a Class called caleTax, which contains a returning method called Taxrate. As part of the main program, there will also be a non-returning method called Delivery. Prompt the user for an order amount. After accepting the order amount, your program passes the order amount to a method called Taxrate(Taxrate is defined in the caleTax Class) as a parameter; the tax rate is determined by the chart below and returned to the main program. (Note: This is a returning method, from the class) Order Total Less Than or equal to $1,000.00 Greater than $1,000.00 and also less than $5,000.00 Greater than or equal to $5,000.00 Tax Rate 2% 3% 6% The program then calculates the tax (order amount x tax rate +100) and adds it to the total (order amount + tax). The program then passes the total (with tax included) to a method called Delivery as a parameter; the delivery charge is determined, added to the total and displayed to the user. (Note: This is a non-returning method, from the main program) Save as "Ch78Test" [23 marks] Order Total Less than $1000.00 Greater than or equal to$1000.00, and also less than $5000 $65.00 >= $5000 $85.00 Delivery Charge $25.00
Step by Step Solution
3.44 Rating (151 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
