Está en la página 1de 3

Introduction to Computing

Lab Manual Lab 2

Visual Logic Problem Solving using Flow Charts

Session: Fall 2013

Faculty of Information Technology UCP Lahore Pakistan


1

Lab Content
This lab is focused on training students on Visual Logic to enhance their problem solving skills.

Lab Task 1
Create flow chart to find whether a number is even or odd.

Lab Task 2
Create flow chart to find whether a number is positive or negative.

Lab Task 3
Create flow chart to find absolute value of a number input by user.

Lab Task 4
Design flow chart that reads in two integers and determines and prints if the first is a multiple of the second.

Lab Task 5
Create flow chart to multiply two numbers if their difference is greater than 0

Lab Task 6
Create flow chart to find whether the sum of two numbers is greater than the third number

Lab Task 7
Create flow chart to divide a number by another if and only if the second number is not equal to 0

Lab Task 8
Create flow chart to divide two numbers if their difference is greater than 10, otherwise multiply them.

Lab Task 9
Create flow chart to determine whether the average of two numbers is negative or not.

Lab Task 10
Create flow chart to determine whether a student has got Grade A from his total marks and his GPA, according to the following condition: If marks are greater than 80 and less than 90 OR GPA is greater than 3.7 and less than 3.8, hell be graded A.

Lab Task 11
Create flow chart to determine whether a car is of mid-size type or not from its price (in

millions) and engine capacity (in cc)


If price is between 1 million and 2 million or if engine capacity is between 1000 and 1500, a car is considered to be a mid-size car.

Lab Task 12
Create flow chart to determine whether a cell-phone is a smart phone or not, from its price and display width. A cell-phone is considered a smart-phone, if its price is from 20,000 to 80,000 or its display width is from 5 to 8 inches.

Lab Task 13
Create flow chart to determine whether an employee is Manager or not, from given salary and pay grade. An employee is considered a Manager, if his salary is between 50,000 to 80,000 or his pay grade is from 19 to 22.

Download Visual logic: http://visuallogic.org/downloads

También podría gustarte