Create a class called computers and two classes MyComputer and YourComputer which inherits computer class. Define appropriate fields for the three classes. Create another class processor as a composite class of computer. Write a method which prints the differences between the processors of two computers.
Identify and describe some of the process steps followed in your work area or organisation as per the below;
a. Provide a summary of the steps that are followed
b. Indicate how frequently the process occurs
c. Outline who is involved in the process
d. Describe what kind of measurements are taken, using which instruments to ensure for quality safety and customer satisfaction are achieved?
Note: you may present your answer graphically in the form of a process chart.
Draw up a skeleton of a crisis management plan that would assist Shell Petroleum in dealing
with the Public Relations issue they face and make recommendations on how they could
improve dealing with this issue in the future.
Which of the following is TRUE about disaster?
A. It is caused by a natural phenomenon only.
B. It causes destruction to limited parts of the community.
C. It causes mental terror and physical threat to selected people.
Three airlines serve a Srinagar. Airline ‘Amira’ has 50% of all the scheduled flights, airline ‘Biyas’ has 30%, and airline ‘chinar’ has the remaining 20%. Their on-time rates are 80%, 65%, and 40%, respectively.
Part 1) Draw the Probability tree diagram. (Note: You may use any software for this, like MS paint, MS office, etc.)
Part 2) A plane has just left on time. What is the probability that it was airline ‘Amira’?
Prove that the complete disjunctive normal form and complete conjunctive normal form in three variables in a Boolean algebra is equal to the unit and zero element of the Boolean algebra.
Has there been a conflict between cargo owners and ship-owners concerning the assignment of liability for damaging or losing cargo? Do you think the evolution of rules (from the Hague Rules -1924 to Rotterdam Rules- 2008)is unfair to cargo owners? Discuss
Question 3: (Inheritance)
Create an abstract class called Employee that has an abstract method call computePay() which
computes the total pay per employee using the rate per hour = $50. The method should accept
the number of hours the employee has worked. Create a child class called employeeChild and
provide the implementation. In the main method invoke that method and get the number of hours
worked from the user and pass it to the called method.
Question 2 (Polymorphism)
Mathematically, the area of a rectangle is computed as length * width, the area of a circle is
computed as pi*radius*radius. Given that pi = 3.14, write a Java program with an overloaded
method called getArea() that can compute for the area of a circle or rectangle depending on the
parameters supplied. Illustrate how you will invoke the method in the main method for the two
scenarios.
You’re working on a search engine. Watch your back Google!
The given code takes a text and a word as input and passes them to a function called search().
The search() function should return "Word found" if the word is present in the text, or "Word not found", if it’s not.
Sample Input
"This is awesome"
"awesome"
Sample Output
Word found