Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Programming: DebugNine2 The provided file has syntax and/or logical errors. Determine the problem(s) and fix the program. +DebugNine2.cs Instructions Build Output The provided file

C# Programming:

DebugNine2

The provided file has syntax and/or logical errors. Determine the problem(s) and fix the program.

image text in transcribed

+DebugNine2.cs Instructions Build Output The provided file has syntax and/or logical errors. Determine the problem(s) and fix the program. 1/ Creates a Breakfast class 2 // and instantiates an object 3// Displays Breakfast special information 4 using static System.Console; Conpilation fatled: 2 error(s), 8 warnings DebugNine2.cs(9,61): error C$1810: Newline in constant DebugNine2.cs (11,6): error CS1525: Unexpected synbol "Writeltne class DebugNine2 7static void MainC) GRADING As you complete the steps above, you can use the Test button to check if the lab tests are passing. Once you are satisfied with the results, use the Grade button to save your score Breakfast special new Breakfast( "French toast, 4.99); //Display the info about breakfast WriteLine (special.INF0); // then display today's special WriteLine( Today we are having [1] for [1" 10 Test Case FAILED: Program produces correct output 12 13 14 15 16 17 class Breakfast 18 19 public string INFO 20 21 I Breakfast constructor requires a 22 II name, e.g "French toast, and a price 23 public Breakfast(string name, double price) 24 25 26 27 8 public string Nane [get; set;] 29 public double Price [get; set;2 30 special.Nane, special.Price. ToString("C2")): Unit Test FAILED: Fixed bug(s) in Breakfast class Issues "Breakfast is the most inportant meal of the day.; CS1525: Unexpected symbol "WriteLIne DebugNine2.cs File: Line: Hint: Name name ; Price price; The compiler detected an invalid character in an expression. CS1010: Newline in constant File: Line: DebugNine2.cs 9 Run Code Test Grade

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions