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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, ahmedislife
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
image
Computers and Technology, 22.06.2019 10:30, ghazanfarwaheed7967
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, meijorjay94p2u2zy
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, wwwcarolynzouowficz
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
You know the right answer?
Create a class that simulates a school calendar for a course and has a warner that provides theschoo...

Questions in other subjects:

Konu
Mathematics, 22.04.2021 19:40
Konu
Arts, 22.04.2021 19:40
Konu
Mathematics, 22.04.2021 19:40