...

/

Exercises on Operators and Expression

Exercises on Operators and Expression

Apply what you’ve learned so far through hands-on practice.

We'll cover the following...

For the following questions, do try to attempt the problems by yourself before looking at the solutions.

Please ignore the surrounding code that may be unfamiliar at this point. This will become clear as we progress.

Question 1

Write a program that converts temperature in degrees Fahrenheit (<sup>o</sup>F) to degrees Celsius (<sup>o</sup>C) using the following formula:

C=(F32)1.8C=\frac{(F-32)}{1.8} ...