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
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
Related questions
Question
need help
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning