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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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