Question: Can you write the code in C++? General Description Write a program that allows the user to choose one of three games to play. It

Can you write the code in C++?

Can you write the code in C++? General Description Write a program

that allows the user to choose one of three "games" to play.

General Description Write a program that allows the user to choose one of three "games" to play. It should repeat the following until the user selects X to exit: Display a menu with the options S - Sum Between B Print Box X - Exit Enter option: You may assume the user will enter only one char for the option when the user enters an invalid option, print "Invalid option! Try again! When the user enters X, print "Thanks for playing", do a system pause, and end the program When the user enters S Ask the user to enter a number to start counting, and a number to stop counting. You may assume the second number will be greater than or equal to the first, and both will be integers. o o Calculate the sum of all numbers between and including the start and stop values o Print the sum o Ask the user to enter the size of a box. You may assume the number is an integer o Print a square of stars on the screen using the number entered as the dimension. entered When the user enters B: between 1 and 15 Example: user enters 5, print 5 stars on 5 lines, with a space between each star on a line Specifications: Use a do/while loop to repeat the overall menu process Use a switch statement to select the game to play or exit. Make the game menu accept both upper and lower case letters, without using any sort of "upper case" function (hint: 2 cases) Use a for loop to solve the sum between problem Use nested for loops to print the box

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!