0Total of fully vaccinated must be greater than 0 but not be more than the total populationIf at least one data is invalid do not process, otherwise, display the following:Name of...


Write a C++ program that will solve the problem given below:<br>The program will determine If a city Cavite already achieved its herd immunity or<br>COVID.19 (90% of its population ages 12 and above are fully vaccinated) The cities<br>are Bacoor, Kawit, 'Noveleta, Rosario and Tanza.<br>Your program should ask the user to input the following:<br>o City (use code 1-5 or A-E)<br>• Total population of the city with ages 12 old and above<br>o Total number of persons fully vaccinated in the city<br>Bequirements:<br>Validate city code<br>Total population >0<br>Total of fully vaccinated must be greater than 0 but not be more than the total population<br>If at least one data is invalid do not process, otherwise, display the following:<br>Name of city:<br>XXXXXXXX<br>Total Population (12 years old and above):_99999<br>Total Population fully vaccinated:_<br>999999<br>% of fully vaccinated:<br>99.99%<br>Congratulations Herd immunity Achieved! (display if % is >=90%)<br>Population for vaccination to achieve herd immunity : 9999 - 99.99% (display if herd<br>immunity not yet achieved)<br>

Extracted text: Write a C++ program that will solve the problem given below: The program will determine If a city Cavite already achieved its herd immunity or COVID.19 (90% of its population ages 12 and above are fully vaccinated) The cities are Bacoor, Kawit, 'Noveleta, Rosario and Tanza. Your program should ask the user to input the following: o City (use code 1-5 or A-E) • Total population of the city with ages 12 old and above o Total number of persons fully vaccinated in the city Bequirements: Validate city code Total population >0 Total of fully vaccinated must be greater than 0 but not be more than the total population If at least one data is invalid do not process, otherwise, display the following: Name of city: XXXXXXXX Total Population (12 years old and above):_99999 Total Population fully vaccinated:_ 999999 % of fully vaccinated: 99.99% Congratulations Herd immunity Achieved! (display if % is >=90%) Population for vaccination to achieve herd immunity : 9999 - 99.99% (display if herd immunity not yet achieved)
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here