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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 46 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply