In a parallel universe there are 8 days in a week. The 8th day is called Merday and it comes between Sunday and Monday. In this other universe, every month has 32 days and starts on a Monday. Write a program that asks the user to enter the number of the day of the month and repeatedly asks the user to re-enter the number if it is less than 1 or greater than 32. Then calculate what day of the week it is based on the user's number and print out the name of that day. Java

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question

need help

In a parallel universe there are 8 days in a week. The 8th day is called Merday and it comes between Sunday and Monday.
In this other universe, every month has 32 days and starts on a Monday. Write a program that asks the user to enter the
number of the day of the month and repeatedly asks the user to re-enter the number if it is less than 1 or greater than 32.
Then calculate what day of the week it is based on the user's number and print out the name of that day. Java
Transcribed Image Text:In a parallel universe there are 8 days in a week. The 8th day is called Merday and it comes between Sunday and Monday. In this other universe, every month has 32 days and starts on a Monday. Write a program that asks the user to enter the number of the day of the month and repeatedly asks the user to re-enter the number if it is less than 1 or greater than 32. Then calculate what day of the week it is based on the user's number and print out the name of that day. Java
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning