Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need this CODE (.java) done please java programming very begginer way please question 1: Instructions for Assignment 2: Question 1: Krypton Temperature The second assignment
need this CODE (.java) done please
Instructions for Assignment 2: Question 1: Krypton Temperature The second assignment is to demonstrate an initial use of variables. Superman was born on the planet Krypton and was given the name Kal-El at birth. As a baby, his parents sent him to Earth in a small spaceship moments before Krypton was destroyed in a natural cataclysm. Before sending the baby they wanted to find the temperature on Earth. Please help them by writing a programs that help them convert from Krypton temperature (KT) to Earth Temperature(ET) The equation for converting KT to ET is: (KT -25) * (3/11) Your version must handle inputs in fractions of a weight by using the "double" type. The equation for converting is: Temperature on Earth calculated should be an integer. 100.0 KT = 20 ET on earth -7.5 KT = -8 Lbs (Note that they are always rounded down except for negative values). The java projects are named yournameKTET. Create a class with the same name for first project. The program outputs a pleasant greeting that introduces the program (e.g. "Kryptonites: I will convert temperatures for you"). In the KT2ET program the input Krypton Temperature should be received in a double variable called yourfirstnameKT. In the KT2ET program the output Earth Temperature should be computed in a variable called yourlastnameET. The program outputs a meaningful message about the conversion along with the result. The program computes the correct result The program handles "double precision floating point" values like 100.0 or -7.5 The output temperature has to be an integer. All code is correctly indented. (To fix indents automatically, type Ctrl-Shift-F. This also limits line lengths to 80 characters.) java programming very begginer way please
question 1:
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