1. Develop a multi-threaded Java application as described below Five Secretarial job applicants take part in a speed typing test on a 480 minute (8 hour) long day. Each applicant has their strengths and weaknesses:

  • A's typing speed is 260 words per minute and takes a break every 30 minutes
  • B's typing speed is 210 words per minute and takes a break every 60 minutes
  • C's typing speed is 200 words per minute and takes a break every 60 minutes
  • D's typing speed is 240 words per minute and takes a break every 50 minutes
  • E's typing speed is 150 words per minute and takes a break every 100 minutes

Write a multithreaded Java application to simulate a typical day's document processing of 200, 500 word documents. Display a message in the terminal when each applicant has finished the test.

3. Create a job applicant class. The constructor accepts two integers for typing speed and break frequency, a reference to a break object and a String for its name. The applicant class should also have members that store a word count and duration in minutes. It should stop once the test is finished (i.e. after 480 minutes). The canteen for breaks can only be occupied by one applicant at a time and it is occupied at the start of the test for 10 minutes. This will require synchronisation between threads and the use of locks. If an applicant needs to take a break but another applicant is already in the canteen they must skip their break until their next scheduled break. As a result, their performance suffers and their throughput reduces by half until they have the opportunity to break again.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.