12.07.2015 Views

Chapter 2 Lab Java Fundamentals Lab Objectives Introduction

Chapter 2 Lab Java Fundamentals Lab Objectives Introduction

Chapter 2 Lab Java Fundamentals Lab Objectives Introduction

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

output = BOILING_IN_F + " in Fahrenheit is " + fToC+ " in Celsius.";System.out.println(output);System.out.println(); // to leave a blank line// ADD LINES FOR TASK #2 HERE// prompt the user for first name// read the user's first name// prompt the user for last name// read the user's last name// concatenate the user's first and last names// print out the user's full nameSystem.out.println();// to leave a blank line// ADD LINES FOR TASK #3 HERE// get the first character from the user's first name// print out the user's first initial// convert the user's full name to all capital letters// print out the user's full name in all capital letters// and number of characters in itSystem.out.println();// to leave a blank line}}// ADD LINES FOR TASK #4 HERE// prompt the user for a diameter of a sphere// read the diameter// calculate the radius// calculate the volume// print out the volume© 2006 Pearson Education 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!