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, 21.06.2019 19:20
Number of megabytes of ram in a computer. qualitative or quantitative? because
Answers: 3
question
Computers and Technology, 21.06.2019 23:30
Show that there is a language a ⚆ {0, 1} â— with the following properties: 1. for all x â a, |x| ≤ 5. 2. no dfa with fewer than 9 states recognizes a. hint: you don’t have to define a explicitly; just show that it has to exist. count the number of languages satisfying (1) and the number of dfas satisfying (2), and argue that there aren’t enough dfas to recognize all those languages. to count the number of languages satisfying (1), think about writing down all the strings of length at most 5, and then to define such a language, you have to make a binary decision for each string about whether to include it in the language or not. how many ways are there to make these choices? to count the number of dfas satisfying (2), consider that a dfa behaves identically even if you rename all the states, so you can assume without loss of generality that any dfa with k states has the state set {q1, q2, . . , qk}. now think about how to count how many ways there are to choose the other four parts of the dfa.
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
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
Biology, 29.01.2020 06:06
question
History, 29.01.2020 06:06