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

  Determines the largest number stored in the file

Design a program that determines the largest number stored in the file.

  Execute a recursive directory traversal

Execute a recursive directory traversal.

  Write down a perl program that given a dna string prints

write a perl program that given a dna string prints out the 20 characters upstream of the start codon atg. that is

  What are the merits of flash memory over hard disk storage

what are the advantages of flash memory over hard disk storage? what are the advantages of hard disk over flash memory

  How items in the array should be searched

Covers Sequential & Binary Search; Selection Sort, Bubble Sort, Index Sort, Merge Sort.How items in the array should be searched.

  Execute a set adt in java using a singly linked list

Execute a Set ADT in Java using a singly linked list

  Recognize and explain at least two forms of fraud

today there are many industries that remain vulnerable to electronic fraud. for this assignment you will need to

  How many total registers are in cpu

How many total registers are in CPU? (Hint: Remember, due to the circular nature of the windows, the output registers of the last window are shared as the input registers of the first window.)

  What federal government agency oversees the cpic operation

What is the the relationship of IT governance to IT policy - What federal government agency oversees the CPIC operation?

  Transmitting image through raster scan

If we were to transmit this image utilizing the raster scan order, after 15 seconds how many rows of image will the user have received? To what fraction of the image does this correspond?

  Write report using term switch assessment and requirement

The university presently uses an analog phone system and the administration is looking to deploy voice over IP solution. Before they move forward, they want to ensure that the environment can support the technology.

  Predict the future role of the communication technology you

select one 1 of the following topics in which you will base your responses in the form of a term papernetwork

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