Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ICS3U Chapter 7_8 Test 1 . Create a program to process and order amount. Your program will have a Class called calcTax, which contains a

image text in transcribed
ICS3U Chapter 7_8 Test 1 . Create a program to process and order amount. Your program will have a Class called calcTax, 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 calcTax 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 Tax Rate Less Than or equal to $1,000.00 2% Greater than $1,000.00 and also less than $5,000.00 3% Greater than or equal to $5,000.00 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) Order Total Delivery Charge Less than $1000.00 $25.00 Greater than or equal to$ 1000.00, and also less than $5000 | $65.00 >= $5000 $85.00 Save as "Ch78Test" [23 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions