Question: Using C#, Visual Studio, Assume that you've started a business that sells sporting goods equipment online. You currently have operations in Arizona and California. As
Using C#, Visual Studio, Assume that you've started a business that sells sporting goods equipment online. You currently have operations in Arizona and California. As such, you only need to charge tax if the order comes from one of these states. Assume the tax rate is 10% for California and 5% for Arizona. You also need to charge for shipping. You charge a flat rate of $12.99 for orders less than $50 and a rate of $4.99 for orders between $50 and $100. You do not charge shipping for orders $100 and over.
Create a program that allows employees to calculate the tax and shipping charges. The program should do the following:
Note: Your results should be output to decimal places, and they should use the appropriate format specifiers.
Allow the user to enter the total amount of the order (subtotal).
Allow the user to enter the state (CA for California and AZ for Arizona).
Store the information entered by the user into a separate class, and create instance methods to calculate the tax and the shipping amount.
Output the subtotal, tax amount, shipping amount, and grand total (i.e., order amount plus the tax and shipping amount).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
