Question: By using c++ . use Repetition Control Structure , function and array please The 5 most beautiful places to visit in Malaysia with their respective

By using c++ . use Repetition Control Structure , function and array please

 By using c++ . use Repetition Control Structure , function and

The 5 most beautiful places to visit in Malaysia with their respective number of populations are a - The Cameron Highlands, Pahang - 35000 b - The Perhentians, Terengganu - 2000 c - Langkawi, Kedah - 99000 d - Malacca City, Malacca - 500000 e - Pulau Tioman, Pahang - 500 Write a program which has the following criteria: 1. Display the option to the user to choose whether 1. to key in number of covid cases for the 5 mentioned places, or 2. to know the probability of going to be infected if going to the place of choice or 3. to know the safest place to go among those 5 places, or 4. to know the least safe place to go among those 5 places, or 5. to show whole place information with covid data, or 6. to exit 2. When entering the number of covid cases, the number cannot be negative or higher than the maximum population for each place respectively 3. Prompt the user to repeat whole process after each option selection 4. For each option, use function. must include the usage of function with passing of array wherever applicable * probability of infection = (number of infected / number of total population) x 100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!