Design and implement class called date that has data members

Assignment Help Programming Languages
Reference no: EM131291737

Design and Implement a class called Date that has data members to store month (as a number), day, year, and name of the month. The class should have a three-parameter constructor that allows the data to be set at the time of new Data object instances are created. Default constructor that does not take any parameters should set the default values of 1 (month), 1 (day), 2001 (year). The class should have following three member functions to display date following formats

showDate1() should display the date in 1/1/2001 format

showDate2() should display the date in January 1, 2001 format

showDate3() should display the date in 1 January 2001 format

Also the class should have method to set the date (setDate()). This method should take month, day, and year as parameters and set the object instance data member values. Then your Date class should work with the Assignment5.cpp given below and produces the following output.

Reference no: EM131291737

Questions Cloud

Usefulness of the life cycle : What is the usefulness of the Life Cycle. What are some of the pros and cons to the Life Cycle? Why is the Life Cycle viewed as a critical component within Information Technology? Describe a project that you may have had that failed? Why did i..
Write application that displays frame containing two labels : Write an application that displays a frame containing two labels that display your name, one for your first name(Jeremy) and one for your last(Green).
Third-party penetration testing for a large law firm : You have been hired to perform third-party penetration testing for a large law firm. Using the information you learned in this unit, create a written strategy on how you would perform a reconnaissance attack on the law firm. Be sure to address the..
How much money to pursue the project : We are looking for financial justification as to why Winn-Dixe should adopt/expand an/their organic food line and a 5 year financial analysis of it.
Design and implement class called date that has data members : Design and Implement a class called Date that has data members to store month (as a number), day, year, and name of the month. showDate1() should display the date in 1/1/2001 format.
What is the probability that the shop is empty : What is the probability that the shop is empty?- What is the average number of customers in the barbershop?- What is the average time spent in the shop?
Common security weaknesses inherent : What are some of the common security weaknesses inherent in Unix or Linux based systems and what techniques can be used to harden these systems against an attack?
Create a program that estimates the radio signal strength : Create a program that estimates the radio signal strength (%) - a range - for computers stationed at different distances (ft) from the AP. In your design use 5 distance zones, and proportionally assign to them signal strength ranges (%).
Identify the critical components of operations management : Identify the critical components of operations management function in differing organisations and clearly demonstrate their relationship to decision making and value chain.

Reviews

Write a Review

Programming Languages Questions & Answers

  Show the total monthly cost of the expenses

Write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile:

  Cryptography problem - caesar cipher

Write a class CaesarCipher that gets constructed on the value shift_by. Its encode method encodes a string by shifting letters by shift_by positions, and its decode method decodes an encoded string.

  Program to write variable declarations and function calls

Write a program whose main function is merely a collection of variable declarations and function calls. This program reads a text and outputs the letters, together with their counts.

  Write function template which accepts array

Write a function template arraySum () which accepts array and number of values stored in it and returns the sum of those values.

  Correct mistakes on the command line

In this lab you will determine the shell that you are running, correct mistakes on the command line, and use filename generation. You will also learn about help that the system provides in the form of man pages, the --help option, and the bash hel..

  Create classes for account and savingsaccount

Create and write three classes - Account, CheckingAccount, and SavingsAccount. Have CheckingAccount and SavingsAccount inherit from Account.

  Design a system for the organization

explain the main systems in place, discuss the integration, and explain how the data collected by these systems helps the organization make decisions and carry out the strategic plan.

  Find the location of the person browsing

HTML5 now supports Geolocation which can be used to find the location of the person browsing.

  Write program to decodes messages using caesar cypher

Write a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with the previous letter in the alphabet.

  Create visual basic windows application

Create Visual Basic Windows application. Use following names for solution and project, respectively: Raise Solution and Raise Project.

  Write a program using binary search approach

Write a program using binary search approach

  Program to find area-length and width of a rectangular room

Program is supposed to ask user for length and width ofa rectangular room, and then display room's area. The program should multiply width by length in order to find the area. Find the error.

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