a. Write a java program that request for 1. A person’s age 2. Temperature 3. Dry cough 4. Sneezing 5. Running nose  b. Your program should refer to the testing center when: 1. Temperature >38oC and Sneezing, Running nose, Dry cough all respond to yes 2. Or Temperature >38oC and any two from “a 3 – 5” above all respond to yes  3. Otherwise your program shouldn’t display go home

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question
100%

Coronavirus (COVID-19) is causing a lot of panic the world over. Most people in developing countries are panicking because there are not proper test kids to determine whether one has the virus or not. You have been consulted to develop a program that could be used as a first step in determining the likelihood that one has it or not so that persons could then be referred to the testing center to be tested. Your task is to:
a. Write a java program that request for
1. A person’s age
2. Temperature
3. Dry cough
4. Sneezing
5. Running nose 
b. Your program should refer to the testing center when:
1. Temperature >38oC and Sneezing, Running nose, Dry cough all
respond to yes

2. Or Temperature >38oC and any two from “a 3 – 5” above all respond
to yes 
3. Otherwise your program shouldn’t display go home

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning