subject

in this assignment you will demonstrate your knowledge of debugging by fixing the errors you find in the program below. fix the code, and paste it in this document, along with the list of the problems you fixed. this example allows the user to display the string for the day of the week. for example, if the user passed the integer 1, the method will return the string sunday. if the user passed the integer 2, the method will return monday. this code has both syntax errors and logic errors. hint: there are two logic errors to find and fix (in addition to the syntax errors). inport daysanddates. daysofweek; public class testdaysofweek { public static void main(string[] args) { system. out. println("days of week: "); for (int i = 0;i < 8;i++) { system. out. println("number: " + i + "\tday of week: " + dayofweek. dayofweek str(i) ) } } } package daysanddates public class daysofweek { public static string dayofweekstr(int numberofday) { string daystr = "" switch (numberofday) { case 1: daystr = "sunday"; break; case 2: daystr = "monday"; break; case 3: daystr = "tuesday" break; case 4: daystr = "wednesday"; case 5: daystr = "thursday"; break; case 6: daystr = "friday"; break; case 7: daystr = "saturday"; break; } } }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
To include a watermark or page border on a word document, you will first need to navigate to the tab. file home insert design
Answers: 1
You know the right answer?
in this assignment you will demonstrate your knowledge of debugging by fixing the errors you find in...
Questions
Questions on the website: 13722359