You are on page 1of 5

GUJRAT INSTITUTE OF MANAGEMENT SCIENCE

(CAMPUS)

PMAS_ARID AGRICULTURE UNIVERSITY RAWALPINDI

Assignment no 1
Department:. Bs(IT)
Subject:. Programming Fundamental
Section:. A
Submitted to:. Miss Mehwashma
Submitted by:. Ali Hussnain
Submition Date:. 6 Nov 2020

Question no 1
What are the six step of problem solving
Answer
1. Identify the problem
2. Analyze the problem
3. Develop the problem
4. Implement A Solution
5. Evaluate the Result
6. standardize the solution

Question no 2

What is Algorithmatic solution to a problem

Answer

Algorithmatic solution to a problem are those solution that is used to solve a problem in series of step
For Example to sort an array in increasing order . A sequential order of steps is followed. So thus type of
solution is an Algorithmatic solution

Question no 3

Name three current problems in your life that could be solved through an

Answer

Three problems of life to be solved by an Algorithmatic process.

1. Going to work
2. Fishing in a pond
3. Withdrawing Money from Bank

Algorithm no 1

Going to work

START
Step 1 First of all wake up early in Morning then taking Bath and Get ready

Step 2 : Eating meal take tea

Step 3: Take Documents For Office

Step 4: Reached To The Office ,Then Go Ti My Cabin And Start Working

END.

Algorithm no 2
Fishing in Pond

START

Step 1: Carrying equipment for Fishing , Then put it into the van

Step 2: Reached To The pond and unmount the equipment

Step 3: Throwing fish catcher’s hook into the pond waiting for hunt

Step 4: After one hour I catch many fishes and return to home

END.

Algorithm no 3

Withdrawing money from Bank

START

Step 1: First of all I take my check book,Then fill my check

Step 2: Reached to Bank ,Then give check to the cashier

Step 3: He verify to my check

Step 4: He gave me money, and I go to the home

END.

Question no 4

Why each of these problems is algorithmic in nature

Answer

It is solved by statistics and methods in different steps in different parts of the world and not at the
same time without any statistics, steps and parts .therefore it can be called algorithmic

Question no 5

What is heuristic solution to a problem

Answer
Heuristic are a problem solving method that is uses shortcuts to produce good solution given a limited
time frame or deadline. Heuristic are the flexible technique for quick decision, when working with
complex data. Decisions made using heuristic approach may not necessarily b4e optimal

Question no 6

Name three current problems in your life that might be solved through heuristic

Answer

Three problems in life which are solved by heuristic are

1: Medical case

2: Actuarial problem

3: scientific problem

Question no 7

Why each of these problems is heuristic in nature

Answer

Heuristics is originally a Greek word that means to find. Heuristics are unconscious ways that we process
information more quickly than if we were to think about it consciously. The brain takes mental
shortcuts to save time by thinking logically about things. There are many different ways (cognitive
biases) that our brains have developed during the history of mankind to manage information in a faster
way than rational thinking. The vast majority of our daily decisions are taken up by heuristic decision
making.

Question no 8

Name three problems that might arise at home ,at school or in a business that could be solved more
efficiently with computer assistance . Do these problems required an Algorithmic or heuristic solution
why ?
Answer
Three problems that might arise at home, at school, or in a business to be solved efficiently with
computer assistance

The following three solutions can only be solved by computer assistance or may be solved
quickly with computer assistance:

1. Complex calculations at home

2. Visualizing an isometric projection at school

3. Communication between two or more branches of a business organization


This problem requires an algorithmic solution as this problem does not require any trial and error or any
analysis.
Question no 9
Algorithm
Make a cup of cocoa

START

Step 1: Take a pan , milk, chocolate , spoon, microwave and cup

Step2: pour milk into the cup

Step 3: Add the chocolate into the milk

Step 4: Stir it with a spoon

Step 5:Put it in the microwave for a minute

Step 6: Take it out of the microwave and enjoy your cup of hot chocolate

END

Sharpen a pencil

START

Step 1: Take a pencil and sharpener

Step 2: Put pencil into sharpener

Step 3: Turn the pencil clock wise

Step 4 Remove sharped pencil from sharpener

END

Walk from the classroom to the cafeteria

START

Step 1: First of all put all the notes in bag

Step 2: Stand up from the chair and put the bag on shoulder

Step 3: Walk out from the classroom and reached at cafeteria

END

Get a glass of water from your kitchen

START

Step 1: stand up from the bed and go to the kitchen

Step 2: Take a glass from stand


Step 3: Open refrigerator take bottle of water

Step 4: put water into the Glass

END.

Start a car ( include directions regarding what to do if car doesn’t start )

Step 1: Open the door of car

Step 2: Insert the key into ignition and turn key clock wise

Step 3: If the car doesn’t start there is a problem in car

Step 4: Find the problem and fix it

Step 5: After fixing the problem again insert key into the ignition and turn it clock wise

Step 6: Now the car starts by using key

END.

You might also like