subject

Create a class called date that
includes three pieces of information as data members—a month (type int), a day (type int) and a year (type int).
have a constructor with three parameters to initialize the three data members. call setters inside to initialize each attribute.
provide a set and a get method for each data member. assume that the values provided for the year and day are correct, but ensure that the month value is in the range 1–12; if it isn’t, set the month to 1.
provide a member function displaydate that displays the month, day and year separated by forward slashes (/).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
You know the right answer?
Create a class called date that
includes three pieces of information as data members—a month (...
Questions
question
Mathematics, 19.01.2021 19:20
question
Mathematics, 19.01.2021 19:20
question
English, 19.01.2021 19:20
question
Mathematics, 19.01.2021 19:20
question
Mathematics, 19.01.2021 19:20
Questions on the website: 13722363