Question: using java Question 10: Write a java program to read from a text file called Carlist.txt. The file includes samadel saclear. and carprice for an

using java
Question 10: Write a java program to read from a text file called "Carlist.txt". The file includes samadel saclear. and carprice for an unknown number of Cars. The file uses a comma-separated file format, as the sample below. The program should write New cars only into an output file called "NewCars.txt". A car is considered new if its year is above 2019. Finally, the program should print the number of new cars, the most expensive car, and the cheapest car at the end of the output file. The format of the output file should be similar to the given sample. Carlist.txt Ford, 2016,2400 Jaguar, 2019,3000 Ferrari, 2020,50000 Audi, 2021,6000 Honda, 2018,1500 BMW, 2017, 7000 NewCars.txt Car model Year Jaguar 2019 Ferrari 202 Audi 2021 Number of new cars is 3 The most expensive car is Ferrari The cheapest car is Honda
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
