Create class has three pieces of information as data members

Assignment Help C/C++ Programming
Reference no: EM1360529

Create a class called Date in C++ that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int). your class should have a constructor with three parameters that uses the parameters to initialize the three data members. provide a set and a get function for each data member.

Provide member function displayDate()

The program should contain

- A constructor.
- A set and get function for day ,month ,year .

If user supplies a day not between 1-30 , reset the day to 1. If user also supplies a month not between 1-12, reset the month to 1.

- A member function displayDate():that displays the month, day ,and year separated by forward slashes(/).

Reference no: EM1360529

Questions Cloud

How fast does bullet move after the bullet emerges : The distance to the Andromeda Galaxy is estimated at about 2 x 10(6) light years. A light year is distance traveled by light in one year; if the speed of light is 3 x 10(8) m/s, about how far is it from our galaxy to Andromeda? (1 year =3.15 x 10(..
Relationship between reliability and validity : While we all agree that there is a close relationship between reliability and validity, can you have reliability that doesn't in fact inform the validity assertions of your construct?
Illustrate business cycle expansions : What is meant by "risk premium". Risk premiums on corporate bonds are usually anticyclical; that is, they decrease during business cycle expansions and increase during recessions. Why is this so.
Explain what happened to nortel is similar : Explain What happened to Nortel is similar to what happened to WorldCom and Enron in the early 2000s
Create class has three pieces of information as data members : Create a class called Date in C++ that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int).
Deprivation-deafness and neurological disruption : Please explain how environmental deprivation, deafness, and neurological disruption (e.g., stroke or brain injury) might influence language acquisition, production, or comprehension (with example).
Economic functions financial intermediaries perform : Suppose you have been asked to write a report for a group of new stock brokers about the American Stock Exchange and the NASDAQ.
Explain and identify the needs of stakeholders : Explain and Identify the needs of stakeholders for each opportunity and build a business plan for the most promising opportunity
Should you get it fixed that car requires repairs : You find that the car requires repairs of 1,200 dollars in order to get it to run. Once it is repaired, it will definitely not break down again. Assuming that the car is worth 3,500 dollars after repairs, should you get it fixed.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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