Professional Documents
Culture Documents
SWC2483 Week 7 Class Exercise
SWC2483 Week 7 Class Exercise
SWC2483 Week 7 Class Exercise
1
Answer:
2
Question 2
Status BMI
Underweight Below 18.5
Normal 18.5 – 24.9
Overweight 25.0 – 29.9
Obesity 30.0 and above
Answer:
3
Question 3
Objective- To write a Java program that capable to obtain input using JOptionPane class
and display the output.
Write a Java program that input value of the test data below, then display the results of sum,
subtract, multiply, and divide. Use the test data below as an example in your program.
Test Data:
Input first number: 125
Input second number: 24
Screenshot your program & the output and paste it here:
4
5
Question 4
Objective- To write a Java program that capable to obtain input using Scanner class and
display the output.
Based on table of MUET scoring below, write a program that will ask the lecturer to enter a
mark, then display the band that they will gain.
6
-END-