1) Design and implement a Java program to make a chat platform using synchronization between 3 threads.
2) Design a flowchart of your design
3) Implement your your design
4) Put your code and screenshot output in your pdf file.
Develop a java application using Inheritance as per the following. Create a class
Worker and derive two classes DailyWorker and SalariedWorker from it. Every
worker has name, salary rate. Provide a method ComPay(int hours) to compute the
week pay of every worker. A DailyWorker is paid on the basis of number of days
he/she works. The SalariedWorker gets paid the wage for 40 hours a week no
matter what actual hours is. Implement this scenario to calculate the pay of workers.
You are expected to use the concept of Inheritance with proper run time
polymorphism
Develop a java application using Inheritance as per the following. Create a super class called
CashTree which demonstrate any ATM Machine. Have attributes like name, codeno, location,
etc. Add functionalities like ViewBalance, WithDraw and Deposit in super class. Derive two
sub classes SBI_Bank, and HDFC_Bank with additional properties such as customer_name,
balance and redefine those super class functionalities according to the nature of specified
bank (differenciate via service_charges, interest rate, and maximum withdraw limit etc).
Complete the above scenario using Inheritance, Run Time Polymorphism with Menu driven
options.
Write a menu driven application to maintain the student information using Java to
demonstrate the concept of inheritance. Assume that you are considering PG and UG
students, where the specialization details are maintained only for the PG students. Your
application must contain the following functionalities along with the use of method
overriding, and super keyword.
a. For each student your application must have the details such as name,
Register Number , department, specialization, cgpa, Hostel Name,
Mentor Name, Number of Arrears.
b. Get the student details from user(admin)
c. Display the student list with all details in a proper and neat format.
d. In the menu give option to display the PG and UG student list
separately.
rules that govern employee behaviour are as follows: Most employees work 37.5 hours per week. employees earn R50 000 per year. Managers earn R20 000 extra per year. employees get 15 workdays leaves a year. Managers get an extra 3 days leave per year. Secretaries must work 40 per week. Name is the only attribute you need. Required: 1. Code the classes Employee, Manager and Secretary. 2. Code an application with the main method. In this class you must code an array of type Employee with a maximum size of 20. a. Add a minimum of 10 objects to the array. You may hard-code these object values. The objects must be a mixture of Employee, Manager and Secretary. b. Display all the objects on the screen. c. Calculate, and then display, the average salary of all employees. Extra Calculate and display the cost of the leave for each employee.
write 2 methods named descBubbleSort() and descInsertionSort() that take an array
of Strings as an argument and sort the string values in a descending order using
bubble sort and insertion sort respectively.