Question: ITI 1 1 2 1 . Introduction to Computing II Winter 2 0 2 4 Assignment 1 ( Last modified on January 1 0 ,

ITI 1121. Introduction to Computing II
Winter 2024
Assignment 1
(Last modified on January 10,2024)
Deadline: February 2,2024,11:30 pm
Learning objectives
Edit, compile and run Java programs
Utilize arrays to store information
Apply basic object-oriented programming concepts
Understand the university policies for academic integrity
Introduction
This year, we are going to implement, through a succession of assignments, a simple parking-lot simulator and
optimizer. For Assignment 1, we have modest goals though: we would like to read from a file the design and the
occupancy information of a parking lot, and perform some basic operations, for example, parking a car at a certain
spot in the lot. What you need to do in this assignment is illustrated with an example. Suppose we have a file
named parking. inf with the content shown in Figure 1.
Figure 1: Example input file
You will parse the input data and build the conceptual memory representation shown in Figure 2. More pre-
cisely, we get: (1) an instance variable, lotDesign, instantiated with a with a two-dimensional CarType array (of
size 45) and (2) an instance variable, occupancy, instantiated with a two-dimensional Car array (of the same size
as lotDesign). These arrays will be populated with the data in the input file. The lotDesign variable represents
the design of the parking lot and the occupancy variable keeps track of the cars that are parked in the lot.
CarType is an enumeration class defined as follows:
In the input file, the letter "E" means ELECTRIC, "S" means SMALL, "R" means REGULAR, "L" means LARGE
and "N" means Not Applicable (NA). The special NA value is used in the parking-lot design when a spot is usuitable
for parking a car (e.g., when pillars or building facilities are blocking the spot).
 ITI 1121. Introduction to Computing II Winter 2024 Assignment 1 (Last

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!