LAB 4 - BIC10204

  QUESTION 2:

2. Write a complete program following the algorithm given below.

    2.1 Print a message to ask users to enter their names.

    2.2 Read the name.

    2.3 Print a message to ask users 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.

CODING & OUTPUT QUESTION 2:



QUESTION 3:

3. Write a complete program following the algorithm given below.

    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 the user to enter a value for num1.

    3.5 Read num1.

    3.6 Print a message to ask the user to enter the value for num2.

    3.7 Read num2.

    3.8 Print num1, num2, and MAX.

CODING & OUTPUT QUESTION 3:



QUESTION 4:

4. Develop a simple subject registration system. The program requires the user to enter the 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.

CODING & OUTPUT QUESTION 4:




                                                                                                     Written by Arif (AI210125)😁.

Comments

Popular reaches : 3

LAB 6 - BIC10204

Lab Task 1 - BIC10503

Lab Task 6 - BIC10503

Lab Task 3 - BIC10503

LAB 8 - BIC10204