Question: The objective of Assignment 3 is to practice functions, lists, and files. It does not require the use of any external libraries or modules. Problem
The objective of Assignment is to practice functions, lists, and files. It does not require the use of any external libraries or modules.
Problem Description:
International Transport Company ITC operates a bus service providing passenger transportation both within cities intracity and between cities intercity ITC has established time schedules for buses to reach their destinations on time. While delays due to traffic or other reasons are expected, arriving early suggests that drivers may be either driving excessively fast or not allocating sufficient time at intermediate stations. Therefore, ITC has decided to identify drivers who arrive before the scheduled time and impose a penalty of RO for each instance of early arrival.
A sample input text file named 'DayToDayRegister.txt is available on Moodle. The file contains fields as shown in the following figure, which shows the first few lines of the input file:
tableBus Route,Emp IdName,tableScheduledTimetableArrivalTimeKhamis,::
Sample runoutput:
tabletableScreen :tableInternational Transport Company Display information by bus route Display information emp id Early coming drivers Penalty on Early coming Drivers Drivers of the day ExitEnter Your Choice : Invalid InputInternational Transport Company Display information by bus route Display information emp id Early coming drivers Penalty on Early coming Drivers Drivers of the day ExitEnter Your Choice :
Screen :
International Transport Company
Display information by bus route
Display information empl id
Early coming drivers
Penalty on Early coming Drivers
Drivers of the day
Exit
Enter Your Choice :
Enter the bus route number:
EmpId Name Scheduled time Arrival time
Saif
:
:
:
:
:
:
Screen :
The objective of Assignment is to practice functions, lists, and files. It does not require the use of any external libraries or modules.
Problem Description:
International Transport Company ITC operates a bus service providing passenger transportation both within cities intracity and between cities intercity ITC has established time schedules for buses to reach their destinations on time. While delays due to traffic or other reasons are expected, arriving early suggests that drivers may be either driving excessively fast or not allocating sufficient time at intermediate stations. Therefore, ITC has decided to identify drivers who arrive before the scheduled time and impose a penalty of RO for each instance of early arrival.
A sample input text file named 'DayToDayRegister.txt is available on Moodle. The file contains fields as shown in the following figure, which shows the first few lines of the input file:
tableBus Route,Emp IdName,tableScheduledTimetableArrivalTimeKhamis,::
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
