Computer Science – 11.1 Programming Basics | e-Consult
11.1 Programming Basics (1 questions)
Login to see all questions.
Click on a question to view the answer
Pseudo-code:
- Define a variable celsius.
- Define a variable fahrenheit.
- Assign a value (e.g., 25) to celsius.
- Calculate fahrenheit: fahrenheit = (celsius x 9/5) + 32.
Example:
| celsius = 25 |
| fahrenheit = (celsius x 9/5) + 32 |
| fahrenheit = (25 x 9/5) + 32 |
| fahrenheit = (45) + 32 |
| fahrenheit = 77 |