Question: PaymentBalance.txt - Notepad CarRental.txt - Notepad File Edit Format View Help Mohd Zulkiflie Bin Samad; 770101-01-5555;7; Toyota Vellfire;600.0 Sharifah Alya Binti Syed Ali;830382-18-5444;4; Honda Civic;480.

 PaymentBalance.txt - Notepad CarRental.txt - Notepad File Edit Format View Help

PaymentBalance.txt - Notepad CarRental.txt - Notepad File Edit Format View Help Mohd Zulkiflie Bin Samad; 770101-01-5555;7; Toyota Vellfire;600.0 Sharifah Alya Binti Syed Ali;830382-18-5444;4; Honda Civic;480. Adam Bin Mohd Salleh; 788424-83-5328;3;Proton Preve; 300.0 Noor Munirah Binti Abdullah; 890228-04-5332;2;Perodua MyVi;150.0 Ahmad Zharif Bin Abu;841211-10-5339;5; Honda Civic;480.0 File Edit Format View Help FINAL PAYMENT CUSTOMER NAME IC NUMBER TYPE OF CAR NUMBER OF DAYS DEPOSIT TOTAL BALANCE Mohd Zulkiflie Bin Samad Sharifah Alya Binti Syed Ali Adam Bin Mohd Salleh Noor Munirah Binti Abdullah Ahmad Zharif Bin Abu 770101-01-5555 Toyota Vellfire 830302-10-5444 Honda Civic 788424-03-5328 Proton Preve 890228-84-5332 Perodua Myvi 841211-10-5339 Honda Civic 7 4 3 2 5 600.00 400.00 380.00 150.00 400.00 5250.80 4650.00 2208.00 1800.00 900.ee 600.ee 500.00 350.00 2750.00 2350.00 Figure 1.0 CarRental.txt Write a complete Java program based on the given information to do the following: Figure 1.1 PaymentBalance.txt Customer.txt - Notepad a) Read data from CarRental.txt b) Store the details as shown in file PaymentBalance.txt by counting the balance that the customer have to pay as shown in Figure 1.1. Find the balance by using the following formula: total payment = day rented * price per day balance= total payment - deposit File Edit Format View Help CUSTOMER CUSTOMER NAME Mohd Zulkiflie Bin Samad Sharifah Alya Binti Syed Ali Ahmad Zharif Bin Abu IC NUMBER TYPE OF CAR BALANCE 770101-01-5555 Toyota Vellfire 4650.00 830302-10-5444 Honda Civic 1800.00 841211-10-5339 Honda Civic 2350.00 Price per day (RM) 750.0 Figure 1.2 Customer tx Type of car Toyota Vellfire Honda Civic Proton Preve Perodua Myvi 550.0 300.0 250.0 c) Store all customers who have balance more than 1000.0 in file named customer.txt as shown in figure 1.2. d) Use an appropriate exception handling to handle any possible errors. e) The expected output is shown below. PaymentBalance.txt - Notepad CarRental.txt - Notepad File Edit Format View Help Mohd Zulkiflie Bin Samad; 770101-01-5555;7; Toyota Vellfire;600.0 Sharifah Alya Binti Syed Ali;830382-18-5444;4; Honda Civic;480. Adam Bin Mohd Salleh; 788424-83-5328;3;Proton Preve; 300.0 Noor Munirah Binti Abdullah; 890228-04-5332;2;Perodua MyVi;150.0 Ahmad Zharif Bin Abu;841211-10-5339;5; Honda Civic;480.0 File Edit Format View Help FINAL PAYMENT CUSTOMER NAME IC NUMBER TYPE OF CAR NUMBER OF DAYS DEPOSIT TOTAL BALANCE Mohd Zulkiflie Bin Samad Sharifah Alya Binti Syed Ali Adam Bin Mohd Salleh Noor Munirah Binti Abdullah Ahmad Zharif Bin Abu 770101-01-5555 Toyota Vellfire 830302-10-5444 Honda Civic 788424-03-5328 Proton Preve 890228-84-5332 Perodua Myvi 841211-10-5339 Honda Civic 7 4 3 2 5 600.00 400.00 380.00 150.00 400.00 5250.80 4650.00 2208.00 1800.00 900.ee 600.ee 500.00 350.00 2750.00 2350.00 Figure 1.0 CarRental.txt Write a complete Java program based on the given information to do the following: Figure 1.1 PaymentBalance.txt Customer.txt - Notepad a) Read data from CarRental.txt b) Store the details as shown in file PaymentBalance.txt by counting the balance that the customer have to pay as shown in Figure 1.1. Find the balance by using the following formula: total payment = day rented * price per day balance= total payment - deposit File Edit Format View Help CUSTOMER CUSTOMER NAME Mohd Zulkiflie Bin Samad Sharifah Alya Binti Syed Ali Ahmad Zharif Bin Abu IC NUMBER TYPE OF CAR BALANCE 770101-01-5555 Toyota Vellfire 4650.00 830302-10-5444 Honda Civic 1800.00 841211-10-5339 Honda Civic 2350.00 Price per day (RM) 750.0 Figure 1.2 Customer tx Type of car Toyota Vellfire Honda Civic Proton Preve Perodua Myvi 550.0 300.0 250.0 c) Store all customers who have balance more than 1000.0 in file named customer.txt as shown in figure 1.2. d) Use an appropriate exception handling to handle any possible errors. e) The expected output is shown below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!