Question: Debugsevenzas x Companion DebugSeven 3 . c 5 / / Program gets a quantity ordered from user I / then determines price and discount based
Debugsevenzas
Companion
DebugSevenc
Program gets a quantity ordered from user
I then determines price and discount based on quantity
I price per item before discounts is $
order or more, get a discount
order to get a discount
order to get a discount
using Systems
using static System.Console;
using System.Globalization;
class DebugSeven
static void Main
int quantitys
double price;
quantity GetQuantity s
price calculateprice ing quantityle
WritelineFinal price for items is
quantity, price.ToString cultureinfo.GetcultureInfoenus;
private static Geteuantity
i
quan
Write Enter number of items s
quantity Convert.ToIntReadLine:B
private calculateprice moit quantityordered
double PRICEPERITEM
double price
double discount
int quantimits
doubilemits
for inf mits. Length ;
if quantityordered mits
discount mits;
price quantttyondered PRICEPERITENA
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
