Question: # 1 9 ( pg . 7 3 ) Given the following fragment that purports to convert from degrees Celsius to degrees Fahrenheit, answer the

#19(pg.73) Given the following fragment that purports to convert from degrees Celsius to degrees Fahrenheit, answer the following questions-
Double c =20;
Double f;
F =(9/5)* c +32.0;
A. What value is assigned to f?______________________________
B. Explain what is actually happening and what the programmer likely wanted.
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
C. Rewrite the Code as the programmer intended.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!