time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Input-Output Format: The first line of input will contain a single integer T, denoting the number of…
Q: Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every…
A: Class Diagram: It is UML that defines the structure of the application or system with help of…
Q: (ii) Explain the three properties that any solution to the Critical Section Problem should…
A: A Critical Section Problem has a code segment which accesses shared variables and needs to be…
Q: Consider the tollowing scenario: A high school has 1000 students and 1000 lockers, one locker for…
A: Given, Locker puzzle program
Q: Customers are arriving at a queue at the rate of 6 customers per hour. Of these. 20% require a fored…
A: l = 6/hr = 0.1/min20% - 2 min duration or service rate is 1/2 (entities/min) = 0.580% - expo service…
Q: Give an example of a case in which the complete denial of a service to a user (in which the user…
A: Introduction: A Denial of Service (DoS) attack renders a resource (website, program, or server)…
Q: In a private university, students can enrol for at least 1 to a maximum of 5 subjects in a semester.…
A: Here we draw simple class diagram to fulfill the given condition:…
Q: Give an example of a case in which the complete denial of a service to a user (in which the user…
A: DoS (Denial of Service) attack: A Denial of Service (DoS) attack renders a resource (website,…
Q: Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every…
A: According to the question given: The program consists of 4 classes, Campus, Student, FullTime…
Q: Given the following set of tasks and their associated profits and deadlines, what is the most…
A: Introduction :Given , the table for task , profit and deadline .We have to maximize the profit.
Q: Note: Please Answer in C++ Only Mr. Cook is the manager of Code cinemas and after a long break the…
A: In this question we need to write a C++ program to find the number of tickets that can be sold. We…
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A:
Q: (B) An ATM allows a customer to withdraw a maximum of Rs. 500 per day. If a customer withdraws more…
A: #include<iostream> using namespace std; int main() { double balance,amount; bool…
Q: There are n trading posts along a river numbered 1, 2, 3, ., n. At any of the posts you can rent a…
A:
Q: Deadlock is a term that refers to a situation where there is no way out What is the difference…
A: Introduction: Deadlock: A deadlock occurs in an operating system when any process enters a waiting…
Q: Imagine a couple that agreed to meet this evening, but cannot recall if they will be attending the…
A: This is game theory problem: If they cannot communicate, where should they go then followiing…
Q: ibrary must build shelving to shelve 200 4-inch high books, 150 8-inch high books, 300 10-inch high…
A: Lets see the solution.
Q: A group of n tourists must cross a wide and deep river with no bridge in sight. They notice two…
A: given : A group of n tourists must cross a wide and deep river with no bridge in sight. They notice…
Q: A construction company has four large bulldozers located at four different garages. The bulldozers…
A:
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Program plan: Implement a loop that runs the program for a specified number of test cases. Get the…
Q: Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every…
A: Step 1 Class Diagram: It is UML that defines the structure of the application or system with help of…
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Input-Output Format: The first line of input will contain a single integer T, denoting the number…
Q: A gym offers personal trainers for a customized 45-minute lunch hour workout special. Customers…
A: the correct statement is
Q: time student will be allowed to access the campus after 12h00. Part time students can access the…
A: Step 1It is UML that defines the structure of the application or system with help of diagram which…
Q: he seller has a whole new store for sale "buy 2, get 1 for free". or legal reasons, they are unable…
A: import java.util.ArrayList; import java.util.List; import java.util.Scanner; import…
Q: b) To compare two kids of bumper guards, 6 of each kid were mounted on a car and then the car was…
A: Guard1 Guard 2 127.33 129.00 mean 24.45 14.21 std. dev. 6 6 n
Q: ve an example of a situation in which the total denial of a service to a user (the user receiving no…
A: Introduction: A Denial of Service (DoS) attack renders a resource (website, program, or server)…
Q: Consider the following scenarios. A high school has 1000 students and 1000 lockers, one locker for…
A: Program Approach:- 1. Create the class Main 2. In the main function, Declare arrayUse for…
Q: It has been observed by management that some faculty member at the university demonstratesa…
A: CODE:- #include<iostream>using namespace std;class Teacher_salary{ public:…
Q: A large apple farm distributes their apples in boxes that they can source from any one of a number…
A: GIVEN: A list of possible capacities of boxes that holds apples. TO FIND: The size of a small batch…
Q: (a) Suppose there are seven finals to be scheduled. Suppose that the following pairs of courses have…
A: This scheduling problem can be solved using a graph model with vertices representing courses and…
Q: Formulate an optimization model for this problem.
A: Time 12pm - 9pm Constraint Min 4 Hour Max 8 Hours Optimization Model Employee#1 after 4pm E1 - 5…
Q: Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every…
A: Given: Every campus has full time students who attend classes between 8h00 and 17h00 during theweek.…
Q: Question 1. Suppose that the grading of x University courses is as follows: • Each student can get…
A: Java Source Code: import java.util.*; public class Question1 { int[] input=new int[5]; public…
Q: Consider the doctor-patient problem. There is a Doctor's clinic which has one Doctor, one patient…
A:
Q: In a school, there are four teachers X1,X2, X3,X4 and five batches Y1,Y2,Y3,Y4,Y5. Given that…
A: The Answer is in step-2.
Q: An electronics mega store is getting opened in "India". Under the same cap of Indian Mega store…
A: After reading the given information carefully, it can be observed that there is a hierarchy of Mega…
Q: Java
A: Here we are using java code
Q: 2. A friend needs to drive from City X to City l and would like to find the shortest route between…
A: Here, I have to find the minimum distance from city X to city I.
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A: The answer is given below..
Q: In a lake, the population of a particular fish species is about 1 million. Fish reproduce by 20% of…
A: Answer
Q: The V Epidemic is spreading fast around the world. Suppose that there are N cities, numbered from 0…
A: An array data structure holds similar data items in contiguous memory locations. Each element in an…
Q: IKEO is a furniture manufacturer which produces two sizes of wood blocks (type A and B) that are…
A: Below is the required C++ program: - Program: - // header files#include <bits/stdc++.h> using…
Q: Draw a DFA that describes the behavior of vending machine which accepts Indian rupees and quarters…
A: At the stage $1.00, there should not be a self-loop for input $1.00,$0.25. I have corrected it. I…
Q: a At the imaginary university e/UT there are 101 students in their first year at M&CS. In their…
A: The answer is as follows
Q: of 90% for all her subjects she will still be able to study medicine but will have to complete a BSc…
A: Pseudocode is a set of shortened steps which is used to solve a problem by implementing in a…
Q: 1- Suppose you have the information of sales (Cla) of poultry factory (elall Jen),contain several…
A: Answer is given below .
Q: Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every…
A: Inheritance:when one object acquires all the properties and behaviours of parent object is known as…
Every campus has full time students who attend classes between 8h00 and 17h00 during the
week. Every campus also has part time students who attend classes between 18h00 and 21h00 on
weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should
be allowed to access the campus after 12h00. The campus has decided to change this rule to state
“no full-time student will be allowed to access the campus after 12h00. Part time students can
access the campus as from 17h00
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from 17h00”.20; 21 2021© The Independent Institute of Education (Pty) Ltd 2021Page 4 of 4Q.2.1 By making use of a class diagram, demonstrate how the concept of inheritance can be used to represent the scenario provided at the beginning of this question. Marks will be awarded as follow:Q.2.1.1 Class diagram showing inheritance; (8)Q.2.1.2 Attributes; (4)Q.2.1.3 Instance methods; (12)Q.2.1.4 Access specifiers. (2)Q.2.2 By means of pseudocode, demonstrate how overloaded methods can be used in the COVID-19…Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from 17h00”.Q.2.1 By making use of a class diagram, demonstrate how the concept of inheritance can be used to represent the scenario provided at the beginning of this question. Marks will be awarded as follow:Q.2.1.1 Class diagram showing inheritance; Q.2.1.2 Attributes; Q.2.1.3 Instance methods; Q.2.1.4 Access specifiers.Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from 17h00”. Q.2.1 By making use of a class diagram, demonstrate how the concept of inheritance can be used to represent the scenario provided at the beginning of this question. Marks will be awarded as follow:Q.2.1.1 Class diagram showing inheritance; Q.2.1.2 Attributes; Q.2.1.3 Instance methods; Q.2.1.4 Access specifiers. Q.2.2 By means of pseudocode, demonstrate how overloaded methods can be used in the COVID-19 application you are designing.
- Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from 17h00”. By making use of a class diagram, demonstrate how the concept of inheritance can be used to represent the scenario provided at the beginning of this question.Q.2.1.1 Class diagram showing inheritanceQ.2.1.2 AttributesQ.2.1.3 Instance methodsQ.2.1.4 Access specifiers.Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from 17h00” By means of pseudocode, demonstrate how overloaded methods can be used in the COVID-19 application you are designing.Three prisoners have been sentenced to long terms in prison, but due to over crowed conditions, one prisoner must be released. The warden devises a scheme to determine which prisoner is to be released. He tells the prisoners that he will blindfold them and then paint a red dot or blue dot on each forehead. After he paints the dots, he will remove the blindfolds, and a prisoner should raise his hand if he sees at least one red dot on the other two prisoners. The first prisoner to identify the color of the dot on his own forehead will be release. Of course, the prisoners agree to this. (What do they have to lose?) The warden blindfolds the prisoners, as promised, and then paints a red dot on the foreheads of all three prisoners. He removes the blindfolds and, since each prisoner sees a red dot (in fact two red dots), each prisoner raises his hand. Some time passes when one of the prisoners exclaims, "I know what color my dot is! It's red!" This prisoner is then released. Your problem…
- It has been observed by management that some faculty members at theuniversity demonstrate a lackadaisical attitude toward teaching. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2000.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class in a month.One of them should have absented him/herself…It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…
- Consider the following scenario: A high school has 1000 students and 1000 lockers, one locker for each student. On the first day of school, the principal plays the following game: She asks the first student to open all the lockers. She then asks the second student to close all the even-numbered lockers. The third student is asked to check every third locker. If it is open, the student closes it; if it is closed, the student opens it. The fourth student is asked to check every fourth locker. If it is open, the student closes it; if it is closed, the student opens it. The remaining students continue this game. In general, the nth student checks every nth locker. If it is open, the student closes it; if it is closed, the student opens it. After all the students have taken turns, some of the lockers are open and some are closed. The program below, when ran, will prompt the user to enter the number of lockers in the school. After the game is over, the program will output the number of…Consider the following scenario: A high school has 1000 students and 1000 lockers, one locker for each student. On the first day of school, the principal plays the following game: She asks the first student to open all the lockers. She then asks the second student to close all the even-numbered lockers. The third student is asked to check every third locker. If it is open, the student closes it; if it is closed, the student opens it. The fourth student is asked to check every fourth locker. If it is open, the student closes it; if it is closed, the student opens it. The remaining students continue this game. In general, the nth student checks every nth locker. If it is open, the student closes it; if it is closed, the student opens it. After all the students have taken turns, some of the lockers are open and some are closed. The program below, when ran, will prompt the user to enter the number of lockers in the school. After the game is over, the program will output the number of…In the new post-apocalyptic world, the world queen is desperately concernedabout the birth rate. Therefore, she decrees that all families should ensure that they have one girl orelse they face massive fines. If all families abide by this policy-that is, they have continue to havechildren until they have one girl, at which point they immediately stop-what will the gender ratioof the new generation be? (Assume that the odds of someone having a boy or a girl on any givenpregnancy is equal.) Solve this out logically and then write a computer simulation of it.