Create a program to process and order amount. Your program will have a Class called caleTax,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Required a. Use professional judgment in deciding on the preliminary judgment about materiality for earnings, current assets, current liabilities, and total assets. Your conclusions should be stated...
-
Evaluate each expression if possible. (-3)4
-
Klumb Inc. uses a periodic inventory system. Its records show the following for the month of May, in which 74 units were sold. InstructionsCalculate the ending inventory at May 31 using the (a) FIFO,...
-
Identify the phase transition occurring in each of the following. a. Mothballs slowly become smaller and eventually disappear. b. Rubbing alcohol spilled on the palm of the hand feels cool as the...
-
In Figure Q27.12, clocks \(\mathrm{C}_{1}\) and \(C_{2}\) in frame \(S\) are synchronized. Clock \(\mathrm{C}^{\prime}\) moves at speed \(v\) relative to frame S. Clocks \(\mathrm{C}^{\prime}\) and...
-
Chinook during certain seasons strong winds called Chinooks blow from the west across the eastern slopes of the Rockies and downhill into Denver and nearby areas. Although the mountains are cool. The...
-
During which phase below would a project manager monitor the work performed to create a deliverable? Phase 4 Phase 3 Phase 1 Phase 2
-
Create a new C++ project titled "CIS22A Lab 5" in the CodeBlocks IDE. Use the "Console Application project option. Use loop to approximate the Pl value In the 14th century, Babylonian mathematicians...
-
Question 1 of 15 Next QuestionUnsaved change Moving to the next question prevents changes to this answer. Question 1 To raise capital, Sameria and Yael plan to sell stock to between 150 and 200...
-
what is the Lululemon Inventor valuation method?
-
Coronado Inc. issued $ 9 2 0 , 0 0 0 of 1 0 % , 1 0 - year bonds on June 3 0 , 2 0 2 5 , for $ 8 1 4 , 4 7 2 . This price provided a yield of 1 2 % on the bonds. Interest is payable semiannually on...
-
The governing authority for regulating the financial reporting of both governmental and nonprofit organizations. The financial statements required. What is required in the notes and other narratives...
-
Explain the WEB Equation, its component parts, and the connection between behavior and strategy as illustrated by the equation.
-
Clark Industries purchases an unused factory and all of the equipment, vehicles, tools and major spare parts for the equipment within the factory. Clark begins production of widgets at the factory...
-
If company sells its accounts receivables to a factor (such as a finance company), a. the selling company records a contra-revenue for the fee paid to the factor. b. the selling company remains...
-
For all of the following words, if you move the first letter to the end of the word, and then spell the result backwards, you will get the original word: banana dresser grammar potato revive uneven...
-
Original activity-based costing and time-driven activity-based costing Garber Company uses a traditional activity-based costing system to assign $600,000 of committed resource costs for customer...
-
Waste, rework, and net cost of scrap are examples of what kinds of quality costs?
-
Boris Company introduced JIT manufacturing last year and has prepared the following data to assess the benefits from the change: Inventory financing costs are 12% per year. Support costs are based on...
-
All of the following are characteristics of preference shares except: A. They are either callable or putable. B. They generally do not have voting rights. C. They do not share in the operating...
-
Consider the pairwise correlations of monthly returns of the following asset classes: Based solely on the information in the preceding table, which equity asset class is most sharply distinguished...
-
The type of equity voting right that grants one vote for each share of equity owned is referred to as: A. Proxy voting. B. Statutory voting. C. Cumulative voting.
Study smarter with the SolutionInn App