# C# COIS1020H Question 2 Donuts - 88360

Solution Posted by

Rating : (19)A+
Solution Detail
Price: \$15.00
Request Description
Q2: Write a C# program that computes a the cost of donuts at your local Rich Horton’s store. The cost, of course, depends on the number of donuts you purchase. The following table gives the break down: Donuts Purchased Cost per Donut (\$) < 6 0.50 <= 15 0.40 >15 0.30 A customer can save on the HST (13%) if they buy 12 or more donuts so only charge HST (constant) on the purchase if the customer purchases less than 12 donuts. Finally, there is a cover charge for the luxury of actually getting one of Rich Horton’s gourmet donuts. The constant cover charge is a flat \$0.25 (before HST) which is added to the cost no matter how many donuts are purchased. The program should input the Customer’s Last Name (string), and the number of donuts purchased (int). The program should output (in a neat manner): Last Name, Number of Donuts Purchased, and Total Cost. If the user enters a negative number of donuts, print out an error message and do not print out the total.
Solution Description
Q2: Write a C# program that computes a the cost of donuts at your local Rich Horton’s store. The

cost, of course, depends on the number of donuts you purchase. The following table gives the

break down:

Donuts Purchased                                           Cost per Donut (\$)
Attachments