Assignment #9-10 (4%) : Driver - Name (String), License - Number (String), Number - of - Tickets (Integer)
Assignment #9-10 (4%) : Driver - Name (String), License - Number (String), Number - of - Tickets (Integer)
Submit all files, Input file, .py, .rap if you chose Raptor instead of Pseudo. Two input files if needed separately
for Python and Raptor. Do not submit snapshots.
Question 1:
The Department of Motor Vehicles in the state of Euphoria has finally decided to computerize its list of
licensed drivers. Write a program that makes use of an existing file named "licenses" with records of the
following form:
The program will prompt the user to enter the license number, then it displays the corresponding driver’s
name and number of tickets.
Hint: load the "licenses" file into three parallel arrays and search one of these for the license number
input.
Question 2:
The information of credit card transactions are stored in file with the following format:
date, company, amount
Example:
15/1/2021, Best Buy, TV, $1200.54
20/1/2021, Costco, Chair, $220.37
Develop a program that reads the information of transactions from a file and calculates the total
amount of payments that are made. Then, adds the following sentence to the end of that file:
For example:
“Total amount spent: $1420.91.