CBSE Class 8 Computer Science Algorithm Notes

Developing algorithm to solve particular problem
 
In mathematics and computer science, an algorithm is a step-by-step procedure for calculations. Algorithms are used for calculation, data processing, and automated reasoning.Algorithms resemble recipes. Recipes tell you how to accomplish a task by performing a number of steps.
For example, to bake a cake the steps are: preheat the
oven; mix flour, sugar, and eggs thoroughly; pour into a baking pan; and so forth.
 
Goals of Algorithm Study
 
• To develop framework for instructing computer to perform tasks
• To introduce notion of algorithm as means of specifying how to solve a problem
• To introduce and appreciate approaches for defining and solving very complex tasks in terms of simpler tasks;
 
Simple Questions based on Algorithm
 
Algorithm: Calling a friend on the telephone
Input: The telephone number of your friend.
Output: None
 
Steps:

1. Pick up the phone and listen for a dial tone
2. Press each digit of the phone number on the phone
3. If busy, hang up phone, wait 5 minutes, jump to step 2
4. If no one answers, leave a message then hang up
5. If no answering machine, hang up and wait 2 hours, then jump to step 2
6. Talk to friend
7. Hang up phone
 
Algorithm to create Maggie noddle:

Step 1: Start
Step 2: Take pan with water
Step 3: Put pan on the burner
Step 4: Switch on the gas/burner
Step 5: Put magi and masala
Step 6: Give two minutes to boil
Step 7: Take off the pan
Step 8: Take out the magi with the help of fork/spoon
Step 9: Put the Maggi on the plate and serve it
Step 10: Stop.
 
Algorithm: To find (a + b)2=(a + b)* (a + b)
Input: Two numbers a and b.
Output: Result of (a + b)2
 
Steps:

1. Take numbers a, b, c.
2. Input the values of a and b
 

Tags: 

 


Click to View or Download pdf file
Click for more Computer Science Study Material

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

CBSE Boards Paper Checking to Start

As per the announcement recently released by the Ministry of Home Affairs, at least 3000 CBSE affiliated selected as evaluation centers for board exam answer sheets will be allowed to open for the limited purpose of evaluation purposes only. The answer sheets for Board...

CBSE Decision on Board Exam 2020

The Class 10 and 12 exams are cancelled, and results for both 10th and 12th would be declared by July 15 based on internal exams. CBSE Class 12 students would have the option to appear for the exams at a later date. CBSE has a scheme in which marks scored in past 3...

Board Exams helpline by CBSE

According to the recent announcement of CBSE, the pending Class 10 and 12 Board exams are going to be held from 01 July to 15 July 2020 in India. Along with this, it has also been decided to resume the free of cost tele-counseling service for students from 9.30 am to 5...

Checking of Boards Answer sheets starts today

CBSE has instructed almost 3000 schools to start the evaluation work for class 10th and class 12th board exam answer sheets from today. The checking of answer sheets for class 10th and class 12th was stopped earlier due to covid crisis in the country. Now in order to...

Art Integrated Project work for classes 1 to 10

CBSE Board has decided to introduce Art-Integrated Project work for classes I to X to promote Art-Integrated Learning in schools to make teaching learning Competency-Based and joyful. As part of this, at least one Art-Integrated Project in each subject shall be taken...

×
Studies Today