Question: Create a C++ console application using Microsoft Visual Studio 16 or later. Write a C++ program that requests two dates from the user and then

Create a C++ console application using Microsoft Visual Studio 16 or later.

Create a C++ console application using Microsoft Visual Studio 16 or later.

Write a C++ program that requests two dates from the user and then calculates and displays the number of weekends between those two dates. If either of the start or end dates is part of a weekend, you can count that as a whole weekend. A weekend need not include both Saturday and Sunday to be included. Results to check you program with: In 2019: Jan. 1 to Jan 31, 2019 contains 4 weekends Feb. 1 to Mar. 31, 2019 contains 9 weekends Jan. 14 to May 3, 2019 contains 15 weekends Mar. 1 to Oct. 31, 2019 contains 35 weekends In 2020: Jan. 1 to Jan. 31, 2020 contains 4 weekends Feb. 1 to Feb. 29, 2020 contains 5 weekends Jan. 1 to June 30, 2020 contains 26 weekends July 1 to Dec. 31, 2020 contains 26 weekends Jan. 1 to Dec. 31, 2020 contains 52 weekends Feb. 1 to Nov. 30, 2020 contains 44 weekends Write a C++ program that requests two dates from the user and then calculates and displays the number of weekends between those two dates. If either of the start or end dates is part of a weekend, you can count that as a whole weekend. A weekend need not include both Saturday and Sunday to be included. Results to check you program with: In 2019: Jan. 1 to Jan 31, 2019 contains 4 weekends Feb. 1 to Mar. 31, 2019 contains 9 weekends Jan. 14 to May 3, 2019 contains 15 weekends Mar. 1 to Oct. 31, 2019 contains 35 weekends In 2020: Jan. 1 to Jan. 31, 2020 contains 4 weekends Feb. 1 to Feb. 29, 2020 contains 5 weekends Jan. 1 to June 30, 2020 contains 26 weekends July 1 to Dec. 31, 2020 contains 26 weekends Jan. 1 to Dec. 31, 2020 contains 52 weekends Feb. 1 to Nov. 30, 2020 contains 44 weekends

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!