Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

cant seem to get this program working properly even after using the table provided. help would be great! Cscl 1170 OLA6 (Due: midnight, Thursday March

cant seem to get this program working properly even after using the table provided. help would be great!
image text in transcribed
image text in transcribed
image text in transcribed
Cscl 1170 OLA6 (Due: midnight, Thursday March 15") Write a C++ program that checks whether a date entered in the form of: month day year is a valid date A valid date should satisfy the following conditions: Its year value between 0 and 2019 inclusive; . The month value between 1 and 12 inclusive; The day value: . between 1 and 30 if the month is April, June, September, or November, between 1 and 31 if the month is January, March, May, July, August, October, or December, between 1 and 29 if the year is a leap year, or between l and 28 ifthe year is not a leap year. o o o A leap year is determined as the following: If the year is not at the end of a century, for example 1994, it needs to be a multiple of 4 in order for it to be a leap year, If the year is at the end of a century, for example 2000, it needs to be a multiple of 400 in order for it to be a leap year. Create a directory named "OLA6" under the "OLA" directory. Put all the files relate to this assignment in the OLA6 directory. Copy the data file into the OLA directory using the following command: ep -cen/data/checkDate.dat enotice the trailing period There is no startup template program to copy for this assignment. Name your program "checkDate.cpp". The data file looks like the following: 615 1988 08 4 90592111 0997590110000 2999990002202 82 91 98 7 0 6 40 0 08999 91 199 e111 11211222 1 99&0 5-2 5 5810113311 at 611212226-44658 1113 co ta 0 me, nvd tioek to ai d pi e dosi ddi uld rod uld uld uld idd1ddd 0 pvivi uid th r. va- 1870 08 4 o82990, 0 6 4 0 3 9 0 5 9 2111 90002202 5810113311 t 6 1 1 2 1 2 2 2 6-446581113 11-12 19 99 112 1222112 183333221 ut 5-52 pi ysd

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is safety stock, and what is its purpose?

Answered: 1 week ago

Question

Describe the team performance model.

Answered: 1 week ago

Question

=+8. Why is productivity important?

Answered: 1 week ago

Question

=+ 9. What is inflation and what causes it?

Answered: 1 week ago