Labtask Oop
Labtask Oop
DFP30243
OBJECT ORIENTED PROGRAMMING
TOPIC CHAPTER 3
ASSESMENT LABORATORY TASK 1
NAME NUR ARIESYA SYAFIKA BINTI ABDULLAH
REG NO 13DDT22F1176
PROGRAMME DDT3S2
INSTRUCTIONS :
MARKING SCHEME
CLO 1 PLO 3 /20
TOTAL / 20
THE ENTIRE QUESTION IS BASED ON JTMK’S QUESTION BANK APPROVED BY PROGRAMME LEADER.
SIGNATURE IS NOT REQUIRED.
CHAPTER 3 : CLASSES AND OBJECTS [CLO 1][PLO 3]
Learning outcomes:
1. Basal Metabolic Rate (BMR) is the number of calories burn as body performs basic (basal) life-
sustaining function. Which are the calories burned if you stayed in bed all day. BMR can be
determine using mathematical formula.
Gender Formula
Female 655 + (9.6 × weight in kg) + (1.8 × height in cm) – (4.7 × age in years)
2. Write a Java Program to input choice (female or male), weight, height, and age from user. Use
data and method in program
3. Use branching statement to make the selection between male or male BMR calculation.
Technique: The program The program The program uses The program 5
- Data uses complete uses incomplete incomplete data, uses incomplete
- Method data, method, & data, method, & method, & operator data, method, &
- operator operator. operator. with minor error. operator with
major error.
Technique: The program The program The program uses The program 5
branching uses complete uses incomplete incomplete branching uses incomplete
statement branching branching statement with minor branching
statement. statement. error. statement with
major error.
Technique: The program The program The program uses The program 3
- main uses complete uses incomplete incomplete main uses incomplete
method main method. main method. method with minor main method
error. with major error.
Execution and Executes without Executes without Executes with some Does not execute 4
Output errors and the errors and the errors and the due to errors
program program program does not and the program
produces produces produces output does not
correct output. incorrect output produces output