Placeholder

COMP 101 Prepare code that prompts user to enter unit price

$5.00

Quantity:

Product Description

COMP 101 Prepare code that prompts user to enter unit price

1. Question

Prepare code that prompts user to enter unit price,  quantity of sale, sales tax rate, and user name.

Program prints total sale and user name

Program must check that sales rate is within 5% and 9%

quantity within 1 and 50

and price within 0.1 and $99.50

Appropriate messages are printed in each invalid case.

Provide a minimum of 3 test cases

Provide c# code.

2.  Discussion

Experiment with simple sequential print statements using an online C# compiler. (use ideone.com)

Write simple code to print multiple output statements

Write simple code to enter user name

Write simple code to print user name

Discuss your experiment with the class and show your statements.