Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java language Exercise 2: (Convert pounds into kilograms) Write a program that converts pounds into kilo- grams. The program prompts the user to enter a
java language
Exercise 2: (Convert pounds into kilograms) Write a program that converts pounds into kilo- grams. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. Here is a sample run: Enter a number in pounds: 55.5 55.5 pounds is 25.197 kilograms Step 1: Problem Analysis (Please add rows if necessary) Description Inputs to the program Number in Pounds Outputs of the program Number in Kilograms Variable name pounds kilograms Step 2: Algorithm (Plan of the Program). Fill the blanks with variable names you decided to use in Step 1 4. Prompt the user to enter value(s) for _pounds 5. Compute value(s) for kilograms 6. Display_kilogrmas Step 3: Code (You will do the coding part later for another assignment. You'll submit your code In an assignment in class.mimir.io and another D2L assignment. Please don't copy your code below.) ted States) Wite a program to convert a temperature in Fahrenhet to the corresponding temperature in Celsius. The program prompes the user to enter a temperature in Fahrenheit, conver to Celsius, and displays the result. Please use the following formula for calculating Celsius: 5.0/2.0 (fahrenheit - 32) Note that you will need to use printf (%24) to print exactly two decimal places after the period. Here is a sample run > run FahrenheitToCelsius Enter a temperature in Fahrenheit: The temperature in Celsius is 6.39 Full Screen 0 Grading 4 Rim Test FahrenheitToCelsius.java o O New 1. import java.util.Scanner: 2 3 public class CircleAreol 4- 5 public static void main(String[] args) 6 { s -100 to 2333 Nottun NOT RUN 8 9) } to-1778 Natur NOT RUN 100 to 3778 Non NOT RUN 200 to 9333 NOT RUN Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started