Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write in java source code. thank you. Lab5A: To isolate or not isolate. That is the question. We hope you're doing well this semester and

write in java source code. thank you.
image text in transcribed
image text in transcribed
image text in transcribed
Lab5A: To isolate or not isolate. That is the question. We hope you're doing well this semester and most importantly, staying healthy! Along those lines, if you haven't seen it before, you can take a COVID-19 Self-Assessment test on KSU's website at https://coronavirus kennesaw.edu/ You will use the self-assessment as a guideline to create your program. First, you will need to complete the self-assessment above multiple times and try all possibilities. You need to see all the questions and outcomes of the assessment because you will use them to write your program. Now, write a program that asks the user the assessment questions, reads the input (as characters) and returns an assessment as the output. The sample output is shown below. The user input is in bold. Note: KSU has a helpline that can help answer your COVID-related questions: 470-578-6644 Sample output 11: Experiencing severe symptoms (Y/N) ? Y Seek emergency care. Sample output 12: Experiencing severe symptoms (Y/N)? N close contact with someone who has OVID (Y/N) ? Y Quarantine and get tested if you feel sick, Sample output 13: Experiencing severe symptoms (Y/N)? N close contact with someone who has OVID (Y/N) ? N If you experience other symptoms, isolate and get tested. Lab5B: Sounds like somebody has a case of the Mondays You will design a program to determine the day of your next meeting based on today. Write a program that prompts the user for an integer that represents today (Sunday is 0, Monday is 1, Tuesday is 2, Wednesday is 3, Thursday is 4, Friday is 5, Saturday is 6 and Sunday is 7). Next, the program should ask the user for the number of days until the next meeting an integer value). The program will determine and print out the meeting day. A sample run is shown below. User input is in bold. Note: You must use a switch statement as part of your solution. Sample output 01: Enter a number that represents today (Sunday, Monday 1, ...) 2 Enter the number of days until the meeting: 21 Meeting day is Tuesday Sample output 12: Enter a number that represents today (Sunday, Mondayan, ...) Enter the number of days until the meeting: 11 Meeting day is Thursday Lab5C: What's the point? For this lab, you will create a program that takes as an input the x-coordinate and y-coordinate of a point in a Cartesian plane as integer values. The program prints out the entered values and the location of the point on the plane. The possible locations for the point (the outcomes) are: the origin, on the x-axis, on the y-axis, in the first quadrant, in the second quadrant, in the third quadrant, or in the fourth quadrant. The sample run is shown below. User input is in bold. Sample output 11: Enter x: 0 Enter y: 0 This point is the origin. Sample output +2: Enter x: 0 Enter y: 5 This point is on the y axis. Sample output +3: Enter x: -5 Enter y: 0 This point is on the x axis. Sample output #4: Enter x: 1 Enter y: 1 This point is in the first quadrant. Sample output #5: Enter x: -1 Enter y: -1 This point is in the third quadrant

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago

Question

4. What advice would you give to Carol Sullivan-Diaz?

Answered: 1 week ago