Question: Help in C#, DebugEight1.cs has syntax and/or logical errors. Determine the problem(s), and fix the program. Whenever you fix the program, please run and enter

Help in C#, DebugEight1.cs has syntax and/or logical errors. Determine the problem(s), and fix the program.

Whenever you fix the program, please run and enter these numbers to see if you get it right. (23,4)

Output: it has to look exactly like this.

Enter order number Enter quantity Order #23. Quantity ordered = 4 Total: 15.96

Code:

// GetData() method accepts order number and quantity // that are used in the Main() method // Price is $3.99 each using System; using static System.Console; class DebugEight1 { static void Main() { int orderNum, quantity; double total; const double PRICE_EACH = 3.99; GetData(orderNum; quantity); total = quantity * PRICEEACH; WriteLine("Order #{0}. Quantity ordered = {1}", orderNum, quantity; WriteLine("Total is {0}", total.ToString("C")); } public static void GetData(out order, out amount) { String s1, s2; Write("Enter order number "); s1 = ReadLine; Write("Enter quantity "); s2 = ReadLine; order = ConvertToInt32(s1); amount = ConvertToInt32(s2);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!