Page 1 of 1 Pages SUBJECT: APPLICATIONS DEVELOPMENT PRACTICE II
APPLICATIONS DEVELOPMENT PRACTICE II (ADP262S)
ASSIGNMENT 1 - FILES Date: 04 May 2023
You have been commissioned to write part of an application that reads values from a text
file, and then writes a report to another text file.
Step 1: Create a Netbeans project called Assignment1CProject.
Step 2: Write the Java code for a class (or classes) to:
a) Read the contents of the given text file, Fleet.txt
The vehicle codes correspond to the different types of vehicles:
S270 Mid-size sedan
S300 Luxury sedan
S220 10-seater minibus
S290 Luxury SUV
S180 Compact budget
b) Determine the number of different types of vehicles
c) Determine the total number of vehicles
d) Write a report to another text file, FleetReport.txt
A sample of the required report is shown below:
Additional instructions:
Make use of good programming practices:
o modular programming techniques. One method should not do more than one
logical operation.
o Efficient algorithms and code
A submitted solution application that does not compile, or does not produce any
output will receive ZERO marks.
Once completed, submit a zipped Netbeans project to the link on BB.
Failure to follow instructions will result in penalties.