Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

please help me figure out this problem in c++. Problem B: Days until summer (20 points) Write a program that lets you enter two dates:

please help me figure out this problem in c++. image text in transcribed

Problem B: Days until summer (20 points) Write a program that lets you enter two dates: a start date and end date. Then find the number of days between them. You may assume only valid dates are entered, but you should account for the case when the start date is after the end date. (Hint: I'd suggest continuing what you have from lab, rather than trying a mathematical approach. Then adding either 3 new functions or 1 call-by-reference function if you did the last part in main().) Example 1 (user input underlined): Enter start date (no spaces): 2/27/2020 Enter end date (no spaces): 5/12/2020 You have to wait 75 days Example 2 (user input underlined): Enter start date (no spaces): 2/28/2020 Enter end date (no spaces): 3/8/2020 You have to wait 9 days Example 3 (user input underlined): Enter start date (no spaces): 1/2/3 Enter end date (no spaces): 3/21/12345 You have to wait 4507901 days Example 4 (user input underlined): Enter start date (no spaces): 1/2/3 Enter end date (no spaces): 3/2/1 Never...

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Basic Mechanical Engineering

Authors: PRAVIN KUMAR

2nd Edition

938687329X, 978-9386873293

Students also viewed these Programming questions

Question

Create a decision tree for Problem 12.

Answered: 1 week ago

Question

Documentation of the appraisal activities

Answered: 1 week ago

Question

Personal knowledge of and contact with each appraised individual

Answered: 1 week ago