Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Required Submission Content for each unit: Keep all related contents of the unit together The submission should contain your work for all listed questions: 1.

image text in transcribed
image text in transcribed
image text in transcribed
Required Submission Content for each unit: Keep all related contents of the unit together The submission should contain your work for all listed questions: 1. Always have the code (C++ Source code in text) before test result and place them together. 2. submit all parts of the assignment in order (font >=10 points). Test Run Driver 1) If a test driver (main) is provided for an assignment, use it. 2) If the test driver is not provided, follow the sample test run example and implement your own test driver that perform the same User Interface U/l in the same form and format. Implement the test driver according to what the test run example. 2.1 In some rare class, the example does use hard coded (built-in) test data, only for the real basic ones. 22 Majority of the assignments, the test run example does have an U/l query for user to enter test data, Check out the Submission Standard reference especially on the Validation Test Run Lab 01D Date Class Doteh and testDate.cpp Design a class called Date. The Date class should store a date in three integers: month, day, and year. There should be member functions to print the date in the different forms supported by the member methods. Here is the set of testing that you should include in the main application: I using the overloaded constructor Date today 12, 25, 2012); // Show the date in form +1 today. Shonate10 1 Store a new month day. and year 1/ in the object. today.setHonth(8) today.setDay(16) today setYear(2012) 11 Show the date in form #2 today showbate20; Show the dute in form today showbote30: W test invalid date Bore soneday (12. 2. 2012) Demonstrate the class by writing a complete program implementing it Input Validation. Do not accept values for the day greater than 31 or less than 1. Do not accept values for the month greater than 12 or less than 1 Test Run Atherton Download Welppo 1927257 16:2012 IS 2012 22 set a valid value for the day. Demonstrate the class by writing a complete program implementing it. Input Validation: Do not accept values for the day greater than 31 or less than 1. Do not accept values for the month greater than 12 or less than 1. Test Run X CAUsers tony Downloads/Weekl\appDate.exe 12/25/2012 August 16. 2012 LG Dugust 2012 32 is not a valid value for the day. Proces returned 1 execution time 18.1055 Press any key to continue. Submit Date.h testDate.cpp Validation test run result

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_2

Step: 3

blur-text-image_3

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

How do nonrecourse loans support crop prices?

Answered: 1 week ago

Question

5. Why is the Civil Rights Act of 1991 such a significant law?

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago