Question: Class activity description: create a C + + code that will ask the user if the user wants to double the number. The user will
Class activity description: create a C code that will ask the user if the user wants to double the number. The user will type Y or y to select yes or N or n to select no The number is first collected by the program from the keyboard.
The steps for the program are:
Ask the user to type a number.
Once the number is typed and entered, the program will ask the user if the user wants the number to be doubled. The user must type a character N or n for no or a character Y or y for yes.
Depending on the selection from the previous step, if the user selected Y or y the program should use assignment operator to double the number. If the user selected N or n the program should keep the entered number.
Prompt the result after the switchcase statement. The result should prompt as:
The number after the switchcase statement
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
