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, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
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
question
Mathematics, 07.05.2020 23:57
question
Social Studies, 08.05.2020 00:57