0% found this document useful (0 votes)
38 views1 page

Lab Activity 1

This lab activity focuses on problem solving using software development methodology. Students will identify the input, process, and output for problems involving calculating statistics, unit conversions, and conditional logic. They will also draw flowcharts and write pseudocode for problems involving discounts, grading systems, bank payments, and number multiplication. The activity aims to help students understand fundamental concepts of problem solving over a 2 hour duration.

Uploaded by

Rebekah Joy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views1 page

Lab Activity 1

This lab activity focuses on problem solving using software development methodology. Students will identify the input, process, and output for problems involving calculating statistics, unit conversions, and conditional logic. They will also draw flowcharts and write pseudocode for problems involving discounts, grading systems, bank payments, and number multiplication. The activity aims to help students understand fundamental concepts of problem solving over a 2 hour duration.

Uploaded by

Rebekah Joy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

 

LAB ACTIVITY 1 

Topics      : Introduction to Problem Solving 

Learning Outcome  : At the end of this lab session, students are able to know and understand the 
concept of problem solving using Software Development Methodology. 

Duration    : 2 hours 

Answer all questions and submit as a lab report. You need to submit before the next lab begin.  

1. Identify what are the input, process and output. 

a. Find the mean of 4 numbers, P, Q, R and S. 
 
b. Convert a length of an object from milimeter to centimeter. 
 
c. Calculate the volume of a cone, if the volume is below 12cm3, print “Accepted” but if the 
volume is equal or more than 12cm3, print “Not Accepted”. 

2. Draw the flowchart for the given questions. 

a. A company selling sports goods would like to give discounts to customers by organizing an 
annual sales. If customers buy goods of more than RM 100 then customers will get a discount 
of 10%. However if they buy RM 500 and above then 50% discount will be given. 
 
b. A student marking system receives input of student’s total mark from lecturer. If a student 
gets total mark of 75 or above, the system will print ‘A’. If a student’s mark is between 65 to 
74, the system will print out ‘B’. While ‘C’ will be printed out if the mark is between 50 to 64. 
Whichever the total mark is below 50, ‘F’ will be printed. 

3.  Write the pseudocodes/algorithm for the given questions. 

a. ABC bank offers 5% discount if payment is made within 10 days after notice. No discount if 
the payment is made after 10 days. 
b. A program receives input of an integer number. This number is then to be multiplied by 
numbers from 1 to 12. The result for each multiplication is printed. 

You might also like