reate a C# program. -Create 5 variables as decimals: Count, pricce, subtotal, tax, and total -Use a do...

70.2K

Verified Solution

Question

Programming

reate a C# program.

-Create 5 variables as decimals: Count, pricce, subtotal, tax, andtotal

-Use a do while loop. If the price is not -1, the loopcontinues.

Show count number (ie: Item 1, Item 2, Item 3...)

Enter price

Get subtotal

Increase count

-Calculate tax(0.035%) and total

Show total count, subtotal, tax,and total

Output:

Item1: $2.00

Item2:: $3.00

Item3: $1.00

Item4: $-2 (Note: A negative number will not besubstracted. It will only be ignored)

There are 3 Items in this order (This is the totalcount)

Subtotal: $6.00

Tax 0.035: $0.21

Total: $6.21

Answer & Explanation Solved by verified expert
3.6 Ratings (636 Votes)
using SystemIOusing Systemclass Programstatic void Mainstring argsint a1 double count0double price1 double    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students