0% found this document useful (0 votes)
35 views2 pages

Assignment - Selection

The document provides pseudocode problems involving selection statements and conditional logic. The problems include checking if a percentage is valid, performing math operations based on user choice, comparing golf scores to high and low scores, validating a number between 0-100, and tracking a high temperature in Fahrenheit and Celsius.

Uploaded by

The Basics
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)
35 views2 pages

Assignment - Selection

The document provides pseudocode problems involving selection statements and conditional logic. The problems include checking if a percentage is valid, performing math operations based on user choice, comparing golf scores to high and low scores, validating a number between 0-100, and tracking a high temperature in Fahrenheit and Celsius.

Uploaded by

The Basics
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

The Basics Global Academy COMPUTER SCIENCE

Assignment -Pseudocode
Selection statements
[Link] a pseudocode to enter percentage mark. Check if the value entered is
valid or not.

2. Write a pseudocde to accept two numbers and the user will enter a choice
also. Evaluate the choice to calculate sum, difference, product and division.

3. Write a pseudocode to compare entered golf score with the highest score
and lowest score. Change the highest and lowest score accordingly.

4. Write an algorithm, using pseudocode, to input a number between 0 and


100 inclusive. The algorithm should prompt for the input and output an error
message if the number is outside this range.

5. Write a pseudocode inputs a temperature in degrees Fahrenheit. As each


temperature is input, it is compared with the previous highest temperature. If
it is higher than the current highest, it replaces the previous highest
temperature and then it is converted to degrees Celsius. For ease of
calculation, the final step of the Fahrenheit to Celsius conversion has been
approximated as division by 2. When –1 is entered, the input process stops and
the highest temperature (in both Fahrenheit and Celsius) is output.

1
The Basics Global Academy COMPUTER SCIENCE

Note: You can attempt this problem without procedure for now.

You might also like