Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Java program that performs the following tasks: 1. Generate three (3) random numbers (input) Note: A constant seed value will ensure the same

Create a Java program that performs the following tasks:

1. Generate three (3) random numbers (input)

Note: A constant seed value will ensure the same three values are generated with each program run.

A. Temperature in Fahrenheit between 0 and 212

B. Distance in Feet between 0 and 100

C. Weight in Pounds between 0 and 100

2. Convert the three input values using the p rovided equations (output )

A. Temperature

1. Celsius = ( Fahrenheit 32) * 5 / 9

2. Kelvin = ( Fahrenheit + 459.67) * 5 / 9

B. Distance

1. Meters = Feet * 0.3048

2. Inches = Feet * 12

C. Weight

1. Kilograms = Pounds * 0.4536

2. Stones = Pounds * 0.0714285714

3. Display the input and output values (see Example Output section)

Notes: Display homework number and programmers identifier at top of program output. Use a Driver class with an execute method that controls the execution of the program Ensure source code comments conform to class commenting standards. Ensure program development conforms to class programming standards. Submit the project source code as a single *.java file

image text in transcribed

Example Output Homework 1 Ima Java Programmer Original Value Converted To Value Converted To Value Fahrenheit Feet Pounds 212 100 100 Celsius MeterS Kilograms 100.000 30.480 45.360 Kelvin Inches Stones 373.150 1200.000 7.143

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

Consider this article:...

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago