0% found this document useful (0 votes)
4 views1 page

Pseudocode Python Questions

The document provides pseudocode for various mathematical calculations including the sum and average of numbers, area of geometric shapes, simple interest, energy calculation using Einstein's equation, power generated while running, and volume and surface area of a sphere. Each pseudocode includes a specific formula for the calculation. The document covers a range of topics suitable for basic programming exercises.

Uploaded by

Haniya Umar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Pseudocode Python Questions

The document provides pseudocode for various mathematical calculations including the sum and average of numbers, area of geometric shapes, simple interest, energy calculation using Einstein's equation, power generated while running, and volume and surface area of a sphere. Each pseudocode includes a specific formula for the calculation. The document covers a range of topics suitable for basic programming exercises.

Uploaded by

Haniya Umar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a pseudocode to find the sum of two numbers where one number is 100
and the other is 200.
Formula: Sum = 100 + 200

2. Write a pseudocode to find the average of three given numbers: 20, 30, and 40.
Formula: Average = (20 + 30 + 40) / 3

3. Write a pseudocode to find the sum of any two numbers.

4. Write a pseudocode to find the average of any three numbers.

5. Write a pseudocode to ask the user for their name and print a greeting.

6. Write a pseudocode to calculate the area of a rectangle.


Formula: Area = Length × Width

7. Write a pseudocode to calculate the area of a square.


Formula: Area = Side × Side

8. Write a pseudocode to calculate the area of a circle.


Formula: Area = π × Radius²

9. Write a pseudocode to find the double of a number entered by the user.


Formula: Double = Number × 2

6. Write a pseudocode to calculate the volume of a cylinder using user input.


Formula: Volume = π × Radius² × Height

7. Write a pseudocode to find the simple interest using the formula.


Formula: Simple Interest = (Principal × Rate × Time) / 100

11. Write a pseudocode to calculate energy using Einstein’s equation E = mc².


Formula: Energy (E) = Mass (m) × Speed of Light (c)²

12. Write a pseudocode to calculate the power generated while running using
mass, height climbed, and time taken.
Formula: Power (P) = (Mass × g × Height) / Time
Where g = 9.81 m/s² (acceleration due to gravity)

13. Write a pseudocode to calculate the volume and surface area of a sphere based
on its radius.
Formulas:

o Volume = (4/3) × π × Radius³

o Surface Area = 4 × π × Radius²

You might also like