subject

Create a class that simulates a school calendar for a course and has a warner that provides theschool administration with the option of warning students when the last day is that a student ispermitted to drop the course. (allow administrators to warn or not, as they wish. do not make thisa required function.)you will assume in this calendar that there are 12 months in a year, 4 weeks in a month, and 7days in a week. you can represent any day by 3 numbers. for example 12/3/2 would representthe 2nd day in the 3rd week of the 12th month. in this class you should: store a calendar day in terms of month, week, and day. (you should represent the monthfrom 1 to 12, week from 1 to 4, and day from 1 to 7.)initialize the calendar to a specified day. (for example, you can initialize the calendar to1/1/1.)allow the calendar to increment to the next day. (hint: you need to take into accountthings such as whether the calendar is at the 3rd week, 6th day. then you may need toconsider iterated if statements.) in addition, you need to prevent the possibility of goingbeyond the 12th month, 4th week, and 7th day. set the warner and have the warner print out "today is the last day to drop thecourse" when the set date is reached. (hint: you may wish to create a private functionthat provides the wished-for printout when the date is reached and the warner is on.)display the present date. use the class in a program that uses the functions requiring displaying of time and settingof the warner. include 2 constructors. one constructor should be the default constructor that will initialize theobject to 1/1/1. the second constructor should take parameters for months, weeks, and days. both constructors will provide the private members with the date. in addition, have bothconstructors set the warner as off. (you will need a boolean attribute that determines whether thewarner is on or off. the administrators have the option of using the warner. they do not have toprovide a warning to students if they do not wish to. in fact, the constructor should set the defaultas the warner is off and will not provide a warning to students.) the function or method you use toset the warner will set the warner on. (hint: have the class also have attribute of month, week, and day and the ability to be on or off with a boolean variable for the warner.)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
What process should be followed while giving a reference? sam has given a reference of his previous manager in his resume. sam should him in advance that the potential employers will him.
Answers: 1
You know the right answer?
Create a class that simulates a school calendar for a course and has a warner that provides theschoo...
Questions
question
Mathematics, 15.05.2021 01:30
question
English, 15.05.2021 01:30
question
Mathematics, 15.05.2021 01:30