11/28/2024

Class 8 Chapter 19 Programming tools and techniques

 Class 8 Chapter 19 Programming tools and techniques
Write very short answer of the following questions: 
a. Is algorithm a programming language? 
Ans: No, an algorithm is not a programming language.
b. Who gave the concept of flowchart for the first time? 
Ans: The concept of the flowchart was first introduced by Frank Gilbreth.
c. Which language is used to write algorithm? 
Ans: Algorithms can be written in any language, including plain English.
d. Which symbol is used to put comment in flowchart? 
Ans: There is no specific symbol for comments in flowcharts; annotations are written in text boxes or beside the diagram.
e. Which programming tool uses English phrase to show the process?
Ans: Pseudocode uses English phrases to show the process.

Write short answer of the following questions: 
a. Why is pre-planning necessary before writing actual program? 
Ans: Pre-planning is important because it helps write program instructions in the right order, so the computer gives correct results. It also makes the work easier by organizing everything before starting.
b. What is Algorithm? 
Ans: An algorithm is the most commonly used programming tool, which is a step-by-step procedure or set of rules designed to solve a specific problem or perform a task.
c. What is the use of flowchart in programming? 
Ans: A flowchart is a graphical/pictorial representation of the steps necessary to solve a problem, which is easier to understand and can help in identifying mistakes or inefficiencies in the process before implementation. 
d. Differentiate between system flowchart and program flowchart.
Ans: Differences Between System Flowchart and Program Flowchart
  • System Flowchart: It shows how data flows and how different parts of a system work together, like input, processing, and output. It is used to represent the overall system, including hardware and software components.

  • Program Flowchart: It focuses on the steps or logic needed to solve a specific problem in a program. It is used to show the sequence of instructions or decisions in a program, helping programmers understand how a program works.

Write long answer of the following questions:
a. What is programming tool? Discuss the role of algorithm to design effective program.
Ans: A programming tool is a method or technique used to plan and design programs before writing the actual code. Three main programming tools are: algorithm, flowchart and Pseudo code.
Role of algorithm to design effective program are:
  • Breaking down the problem into simple steps.
  • Making the program efficient by saving time and resources.
  • Ensuring accuracy by providing the correct solution.
  • Reducing errors by organizing the logic clearly before coding.
b. Explain flowchart with the common symbols used in flowchart.
Ans: A flowchart is a graphical/pictorial representation of the steps necessary to solve a problem, which is easier to understand and can help in identifying mistakes or inefficiencies in the process before implementation.

Common Symbols Used in Flowcharts


Devlop Algorithm and also draw flowchart for the following purposes.

Click the link below to see the answers. (All answers will be updated soon.)

<<<Algorithm and flowchart to input two numbers and find theirs average.>>>

<<<Algorithm and flowchart to calculate perimeter of a rectangle>>>

Algorithm and flowchart to print circumference of a circle

Algorithm and flowchart to check whether the inputted number is positive or negative.>>>>

Algorithm and flowchart to check pass/fail after entering obtained mark assuming pass mark 40. >>>>

Algorithm and flowchart to convert American dollar into Nepali currency. (@1=105) >>>>>

Algorithm and flowchart to prepare a cup of coffee.>>>>

Algorithm and flowchart to display odd numbers from 49 to 1. >>>>

Algorithm and flowchart to print multiplication table of 5 up to 10 multiples.>>>>

Algorithm and flowchart to calculate and print simple interest.>>>>

Algorithm and flowchart to calculate area of square. 








No comments:

Post a Comment