Question: Partl (7.5 Points): Write a Java program for a robot that reads tasks from a log file (logFile.txt) that have been already conducted by the

Partl (7.5 Points): Write a Java program for a robot that reads tasks from a log file (logFile.txt) that have been already conducted by the robot so far. The tasks are displayed on an LED screen that is attached to the robot's head. Tasks are displayed on the screen sorted by their priority. Priority is represented as an integer number from 1 to 3 such that 1 for highest and 3 for lowest. Note that the log file could contain an arbitrary number of tasks stored in the following format (5 lines for each task): Task description (only one line), time (when the task was received), duration (how long did it take to complete the task in minutes) Date of the task (MM/DD/YYYY) The priority of the task (1 to 3) The program first prompts the user to enter a password that must be compared against a pre-stored list of valid passwords saved in a text file (passwords.txt). If the entered password is found in the password's file, then the program reads the tasks from the logfile.txt. Otherwise, the program notifies the user about the incorrect password and terminates. The password file has an arbitrary number of passwords. Example: The password's file (passwords.txt) A+bUwS#@2X19 Pass*K$e8Y Token T2w logFile.txt The output on the screen (Must be in the same format) Make a fresh coffee Number of the tasks 4. 06:31 AM 7 Minutes Task 1: 06/29/2015 description: Call 911, heart attack Time: 06:57 AM Get me the phone Duration: 0.35 Minutes 6:39 AM Date: 06/29/2015 0.25 Minutes Priority: 1 06/29/2015 Task 2: Bring me today's newspapers description: Get me the phone 06:40 AM Time: 06:39 AM 1 Minutes Duration: 0.25 Minutes 06/29/2015 Date: 06/29/2015 Priority: 2 Call 911, heart attack 06:57 AM Task 3: 0.35 Minutes description: Bring me today's news papers 06/29/2015 Time: 06:40 AM Duration: 1 Minutes Date: 06/29/2015 Priority: 2 Task 4: description: Make a fresh coffee Time: 06:31 AM Duration: 7 Minutes Date: 06/29/2015 Priority: 3 Partl (7.5 Points): Write a Java program for a robot that reads tasks from a log file (logFile.txt) that have been already conducted by the robot so far. The tasks are displayed on an LED screen that is attached to the robot's head. Tasks are displayed on the screen sorted by their priority. Priority is represented as an integer number from 1 to 3 such that 1 for highest and 3 for lowest. Note that the log file could contain an arbitrary number of tasks stored in the following format (5 lines for each task): Task description (only one line), time (when the task was received), duration (how long did it take to complete the task in minutes) Date of the task (MM/DD/YYYY) The priority of the task (1 to 3) The program first prompts the user to enter a password that must be compared against a pre-stored list of valid passwords saved in a text file (passwords.txt). If the entered password is found in the password's file, then the program reads the tasks from the logfile.txt. Otherwise, the program notifies the user about the incorrect password and terminates. The password file has an arbitrary number of passwords. Example: The password's file (passwords.txt) A+bUwS#@2X19 Pass*K$e8Y Token T2w logFile.txt The output on the screen (Must be in the same format) Make a fresh coffee Number of the tasks 4. 06:31 AM 7 Minutes Task 1: 06/29/2015 description: Call 911, heart attack Time: 06:57 AM Get me the phone Duration: 0.35 Minutes 6:39 AM Date: 06/29/2015 0.25 Minutes Priority: 1 06/29/2015 Task 2: Bring me today's newspapers description: Get me the phone 06:40 AM Time: 06:39 AM 1 Minutes Duration: 0.25 Minutes 06/29/2015 Date: 06/29/2015 Priority: 2 Call 911, heart attack 06:57 AM Task 3: 0.35 Minutes description: Bring me today's news papers 06/29/2015 Time: 06:40 AM Duration: 1 Minutes Date: 06/29/2015 Priority: 2 Task 4: description: Make a fresh coffee Time: 06:31 AM Duration: 7 Minutes Date: 06/29/2015 Priority: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
