0% found this document useful (0 votes)
835 views

01 Laboratory Exercise 2

This document provides instructions for a laboratory exercise assignment on object-oriented programming. Students are asked to create a Java application that prompts a user for an integer input, then calls three methods - showNumberPlus10(), showNumberPlus100(), and showNumberPlus1000() - to display the input number plus 10, 100, and 1000 respectively. The program output should display the results on separate lines. Students are evaluated on correctness, logic, efficiency, and syntax.

Uploaded by

TomSkylark
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)
835 views

01 Laboratory Exercise 2

This document provides instructions for a laboratory exercise assignment on object-oriented programming. Students are asked to create a Java application that prompts a user for an integer input, then calls three methods - showNumberPlus10(), showNumberPlus100(), and showNumberPlus1000() - to display the input number plus 10, 100, and 1000 respectively. The program output should display the results on separate lines. Students are evaluated on correctness, logic, efficiency, and syntax.

Uploaded by

TomSkylark
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
You are on page 1/ 1

IT1712

Laboratory Exercise
OOP
Objective:

At the end of the exercise, the students should be able to:

 Create a simple object-oriented program.

Software Requirements:

 Latest version of NetBeans IDE


 Java Development Kit (JDK) 8

Procedure:

1. Create a f older named LastName_FirstName (ex. Reyes_Mark) in your local drive.


2. Create a new Java application project named LabExer1B. Set the project location to your own
f older.
3. The program should ask an integer f rom the user. This should be perf ormed by the main method.
4. Construct three (3) methods named showNumberPlus10(), showNumberPlus100(), and
showNumberPlus1000(). Each method should perf orm the task its name implies.
5. Call the methods af ter the user input to display three (3) outputs in separate lines.
6. Inf orm your instructor once you are done.

Sample Run:
Enter an integer: 20
20 plus 10 is 30.
20 plus 100 is 120.
20 plus 1000 is 1020.

GRADING RUBRIC (100 points):


Criterion Description Max Points
Correctness The code produces the expected result. 40
Logic The code meets the specif ications of the problem. 40
Ef f iciency The code is concise without sacrif icing correctness and logic. 10
Syntax The code adheres to the rules of the programming language. 10

01 Laboratory Exercise 2 *Property of STI


Page 1 of 1

You might also like