Question: Aim: To become familiar with Java variables, operators, conditional and iteration statements. 1. Open an editor of your cholce and type in the following Java
Aim: To become familiar with Java variables, operators, conditional and iteration statements. 1. Open an editor of your cholce and type in the following Java pragram shell: pablie clans taby it poblie ot ar ie vodd maincitrionll angsi I 2. Declare two local variables inside the main method of type Foat catled fanrenheit and another called centigrade. Cemplie the program (making sune; of course, that it complled with no errors.) 3. Write a statement to assign fartebet s value of 98,5 4. The formuls to convert Faheenheit to Centigrade is c=5/2(f32) Code this statement in your program. Provide output statements that displyy to the consiole what Fahrepheit and converted centigrade degrees are. 5. Now put in a for loop that win print the centigrade values of the number 0.0,5.0,10.0,15.0, 40.0 6. After the for loopy put in a mhile loop that dons the aame output as part 5. Show your work to your inb twacher
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
