let's build a Bookmark Maker by applying the concepts.
INSTRUCTIONS:
A corporation named XYZ needs a program to calculate how much to pay their part-time and full-time
employees.
For full-time employees, the employees get paid time and a half for any hours over 40 that they work in a
single week.eg if an employee works 45 hours, they get 5 hours of overtime, at 1.5 times their base
pay. The base should be at least RS. 120 an hour. This XYZ Corporation requires that an employee not work
more than 60 hours in a week.
For part-time employees, they get paid time and a half for any hours over 30 that they work in a single week.
Write a program that ask user to enter Employee Name, Employee type (full-time/pat-time), working hours and
base pay. You need to write the following methods:
1. Write a method that validates the input that if it in given range or not.
public static boolean isValidInput(Char empType, int workingHours, double
basePay)
2. A method that calculate pay based on given parameters.
public static double calculatePay(Char empType, int workingHours, double
basePay)
Declare a class called logic_gate to represent logic gates. The class has three data
members - input1, input2 and input3 to represent three inputs to the logic gate. The
class also has a virtual function member called get_gate_output. Derive two
classes from the base class logic_gate, namely, and_gate and or_gate to represent
‘logical and gate’ and ‘logical or gate’ respectively. Define function
get_gate_output in both of these classes to get the output of the gate. Show use of
above classes and functions to demonstrate dynamic polymorphism in function
main
Respond to the following question in at least three well composed paragraphs: What are the necessary conditions for a monopoly position in the market to be established?
Section 6.9 of your textbook ("Debugging") lists three possibilities to consider if a function is not working.