Question: c++ I haven't learned advanced yet so can you do it without using class, dot operator, and vectors, or anything too complicated. Problem B: Days

 c++ I haven't learned advanced yet so can you do itwithout using class, dot operator, and vectors, or anything too complicated. Problem

c++

I haven't learned advanced yet so can you do it without using class, dot operator, and vectors, or anything too complicated.

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 (example 4). (Hint: I'd suggest continuing what you have from lab, rather than trying a mathematical approach. Specifically, using a call-by-reference function that adjusts the date forward one day.) 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!