Question: THE FOLLWING PROGRAM MUST BE WRITTEN IN JAVA , ITS A CHAPTER TWO ASSIGNMENT SO YOU MUST ONLY USE METHODS IN CHAPTER 2 !!!! THIS
THE FOLLWING PROGRAM MUST BE WRITTEN IN JAVA , ITS A CHAPTER TWO ASSIGNMENT SO YOU MUST ONLY USE METHODS IN CHAPTER 2 !!!!
THIS IS MY CODE SO FAR BUT I AM NOT GETTING THE CORRECT OUTPUT, BELOW IS A PICTURE OF THE PROGRAM AND HOW THE OUTPUT SHOULD LOOK
import java.util.Scanner;
public class Exercise02_03 { public static void main (String [] args) { Scanner input = new Scanner (System.in);
System.out.println ("Enter a value for feet: "); double value = input.nextDouble(); double meters = value/3.2808; System.out.println (value + " feet is " + meters + " meters ");
} }

2.3 (Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is .305 meter. Here is a sample run: Sample Run for Exercise02 03 Enter input data for the program (Sample data provided below.with You may modify it.) 16.5 Show the Sample Output Using the Preceeding Input Reset commands java Exercise02.03 Enter a value for feet: 16.5 16.5 feet is 5.0325 meters command:>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
