Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C++ The 5 most beautiful places to visit in Malaysia with their respective number of populations are a - The Cameron Highlands, Pahang -

image text in transcribedin C++

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

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions