Question: Problem Description: Create a Java program that prompts the user for a number (between 1 to 7, including 1 and 7). The program must print
Problem Description: Create a Java program that prompts the user for a number (between 1 to 7, including 1 and 7). The program must print the name of the day based on the inputted number. It assumes that day 1 is Sunday. If the user enters a number that is more than 7 or less than 1, the program must print a message informing the user that the week has only 7 days. (Use switch statement). Here is a sample run: Enter an integer number: 2 The day is Monday. Part 1: Requirements Specification The program must satisfy the following requirements: It must ask the user to input a number between 1 and 7. It must check the number and print the name of the day accordingly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
