LAB ACTIVITY 3
b. )
c.)
QUESTION 2
2.1 Print a message to ask user to enter their name.
2.2 Read name.
2.3 Print a message to ask user to enter their height and weight in kg and m.
2.4 Read weight and height.
2.5 Print name.
2.6 Print weight and height.

QUESTION 1
a. )
ANSWER
b. )
ANSWER
ANSWER
QUESTION 2
2.1 Print a message to ask user to enter their name.
2.2 Read name.
2.3 Print a message to ask user to enter their height and weight in kg and m.
2.4 Read weight and height.
2.5 Print name.
2.6 Print weight and height.
QUESTION 3
3.1 Declare identifier of integer data type named num1.
3.2 Declare identifier of float data type named num2.
3.3 Declare a constant called MAX with a value of 50.88.
3.4 Print a message to ask user to enter value for num1.
3.5 Read num1.
3.6 Print a message to ask user to enter value for num2.
3.7 Read num2.
3.8 Print a message to ask user to enter value for MAX.
3.9 Read MAX.
3.10 Print num1, num2 and MAX.
ANSWER

QUESTION 4
Develop a simple subject registration system. The program requires user to enter student's full name, I/C number, matric number, subject code and subject name. Then the program will print out all the data that has been entered on the screen.
Comments
Post a Comment