Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an C# console application that 1. Prompts the user to enter the subtotal of their purchase 2. Read the subtotal 3. Ask the user

Write an C# console application that

1. Prompts the user to enter the subtotal of their purchase

2. Read the subtotal

3. Ask the user if they are a 'SuperShopper' (ask Y for Yes, N for No)

4. Read in the answer

5. If the user is a SuperShopper

a. If the subtotal is $50 or more > Give the user a 20% discount

b. If the subtotal is less than $50 > Give the user a 10% discount

6. If not a SuperShopper the user gets no discount

7. Assume a tax rate of 8.25%

The output should look similar to below and MUST include the Subtotal, Discount Amount, Subtotal Less Discount, Tax Owed, and Total.

Enter your purchase subtotal 50

Are you a SuperShopper? (Y/N) Y

Subtotal 50

Discount Amount 10.00

Less Discount 40.00

Tax 3.300000

Total 43.300000

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

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions