Computers and Technology

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.)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:40, Dogtes9667
Consider the following generator matrix: g= (1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 1 1 0) find all the codewords generated by this generator matrix. determine the number of errors that this code will detect. determine the number of errors that this code will correct. prove that a linear code's minimum weight is equivalent to its minimum distance. that is, where c is a linear code, dist(c) = wh(c)
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, kayladgranger
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
image
Computers and Technology, 23.06.2019 05:00, mariahchaparro08
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
Do you know the correct answer?
Create a class that simulates a school calendar for a course and has a warner that provides theschoo...

Questions in other subjects: