CCS108 Week 2 Laboratory Exercise
CCS108 Week 2 Laboratory Exercise
CCS108 Week 2 Laboratory Exercise
Laboratory Exercise
INSTRUCTION:
Create a class named “Lot” having class fields such as address, ownerFirstName, ownerLastName, length and width.
Determine the most appropriate data type for each field through the given set of default class field values:
A class named “MainProgram” will be defined in order to execute the program by including the given code from the
given items as the body of the main method of the class “MainProgram” one after another. By doing so, you can
answer the following items by writing your answers on the space provided. If the statements will result to a
compile- time or runtime error, do not write anything except ERROR as your answer. (2 points each)
File: Lot.java
NOTE: Treat each number as a new code execution, thus will not affect the changes in values per number.
ERROR
Hello John!
ERROR
ERROR
Attach your own PDF file (every group member should turn in his/ her own copy) as your submission
in the assigned task upon turning in using your MS Team Account following the given format above.
(your PDF file should begin with the first page of the given format)