Page 1 of 1

Assignment 5 Suppose you are given a text file named “Cars”, in which each line of the file contains the model, year and

Posted: Sat May 14, 2022 3:06 pm
by answerhappygod
Assignment 5 Suppose You Are Given A Text File Named Cars In Which Each Line Of The File Contains The Model Year And 1
Assignment 5 Suppose You Are Given A Text File Named Cars In Which Each Line Of The File Contains The Model Year And 1 (46.52 KiB) Viewed 47 times
Assignment 5 Suppose you are given a text file named “Cars”, in which each line of the file contains the model, year and price of a car, separated by “;». Your program should read the "Cars" file and save the data into another text file named “Result”, such that the car price of year 2019 should increased by 5%. Also, output the number of cars with updated prices, as shown in the example below be Cars.txt Result.txt Patrol;2019;20000.000 Corrolla;2018;6000.000 Yaris;2019,7500.000 Mazda6;2017;8000.000 Patrol,2019,21000.000 Corrolla;2018;6000.000 Yaris;2019;7875.000 Mazda6;2017;8000.000 Number of cars with updated prices = 2