Skip to main content

Lab Session 2 ( 24 September 2018)


ALGORITHM AND PROGRAMMING (BIC 10204) (SECTION 4)
MADAM HANAYANTI BINTI HAFIT
Lab Session 2(a)


RESULT:



Lab Session 2(b)

1)

RESULT:


2)

RESULT:


3)

RESULT:


4)

RESULT:


Comments

Popular posts from this blog

Lab Session 1 ( 17 September 2018)

ALGORITHM AND PROGRAMMING (BIC 10204) (SECTION 4) MADAM HANAYANTI BINTI HAFIT #teamsuccess Lab session 1 (17 September 2018) 1. Identify what are the input, process and output.             a.)     Find the mean of 4 numbers P,Q,R and S. Answer   Input : P,Q,R,S Process : Calculate the mean = (P+Q+R+S)/4 Output : Mean of 4 numbers b.)     Convert a length of an object from millimeter to centimeter. Answer Input : Length of object in millimeter Process : Convert millimeter to centimeter, length = 10/length in millimeter Output : Length of object in centimeter c.)     Calculate the volume of a cone, if the volume is below 12cm³, print “Accepted” but if the volume is equal or more than 12cm³, print “Not Accepted” . Answer Input : Volume of cone Process : Determine whether volume below, equal or more 12cm³ Output : Accepted, Not Accepted 2.  Draw the fl...

Lab Session 3 ( 1 October 2018)

LAB ACTIVITY 3 QUESTION 1  a. )  ANSWER b. ) ANSWER  c.) 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, s...

Lab Session 7 ( 19 November 2018)

QUESTION A.) Create a program to generate a multiplication table by using while loop. The multiply is determined base on user input. QUESTION B.) Calculate the total of any five number using do... while loop. QUESTION C.) Write a program for the following problem by using for statement: Ahmad saves RM1000 in his account in a bank which returns 5% of annual interest. Assuming that all interests is left deposited in his account, calculate and print the amount of money in his account at the end of each year for 10 years by using for loop.