(Find future dates) Write a program that prompts the user to enter an integer for today's day of the week (Sunday is 0, Monday is 1, .., and Saturday is 6). Also prompt the user to enter the number of days after today for a future day and dis- play the future day of the week. Here is a sample run: Enter today's day: 1 Enter the number of days elapsed since today: 3 Enter Enter Today i s Mondau an the futuno

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Python
.5 (Find future dates) Write a program that prompts the user to enter an integer for
today's day of the week (Sunday is 0, Monday is 1, ..., and Saturday is 6). Also
prompt the user to enter the number of days after today for a future day and dis-
play the future day of the week. Here is a sample run:
**..
Enter today's day: 1
Enter the number of days elapsed since today: 3
Today is Monday and the future day is Thursday
Enter
Enter
Transcribed Image Text:.5 (Find future dates) Write a program that prompts the user to enter an integer for today's day of the week (Sunday is 0, Monday is 1, ..., and Saturday is 6). Also prompt the user to enter the number of days after today for a future day and dis- play the future day of the week. Here is a sample run: **.. Enter today's day: 1 Enter the number of days elapsed since today: 3 Today is Monday and the future day is Thursday Enter Enter
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
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