Question: using System; using static System.Console; using System.Globalization; class DebugEight 1 { static void Main ( ) { int orderNum, quantity; double total; const double PRICE
using System;
using static System.Console;
using System.Globalization;
class DebugEight
static void Main
int orderNum, quantity;
double total;
const double PRICEEACH ;
Call GetData with 'out' parameters
GetDataout orderNum, out quantity;
Calculate total cost
total quantity PRICEEACH;
Display the order details and total cost
WriteLineOrder # Quantity ordered orderNum, quantity;
WriteLineTotal is total.ToStringC CultureInfo.GetCultureInfoenUS;
public static void GetDataout int order, out int amount
string s s;
Prompt user for order number
WriteEnter order number: ;
s ReadLine;
Prompt user for quantity
WriteEnter quantity: ;
s ReadLine;
Convert input strings to integers
order Convert.ToInts;
amount Convert.ToInts;
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
