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 ");

} }

THE FOLLWING PROGRAM MUST BE WRITTEN IN JAVA , ITS A CHAPTER

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

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!