Casel: Write a menu driven program that allows you to visit cities of man in random order with following options. 1: Visit a city 2: Go to previous city 3: Quit the program When user presses 1: program asks user to enter the city name, and then display that the city has been visited. Please note user can visit a city any number of times When user presses 2: Program takes you back to the previous city When user presses 3: Program terminates See the below example how program interacts with the user: C:> 1: Visit a city program Enter your choice 2: Go to previous city 3: Quit the Please enter a city to visit. Muscat You are in Muscat now. Enter your choice. 1: Visit a city 2: Go to previous city Please enter a city to visit. Ibra You are in Ibra noW. Enter your choice. 1: Visit a city 2: Go to previous city Please enter a city to visit. Sohar You are in Sohar now. Enter your choice. 1: Visit a city 2 You are in Ibra now. 2: Go to previous city Enter your choice. 1: Visit a city 2: Go to previous city Please enter a city to visit. Nizwa You are in Nizwa noW. Enter your choice. 1: Visit a city 2 You are in Ibra now.. 2: Go to previous city Enter your choice. 1: Visit a city 2 2: Go to previous city You are in Muscat now. Enter your choice. 1• Visit a city 2 2: Go to previous city You are back to your original place. Enter your choice…. 1: Visit a city 3 Program terminates. 2: Go to previous city 3: Quit the program 3: Quit the program 3: Ouit the program 3: Quit the program 3: Quit the program 3: Ouit the program 3: Ouit the program 3: Quit the program
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Casel: Write a menu driven
man in random order with following options.
1: Visit a city
2: Go to previous city
3: Quit the
program
When user presses 1: program asks user to enter the city name, and
then display that the city has been visited. Please note user can visit a
city any number of times
When user presses 2: Program takes you back to the previous city
When user presses 3: Program terminates
See the below example how program interacts with the user:
C:> 1: Visit a city
program
Enter your choice
2: Go to previous city
3: Quit the
Please enter a city to visit.
Muscat
You are in Muscat now.
Enter your choice.
1: Visit a city
2: Go to previous city
Please enter a city to visit.
Ibra
You are in Ibra noW.
Enter your choice.
1: Visit a city
2: Go to previous city
Please enter a city to visit.
Sohar
You are in Sohar now.
Enter your choice.
1: Visit a city
2
You are in Ibra now.
2: Go to previous city
Enter your choice.
1: Visit a city
2: Go to previous city
Please enter a city to visit.
Nizwa
You are in Nizwa noW.
Enter your choice.
1: Visit a city
2
You are in Ibra now..
2: Go to previous city
Enter your choice.
1: Visit a city
2
2: Go to previous city
You are in Muscat now.
Enter your choice.
1• Visit a city
2
2: Go to previous city
You are back to your original place.
Enter your choice….
1: Visit a city
3
Program terminates.
2: Go to previous city
3: Quit the program
3: Quit the program
3: Ouit the program
3: Quit the program
3: Quit the program
3: Ouit the program
3: Ouit the program
3: Quit the program
![Casel: Write a menu driven program that allows you to visit cities of
oman in random order with following options.
1: Visit a city
2: Go to previous city
3: Quit the
program
When user presses 1: program asks user to enter the city name, and
then display that the city has been visited. Please note user can visit a
city any number of times
When user presses 2: Program takes you back to the previous city
When user presses 3: Program terminates
See the below example how program interacts with the user:
C:> 1: Visit a city
2: Go to previous city
3: Quit the
program
Enter your choice...
1
Please enter a city to visit..
Muscat
You are in Muscat now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
1
Please enter a city to visit..
Ibra
You are in Ibra now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
1
Please enter a city to visit..
Sohar
You are in Sohar now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
2
You are in Ibra now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
1
Please enter a city to visit..
Nizwa
You are in Nizwa now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
2
You are in Ibra now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
2
You are in Muscat now...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
You are back to your original place...
Enter your choice...
1: Visit a city
2: Go to previous city
3: Quit the program
3
Program terminates...](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fee165f03-c26c-4ef3-9a2e-8569687e97b3%2Fe6e265fa-0f9c-49fc-b63a-e08576fa49bf%2Fyl4re6r_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)