Debugger Worksheet - Section 15 Answer the following questions as required in section 13 of the lab • What is the statement that the program will

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI 1301 – Lab #7 Debugging Java Code - Worksheet Section 6. W hat do you observe when you run the program? Does not work Section 10 . Write down on the line numbers where the breakpoints have been set in the Debugger worksheet. 34, 37, 51, 56, 59, 64, 67 Section 12 . What are the values of MIN_FARENHEIT :_______-459.67__________ tempScaleStr :_______1-4________________ Section 13 a). Answer the following questions as required in section 11 a) of the lab: Does the first if-statement display the error message correctly? no What is the problem? Used the wrong sign ( < > ) How would you fix the program so it terminates when the user enters a Fahrenheit temperature lest than the possible minimum temperature? Change it to the other sign Section 14 . Answer the following questions as required in section 12 of the lab: What is the statement on which the arrow is now located? Line 37 degree verify
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Section 15 . Answer the following questions as required in section 13 of the lab: • What is the statement that the program will execute next? Line 51 scale • Is the condition of this second if statement correct? How will you change it? No, on tempscale 2, change the == to < Section 16 d). Answer the following questions as required in section 14 d) of the lab: • What is the value of the expression you just selected in the Watch window? 10.6666 Section 16 e). Answer the following questions as required in section 14 d) of the lab: • Does the program compute the correct temperature in Reamur degrees? no • Does the program assign the correct value for the variable tempScaleStr? No • How can you modify the program to compute this equivalence properly? Fix the if body paragraph...
View Full Document

This note was uploaded on 11/15/2010 for the course CSCI 01209 taught by Professor Storm during the Fall '10 term at University of Georgia Athens.

Ask a homework question - tutors are online