Create a implementation file containing the member function

Assignment Help Computer Engineering
Reference no: EM131272124

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:

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

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

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: EM131272124

Questions Cloud

Write application that instantiates five librarybook objects : Write an application that instantiates five LibraryBook objects and prompts the user for values for the data fields. The objects should be stored in either an Array or an ArrayList.
Difference between system software and application software : Why a Learning Curve Analysis is used for project management? Also,  the necessary components of a Learning Curve Analysis? What is the difference between system software and application software.  Why is it necessary to plan? How is most planning co..
Professional-academic smart goal for yourself : You are assigned the task of improving employee motivation at your place of business, the online campus of a higher education institution.  Write a professional/academic SMART goal for yourself, and a short description of how your goal meets the S..
New york and barcelona employing to run : 1. What technologies are New York and Barcelona employing to run their more efficiencttly and improve citizens quality of life? 2. What are the managemnet, organization, and technology issues that should be addressed by "smart city" initiatives?
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.
Write a query that displays all of the rows in the vehicle : Write a query that displays all of the rows in the vehicle maintenance table. For each vehicle maintenance row, join the corresponding information from the maintenance descriptions table and vehicles table.
Constructive dismissal have to do with employment contract : Distinguish between the Universalist and Contingency approaches to HR Strategy philosophies. Provide examples of each. What does it mean to “lead by price” or “lead by differentiation”? Provide examples of each. Define constructive dismissal. What do..
Does the branding appeal to the market : Select an existing health care related product or service: What is the target market of the product or service selected? What images or thoughts do you relate to that brand? Does the branding appeal to the market? Do those images influence consumers’..
Formulate linear programming model within your word report : The production manager at Old-Time Boats must determine how many Party Pontoons to produce over the next 6 months. The beginning inventory of Party Pontoons is 400 units. Formulate the linear programming model within your Word Report: Define the deci..

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