Question: Use the given starter code to create a program that displays what God created on a given day of the first week of creation. The

Use the given starter code to create a program that displays what God created on a given day of the first week of creation. The program asks the user to input a day
number (between 1 and 7) and then uses a switch statement to select what god made that day and the scripture reference.
Here are the output values by day number.
For all other inputted days, the switch statement should display, "Invalid day. Enter a value between 1 and 7." and exit the program.
Do NOT use any if statements for this program. Instead, use a single switch statement to validate the input and set the appropriate values for the given variables.
For the problem, create a test plan similar to that in assignment 2 with at least 6 test cases. Format the test plan like the example (i.e., a multi-column table).
Submit your CreationDays.cpp file and test plan.
Sample Output (user input is in yellow)
Enter a day number from the first week of creation: 10
Invalid day. Enter a value between 1 and 7.
Sample Output (user input is in yellow)
Enter a day number from the first week of creation: 1
On day 1, God made light, resulting in night and day.
Genesis 1:3-5
Use the given starter code to create a program

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 Programming Questions!