You are on page 1of 11

CSC-113 Computer Programming

Bahria University Karachi Campus

PROBLEM
SOLVING
LAB NO. 1
E N G R . WA F A Q A I S E R K H A N / E N G R . M I S B A H P E R V E E N
1

AGENDA
Marks Scheme
Lab File Descriptions
Introduction
Lab Tasks

CSC-113 Computer Programming

MARKS SCHEME
Evaluation Instructions

Marks

Lab File
Lab Performance
Lab Assignment 1
Grand Quiz 1 (Performance & Viva)
Lab Assignment 2
Grand Quiz 2 (Performance & Viva)

5
15
5
10
5
10

TOTAL

50
CSC-113 Computer Programming

LAB FILE DESCRIPTION


LAB FILE ESSENTIALS Computer Programming

CSC-113 Computer Programming

INTRODUCTION
Use of computers
Solve problems
Perform calculations
Program
"A program is a precise sequence of steps to solve a particular
problem.
or
A program is a sequence of steps written to run on a machine.

CSC-113 Computer Programming

PROBLEM SOLVING APPROACH (PSA)


Algorithm
Method or approach used to solve a problem
Steps involved in problem solving approach:
Studying the problem in detail (Identify the problem)
Gathering the relevant information ( List Alternative
solutions)
Processing the information (Select the best solution)
Arriving at the results (List steps of that solution)

CSC-113 Computer Programming

ILLUSTRATION OF PSA
Identify the
Problem

Exit

Yes

Is Problem
Solved?

No

List steps of
that solution

CSC-113 Computer Programming

Generate
Solutions

Select the best


approach

LAB TASKS
1. If travelling from your home to Bahria University?
According to you, what kind of transports are available?
Do describe how you will be approaching that transport
or vehicle?

2. How many ways you can charge your laptop?


3. Steps for booking a railway ticket?

4. Make a wedding anniversary party plan for your parents?


(The best birthday planner will be getting a bonus marks)
5. Start the car.
CSC-113 Computer Programming

LAB TASKS (CONT.)


5. Make a cup of coffee.

6. How many ways you can draw a Triangle?


7.Youre getting hungry what to do now?

8.You will be visiting your School after a long time?


Unfortunately there is rain today but you still want to visit
your School?
9. Changing disperser bottle?

CSC-113 Computer Programming

LAB TASKS (CONT.)


10.Arrange the following: (ascending order)
Get main door keys from Kitchen table
Change Dispenser Bottle
Put the food back into the fridge
Lock the main door

Turn off light (kitchen)


Lock the kitchen door

CSC-113 Computer Programming

10

REFERENCES
Maureen Sprankle, Problem Solving and Programming Concepts, 7th Ed., Prentice Hall
Ray Dean, John Dean, Introduction to Programming with Java: A Problem Solving Approach,
McGraw-Hill Education.

CSC-113 Computer Programming

11

You might also like