Page 1 of 1

Debugging Exercise 8-1 Instructions Debug Eight1.cs has syntax and/or logical errors. Determine the problem(s), and

Posted: Fri Jul 08, 2022 7:28 am
by answerhappygod
Debugging Exercise 8 1 Instructions Debug Eight1 Cs Has Syntax And Or Logical Errors Determine The Problem S And 1
Debugging Exercise 8 1 Instructions Debug Eight1 Cs Has Syntax And Or Logical Errors Determine The Problem S And 1 (78.31 KiB) Viewed 63 times
Debugging Exercise 8-1 </> Instructions Debug Eight1.cs has syntax and/or logical errors. Determine the problem(s), and fix the program. Grading When you have completed your program, click the Submit button to record your score. DebugEight1.cs + 1 // GetData() method accepts order number and quantity 2 // that are used in the Main() method 3 // Price is $3.99 each 4 using System; 5 using static System.Console; 6 using System. Globalization; 7 class DebugEightl 8 { 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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", CultureInfo.GetCulture Info("en-US"))); } public static void GetData(out order, out amount) { String si, $2; Write("Enter order number "); s1 ReadLine; Write("Enter quantity "); s2 ReadLine; order = ConvertToInt32(1); amount = ConvertToInt32(s2);