0% found this document useful (0 votes)
50 views1 page

Assignment1C Files

The document provides instructions for an assignment to write a Java application that reads vehicle data from a text file, analyzes the data to determine the number and types of vehicles, and generates a report file. The application must create a Netbeans project, read a file containing vehicle codes and types, count the number of different vehicle types and total vehicles, and write a report to another text file with this information. Good programming practices like modular code and efficient algorithms are required. The completed project must be submitted.

Uploaded by

Big
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

Assignment1C Files

The document provides instructions for an assignment to write a Java application that reads vehicle data from a text file, analyzes the data to determine the number and types of vehicles, and generates a report file. The application must create a Netbeans project, read a file containing vehicle codes and types, count the number of different vehicle types and total vehicles, and write a report to another text file with this information. Good programming practices like modular code and efficient algorithms are required. The completed project must be submitted.

Uploaded by

Big
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like