May 2008
Beginner
550 pages
13h 22m
English
Take the integer program presented earlier in the chapter and modify it so that it performs multiplication instead of division. Make sure you test with extremely large and small numbers to see if you can get the answer to fall outside the intended range of the data type you use.
Write a program that converts Fahrenheit temperatures to Celsius using the equation Tc = 5/9 * (Tf-32), where Tc = temperature in degrees Celsius and Tf = temperature in degrees Fahrenheit. What data type did you use and why?
Have the user enter a value, and display a message telling the user whether the integer number entered was odd or even.
Read now
Unlock full access