Write a JAVA program that determines the alert level for the COVID-19 based on the percentage of new cases out of PCR tests carried out as indicated in the following table: Percentage of New Cases


Write a JAVA program that determines the alert level for the COVID-19 based on the percentage of new cases out of PCR tests<br>carried out as indicated in the following table:<br>Percentage of New Cases<br>< 2%<br>Between 2% and 5% (inclusive)<br>Between 5% and 8% (exclusive)<br>8% or above<br>Alert Level<br>Green<br>Yellow<br>Orange<br>Red<br>% of new cases = (number of new cases / number of PCR tests) x 100<br>The program should ask the user to input the number of new cases and the number of PCR tests that were carried out. The program<br>should display the percentage of new cases and the alert level.<br>Sample Input / Output<br>Enter the number of new cases: 280<br>Enter the number of PCR tests: 12000<br>Percentage of new cases is 2.333333333333335%<br>Alert Level is Yellow<br>Note: Your answer should follow the given sample input / output.<br>

Extracted text: Write a JAVA program that determines the alert level for the COVID-19 based on the percentage of new cases out of PCR tests carried out as indicated in the following table: Percentage of New Cases < 2%="" between="" 2%="" and="" 5%="" (inclusive)="" between="" 5%="" and="" 8%="" (exclusive)="" 8%="" or="" above="" alert="" level="" green="" yellow="" orange="" red="" %="" of="" new="" cases="(number" of="" new="" cases="" number="" of="" pcr="" tests)="" x="" 100="" the="" program="" should="" ask="" the="" user="" to="" input="" the="" number="" of="" new="" cases="" and="" the="" number="" of="" pcr="" tests="" that="" were="" carried="" out.="" the="" program="" should="" display="" the="" percentage="" of="" new="" cases="" and="" the="" alert="" level.="" sample="" input="" output="" enter="" the="" number="" of="" new="" cases:="" 280="" enter="" the="" number="" of="" pcr="" tests:="" 12000="" percentage="" of="" new="" cases="" is="" 2.333333333333335%="" alert="" level="" is="" yellow="" note:="" your="" answer="" should="" follow="" the="" given="" sample="" input="">

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here