Question
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
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.143Step 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