Register

Homework Help Question and Answers

Submit a new Query

Recent Homework Help Question & Answers


Question 26545

posted 1 years ago

Class Person (20 points):
Create an abstract class Person with the following private attributes: String full Name,String address, My Date bday, String department, int hours Per Week, int base salary.
Implement an abstract method calc Salary():int.
Implement the to String() method that prints all the information about a Person.

View answer

Question 26546

posted 1 years ago

Implement class Nurse that inherits from Person. Declare the following private attribute: boolean isHeadNurse
Implement the to String() method that prints all the information about a Nurse,including the inherited attributes.
Implement the method isHeadNurse () that increments the base Salary with 100KD if the nurse is a head Nurse.
Implement the method calcSalary() that implements and returns the total Salary of the Nurse, If the nurse is a head Nurse, increment the base Salary with 100KD. IF the nurse works more than 20 hours/week, increment the salary with another 100KD.

View answer

Question 26547

posted 1 years ago

Implement method compare To(Doctor d) that compares and returns the doctor with the hightest nr of publications
Implement the to String() method that prints all the information about a Doctor,including the inherited attributes.
Implement the method isHeadofDept () that increments the base Salary with 100KD if the doctor is a head of department
Implement a method calc Salary() that calculates and returns the total Salary of a Doctor. If the doctor has more than 5 publications, increment the salary with 50KD for every publication. If the doctor is head of department, increment the base Salary with another 100KD.
Implement class Doctor that inherits from Person. Declare the following private attributes: int publications, Boolean head Of Dept.

View answer

Question 26548

posted 1 years ago

In the main method create two Nurse objects and :
o Print their info
- Check if they are head nurses
Print their updated salaries.
Create two Doctor objects and :
Print their info
Check if they are head of department
Print their updated salaries
Compare the two doctors and print which one has the highest number of publications.

View answer

Question 27550

posted 1 years ago

Download the file “Assignment_trace_802_11.pcap" from Moodle. In this trace file, we'll see frames captured from transmission between devices communicating via a wifi network.Once you have downloaded the trace, you can loạd it into Wireshark and view the trace using the File pull down menu, choosing Open, and then selecting the Assignment_trace_802_11.pcap trace file. The resulting display should look just like the figure below:
1. What are the SSIDS of the two access points that are issuing most of the beacon frames in this trace?
2. When was the first HTTP protocol issued? Give the time in seconds from the beginning of capture.
3. Find the (channel) frequency in MHz?
4. Find the data rate in bps?
5. Find the type of the frame? (data, control, or management?)
6. Find the SSI signal in dBm? (signal strength/antenna signal)
7. Find the SSI noise in dBm? (noise level/antenna noise)
8. Find the frame length in bytes?
9. What is the source MAC address (in hexadecimal notation)?
10. What is the destination MAC address (in hexadecimal notation)?

View answer

Question 28211

posted 1 years ago

There exist 8 resources in the system. The current system state is as follows
Is this allocation safe, and if yes give one safe state and justify your answer?

View answer

Question 28210

posted 1 years ago

The first known correct software solution to the critical-section problem for n processes with a lower bound on waiting of n -1 tums was presented by Eisenberg and McGuire. The processes share the following variables:
enumpstate idle, want_in, in_cs};
pstate flag[n];
int turn;
All the elements of flag are initially idle. The initial value of turn isimmaterial (between 0and n-1). The structure of process Piis shown in the following Figure. Prove that thealgorithm satisfies all three requirements forthe critical-section problem.

View answer

Question 28212

posted 1 years ago

Assuming a 1-KB page size, what are the page numbers and offsets for the following address references (provided as decimal numbers):
а. 3085
b. 42095
c. 215201
d. 650000

View answer

Question 27570

posted 1 years ago

Which of the following four statements accurately describe what it means for a decision problem X to be recursively enumerable?
There exists a sound and complete algorithm for X.
There are no sound, complete and terminating algorithms for X.
Any sound and complete algorithm for Xmust also be terminating.
The Halting problem for Turing Machines is undecidable.

View answer

Question 27571

posted 1 years ago

Which of the following accurately describes the Cook-Levin Theorem?
Every problem that can be verified in polynomial time can be solved in polynomial time.
Every Turing Machine problem can be polynomially reduced to an instance of SAT.
The Boolean Satisfiability problem SAT is NP-complete.
The Halting problem for Turing Machines is undecidable.

View answer

Questions not Found

Most popular subject

Thermodynamics

Essay/Summary

Mechanics

Complex Analysis

Engineering Economics

Calculus

Modern Physics

General Chemistry

Strength Of Materials

Fluid Mechanics

x