Create a implementation file containing the member function

Assignment Help Computer Engineering
Reference no: EM13760329

Create a project consisting of three files - driver program, implementation, and specification - which will allow a month, day, and year between January 1, 1850, and December 31, 2100, to be entered and verified as valid. The solution will satisfy the following requirements:

(1) Create a class called VerifyDate that will contain data members and member functions to meet the listed criteria listed:

· The VerifyDate class is used for inputting and validating a date by month, day, and year.

· Create private integer data members names: month, day, year.

· A default constructor will set the date to 1/1/2000; another constructor may be created with parameters for the month, day, and year.

· Create accessor and mutator functions for the date variables.

· Create a public function, PrintDate, to print the date in the form mm/dd/year, e.g., 10/22/2000 or 4/08/2011.

· Create a private function, IsLeap, which will return true when the year is a leap year and false when it is not.

· Create a public function, CheckDate, which will return true when the month, day, and year are valid and false when they are not. For example, to be valid, the day must be appropriate for the given month and/or year, if a leap year. The date must be between January 1, 1850, and December 31, 2100.

(2) Create a specification file containing the declaration of the VerifyDate class.

(3) Create a implementation file containing the member function definitions for VerifyDate.

(4) Create a driver program which uses the VerifyDate class. The main function should prompt the user to input month, day, and year, call the function to display the date, call the function to verify the date and indicate the result to the user, and permit the user to enter another date for verification.

(5) Debug the program.

Supporting Information:

In a leap year, February has 29 days. The following three criteria determine which years will be leap years:

1. A year which is divisible by 400 is a leap year.

2. A year not divisible by 400 but which is divisible by 100 is NOT a leap year.

3. A year not divisible by 100 but which is divisible by 4 is a leap year.

Example: 2000, 2004, and 2008 are leap years. 1900 and 2100 are not leap years.

Days in each month: January = 31, February = 28 or 29, March = 31, April = 30, May = 31, June = 30, July = 31, August = 31, September = 30, October = 31, November = 30, December = 31.

Reference no: EM13760329

Questions Cloud

Acquisition across the controlling and noncontrolling : How did Truman allocate the goodwill from the acquisition across the controlling and noncontrolling interests?
Explian practices of language development of all children : identify at least three practices that support the language development of all children. Then, identify and explain three additional considerations that may require attention for children who experience more than one language.
Completed-contract method of accounting : Assuming the same facts as those above except that Hamilton uses the completed-contract method of accounting, what portion of the total contract price would be recognized as revenue in 2013?
Create a new class called soda : Create a new class called Soda that is also a caffeinated beverage by default it will have no option for condiments. Have it called in main. Main also calls the old addLemon function on Tea so that the customer gets two lemons. Use an adapter to s..
Create a implementation file containing the member function : Create a specification file containing the declaration of the VerifyDate class. Create a implementation file containing the member function definitions for VerifyDate.
Trends toward western-style consumption : China and India have demonstrated trends toward Western-style consumption over the last decade. Given the emphasis on the youth market in the US over the last 60 years (since the baby boom), what can you suggest for marketers in these youth-orient..
Audit professional organizations : Visit a Web site for one of the audit professional organizations.
Breadth and depth of knowledge : The breadth and depth of knowledge required to audit IT and systems are extensive and may include
How do children in us fare in terms of critical issues : How do children in the United States fare in terms of the critical issues of poor health and hygiene, poverty, and malnutrition? Why is supporting each of these basic needs such a difficult challenge

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are specific examples of database failures

If you were one of the users of a damaged database, how will you be affected by such a failure and what measures could you take to prevent it.

  Write a step-by-step plan including comments that reflect

write a step-by-step plan including comments that reflect changes to the machine state to solvequestion 1. input a b

  Convert pos to sop

Using the sandwich algorithm to convert POS to SOP?

  What many regard as preferential treatment from the courts

What are the major similarities and differences between the juvenile and adult justice systems in the U.S. and should juveniles continue to receive what many regard as preferential treatment from the courts Why or why not

  Define prototyping in the database development process

What are the advantages of taking extra time to test and revise a design.

  Write a paragraph of at least 200 words addressing the

write a paragraph of at least 200 words addressing the following how would you describe web 2.0 to someone who has not

  Show the volume of a rectangular pool of constant depth

A contractor needs a program that calculates and shows the volume of a rectangular pool of constant depth. Complete an IPO chart for this problem. Use pseudocode in Processing column.

  Questionrecognize level within a database system user

questionrecognize level within a database system user programmer of application software designer of the dbms software

  What business to consumer and consumer to business items

Marketing and the owner of the CyberCafe would like to have items both in our shop and in Internet ecommerce site. What Business to Consumer and Consumer to Business items would your team recommend. What are the possibilities for fulfilment?

  Describe sharepoint services and various sharepoint options

discuss sharepoint services and various sharepoint options as well as windows media rights management to handle the

  Evaluate how ericsson benefitted from amazon web services

cloud computing is defined by cearly and phifer in their case study titled case studies in cloud computing as a style

  Explain how do you choose the primary key from the

write a 200- to 300-word short-answer response for the followinghow do you select the primary key from the candidate

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd