1 Creates a HomeworkAssignment class 2 instantiates two objects The provided file has 3 and prompts the user for information about two courses syntax and/or logical 4ing static System.Console; errors. Determine the 5 ass DebugNinel problem(s) and fix the 7 static void Main() 8 { HomeworkAssignment coursel = new HomeworkAssignment(); HomeworkAssignment course2 = new HomeworkAssignment(); program. 10 11 12 13 string entryString; int exercises; // Get info for first class Write("What class do you have homework for? "); 14 15 16 entry = ReadLine(); 17 18 19 20 coursel.className = entryString; Write("How many exercises must you complete? "); entryString = ReadLine(entry); int.TryParse(entryString, exercises); 21 22 exercises = coursel.NumberOfExercises; 23 24 // Get info for another class Write("What class do you have homework for? "); entryString = ReadLine (); 25 26 27 course2.className = entrystring; 28 29 30 Write("How many exercises must you complete? "); entryString = ReadLine(); char. TryParse(entryString, exercises); course2.NumberOfExercises = exercises; 31 32 33 34 Writeline ("You have {0} minutes of homework for {1}", coursel.timeToComplete, coursel.ClassName); Writeline ("and {0} more minutes for {1}", 35 36 } 37 38 ass HomeworkAssignment course2.timeToComplete, course2.ClassName); 39 40 private int numberofExercises; 41 private int timeToComplete; 42 // 10 minutes to complete each exercise 43 private const int TIME_PER_EXERCISE = 10; 44 public ClassName {get; set}; 45 public int NumberOfExercises 46 { 47 get 48 49 50 51 { return numberOfexercises; } set 52 53 numberofExercises = number; 54 55 56 } 57 public double TimeToComplete 58 { 59 60 61 62 63 } 64 private void CalcCompletionTime() 65 { 66 CalcCompletionTime(); get { return timeToComplete; timeToComplete = numberofExercises * TIME_PER_EXERCISE
1 Creates a HomeworkAssignment class 2 instantiates two objects The provided file has 3 and prompts the user for information about two courses syntax and/or logical 4ing static System.Console; errors. Determine the 5 ass DebugNinel problem(s) and fix the 7 static void Main() 8 { HomeworkAssignment coursel = new HomeworkAssignment(); HomeworkAssignment course2 = new HomeworkAssignment(); program. 10 11 12 13 string entryString; int exercises; // Get info for first class Write("What class do you have homework for? "); 14 15 16 entry = ReadLine(); 17 18 19 20 coursel.className = entryString; Write("How many exercises must you complete? "); entryString = ReadLine(entry); int.TryParse(entryString, exercises); 21 22 exercises = coursel.NumberOfExercises; 23 24 // Get info for another class Write("What class do you have homework for? "); entryString = ReadLine (); 25 26 27 course2.className = entrystring; 28 29 30 Write("How many exercises must you complete? "); entryString = ReadLine(); char. TryParse(entryString, exercises); course2.NumberOfExercises = exercises; 31 32 33 34 Writeline ("You have {0} minutes of homework for {1}", coursel.timeToComplete, coursel.ClassName); Writeline ("and {0} more minutes for {1}", 35 36 } 37 38 ass HomeworkAssignment course2.timeToComplete, course2.ClassName); 39 40 private int numberofExercises; 41 private int timeToComplete; 42 // 10 minutes to complete each exercise 43 private const int TIME_PER_EXERCISE = 10; 44 public ClassName {get; set}; 45 public int NumberOfExercises 46 { 47 get 48 49 50 51 { return numberOfexercises; } set 52 53 numberofExercises = number; 54 55 56 } 57 public double TimeToComplete 58 { 59 60 61 62 63 } 64 private void CalcCompletionTime() 65 { 66 CalcCompletionTime(); get { return timeToComplete; timeToComplete = numberofExercises * TIME_PER_EXERCISE
Chapter11: Exception Handling
Section: Chapter Questions
Problem 18RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Expert Answers to Latest Homework Questions
Q: reesoundse following integral, and
mentions allthe steps used
3/2
Ty c³ dy
Q: this is base on diffrenecial equation questions
Homogeneous Linear equations with constant…
Q: this is base on diffrenecial equation questions
Homogeneous Linear equations with constant…
Q: Draw up the income statement(statement of profit and loss) for the year ended 2006
Q: this is base on diffrenecial equation questions
Homogeneous Linear equations with constant…
Q: this is base on diffrenecial equation questions
Homogeneous Linear equations with constant…
Q: Q1
(a)
The current entering the positive terminal of a device is i(t) - =10e3 A
and the voltage…
Q: A firm is currently employing a cost-minimizing combination of labor and capital for a given level…
Q: •
Determine the moment of inertia of the shaded area with respect to x-axis.
6 in.
21/3
76
9 in.
(a)…
Q: How do I find the depreciation for shop fitting in the statement of financial position
Q: The same fission reaction is used for power plants that generate electricity and for atomic bombs.…
Q: Modify the given copies of compound 1 to drawthe structures of 2 and 3. You can use the single bond…
Q: Draw arrays to help you explain why the equations shown are true, without evaluating any of…
Q: Identify the uses of nuclear fission
Q: Calculate the micrometeriod flux at 400 km altitude with a mass of 2 grams.
Needs Complete…
Q: Q1
(a)
The current entering the positive terminal of a device is i(t) = 5e³ A
and the voltage across…
Q: Image uploaded solution is not allowed please dear expert keep in mind
Q: A survey was conducted to determine what percentage of college seniors would have chosen to attend a…
Q: Plutonium is especially hazardous when inhaled or ingested because it emits alpha particles. Why do…
Q: What is the R script for this problem?
Select five simple random samples of 10, 25, and 50 male…
Q: root
M
D
G
Given that when a choice is available, nodes are visited left to right, what is the…