Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The language that needs to be used is C++ Prompt the user to enter the month and day of the year (1 for January, 2

The language that needs to be used is C++

Prompt the user to enter the month and day of the year (1 for January, 2 for February) Prompt the user to enter a period of time in days Print the date after the period entered by the user has passed. For simplicity, assume that each month has 30 days except for February that always counts for 28 days.

Sample output: Enter the month and day : 3 5 Enter the days forward: 50 After 50 days, the date of 3/5 will be 4/25.

Test cases: (Month Day Period New Date) (3, 5, 50, 4/25), (1, 1, 15, 1/16), (1, 1, 33, 2/4), (1, 1, 60, 3/3), (1, 1, 370, 1/13)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago