Week 3 You will continue your Smart Home and Theater apps by updating the code to the new specifications. Grading is based on the new criteria as prior cr

Week 3 You will continue your Smart Home and Theater apps by updating the code to the new specifications. Grading is based on the new criteria as prior criteria was graded in a previous assignment. The focus of this assignment is based on working with different types of loops and selections.

 

Software Requirements Specification:

1. Have a program that starts and displays a menu (shown above along with numbers).

2. After the menu displays, the program will prompt the user for a menu selection.

3. The program will accept user input from the keyboard

1. Use a do/while() loop to accept user input

2. Confirm the user typed in a number between 1 and 6 as the condition to exit the do/while() loop

4. Once the user selects a menu option by typing it in at the console, the application will

4. report the menu option selected (simple output of the selected menu option name)

1. Within the Smart Home App, use a switch() statement to report the menu option selected by the user

2. Within the Theater App, use if()/else if() statements to report the menu option selected by the user

4. return back to the menu.

1. Within the Smart Home App, use a while() statement to create a loop for the program to repeat the menu and user selection processes

1. Within the Theater App, use a do/while() statement to create a loop for the program to repeat the menu and user selection processes

5. The exit option will exit the application.

Comments:

· Be sure to look for all differences between revisions to the Software Requirements Specifications. Always compare them word for word and be sure your application behaves and is designed as stated by the client.

· You have the freedom to develop your code as you desire as long as you stay within the stated Software Requirements Specifications.

· When you submit your files, please zip each project and submit them as a whole rather than individual code files.

· Just to note, R3 and R4.2.x do not overlap and are different. What you will have is a do/while() loop to accept user input. The benefit of the do/while() loop is the loop body is performed at least the first time, which may be sufficient for completing the task. As an example, you are requesting the user give you a number between 1 to 10. What if the user gives you one of the expected values? Well, then the task of getting the number from the user is complete and you can act on the number. But what if they give you an invalid option that is not in your menu? Then you simply perform the loop again and ask for another value. To satisfy R3, you’ll use this approach when getting the input from the user. For 4.2.x, this is the main loop for the application where it shows the menu, requests input from the user, and then acts on the input from the user. So having R3 and R4.2.x would be a loop (R4.2.x) with a loop inside it (R3), which is one of the learning objectives for the lesson on using loops.

· More comments will be added based on questions. So be sure to check back before submitting your assignment.

Submit a Comment

Open chat