English

NCERT solutions for Computer Science [English] Class 11 chapter 4 - Introduction to Problem Solving [Latest edition]

Advertisements

Chapters

NCERT solutions for Computer Science [English] Class 11 chapter 4 - Introduction to Problem Solving - Shaalaa.com
Advertisements

Solutions for Chapter 4: Introduction to Problem Solving

Below listed, you can find solutions for Chapter 4 of CBSE NCERT for Computer Science [English] Class 11.


Exercise
Exercise [Pages 83 - 85]

NCERT solutions for Computer Science [English] Class 11 4 Introduction to Problem Solving Exercise [Pages 83 - 85]

Exercise | Q 1. | Page 83

Write a pseudocode that reads two numbers and divides one by another and displays the quotient.

Exercise | Q 2. | Page 83

Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake.

Exercise | Q 3. | Page 83

Write the pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).

Exercise | Q 4. | Page 83

Give an example of a loop that is to be executed a certain number of times.

Exercise | Q 5. | Page 83

Suppose you are collecting money for something. You need ₹ 200 in all. You ask your parents, uncles, and aunts as well as grandparents. Different people may give either ₹ 10, ₹ 20, or even ₹ 50. You will collect till the total becomes 200. Write the algorithm.

Exercise | Q 6. | Page 83

Write the pseudocode to print the bill depending on the price and quantity of an item. Also print Bill GST, which is the bill after adding 5% of the tax to the total bill.

Exercise | Q 7. | Page 84

Write pseudocode that will perform the following:

  1. Read the marks of three subjects: Computer Science, Mathematics, and Physics, out of 100.
  2. Calculate the aggregate marks.
  3. Calculate the percentage of marks.
Exercise | Q 8. | Page 84

Write an algorithm to find the greatest among two different numbers entered by the user.

Exercise | Q 9. | Page 84

Write an algorithm that performs the following:

Ask a user to enter a number. If the number is between 5 and 15, write the word GREEN. If the number is between 15 and 25, write the word BLUE. if the number is between 25 and 35, write the word ORANGE. If it is any other number, write that ALL COLOURS ARE BEAUTIFUL.

Exercise | Q 10. | Page 84

Write an algorithm that accepts four numbers as input and finds the largest and smallest of them.

Exercise | Q 11. | Page 84

Write an algorithm to display the total water bill charges of the month depending upon the number of units consumed by the customer as per the following criteria:

  • for the first 100 units @ 5 per unit
  • for next 150 units @ 10 per unit
  • more than 250 units @ 20 per unit

Also, add meter charges of 75 per month to calculate the total water bill.

Exercise | Q 12. | Page 84

What are conditionals? When they are required in a program?

Exercise | Q 13. | Page 84

Match the pairs.

Flowchart Symbol Functions
Flow of Control
Process Step
Start/Stop of the Process
Data
Decision Making
Exercise | Q 14. | Page 85

Following is an algorithm for going to school or college. Can you suggest improvements in this to include other options?

Reach_School_Algorithm

  1. Wake up
  2. Get ready
  3. Take lunch box
  4. Take the bus
  5. Get off the bus
  6. Reach school or college
Exercise | Q 15. | Page 85

Write pseudocode to calculate the factorial of a number (Hint: Factorial of 5, written as 5! = 5 × 4 × 3 × 2 × 1).

Exercise | Q 16. | Page 85

Draw a flowchart to check whether a given number is an Armstrong number. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.

Exercise | Q 17. | Page 85

Following is an algorithm to classify numbers as “Single Digit”, “Double Digit” or “Big”.

Classify_Numbers_Algo
INPUT Number
IF Number < 9
             "Single Digit"
Else If Number < 99
             "Double Digit"
Else
             "Big"

Verify for (5, 9, 47, 99, 100, 200) and correct the algorithm if required.

Exercise | Q 18. | Page 85

For some calculations, we want an algorithm that accepts only positive integers up to 100.

Accept_1 to 100_Algo
INPUT Number
IF (0 <= Number) AND (Number <= 100)
       ACCEPT
Else
       REJECT
  1. On what values will this algorithm fail?
  2. Can you improve the algorithm?

Solutions for 4: Introduction to Problem Solving

Exercise
NCERT solutions for Computer Science [English] Class 11 chapter 4 - Introduction to Problem Solving - Shaalaa.com

NCERT solutions for Computer Science [English] Class 11 chapter 4 - Introduction to Problem Solving

Shaalaa.com has the CBSE Mathematics Computer Science [English] Class 11 CBSE solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. NCERT solutions for Mathematics Computer Science [English] Class 11 CBSE 4 (Introduction to Problem Solving) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.

Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. NCERT textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.

Concepts covered in Computer Science [English] Class 11 chapter 4 Introduction to Problem Solving are Flowchart, Pseudocode, Introduction to Flow of Control, Sequence, Selection, Repetition, Verifying Algorithms, Comparison of Algorithm, Coding, Decomposition, Problem Solving, Steps for Problem Solving, Algorithms, Why Do We Need an Algorithm?, Representation of Algorithms.

Using NCERT Computer Science [English] Class 11 solutions Introduction to Problem Solving exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in NCERT Solutions are essential questions that can be asked in the final exam. Maximum CBSE Computer Science [English] Class 11 students prefer NCERT Textbook Solutions to score more in exams.

Get the free view of Chapter 4, Introduction to Problem Solving Computer Science [English] Class 11 additional questions for Mathematics Computer Science [English] Class 11 CBSE, and you can use Shaalaa.com to keep it handy for your exam preparation.

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×