Question: Going METRIC. (Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot

Going METRIC.

(Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters.

INPUT and PROMPTS.The program prompts for the feet with the message "Enter a value for feet: ".

OUTPUT. The outputis of the form "x feet is y meters" where x is the number read in and y is the number of meters computed by the program.

CLASS NAMES. Your Program Class should be called FeetToMeters

SAMPLE RUN #1: java FeetToMeters

Enter a value for feet:1

1.0 feet is 0.305 meters

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 Databases Questions!