Question: Write a java program that ask user to input number of bits, apply formula of calculating range in order to display the range from ve

Write a java program that ask user to input number of bits, apply formula of calculating range in order to display the range from ve value to +ve value and print a message the range is for byte or short or int or long, etc. For example, the sample output format is as follows: C:\Users\janna\Desktop\Programming in Java\Mid Term Exam Q2>java Range Please enter the number of bits: 8 -128.0 to 127.0 The range is for Byte Write a program that converts Fahrenheit temperature to Celsius and Kelvin temperature. You should have two static methods in the class Temperature Conversion. One method is fahrenheitToKelvin and other is fahrenheitToCelsius. Both methods accept Fahrenheit temperature as an argument. These methods should return the converted temperature such as Celsius and kelvin to the calling environment. Use a loop to call methods 20 times and increment Fahrenheit by 0.1 each time. I have used format specifiers to format the output of my program. Page 2 of 10 C:\Users\janna\Desktop\Programming in Java\Mid Term Exam Q2>java TemperatureConversion FAHRENHEIT CELCIUS KELVIN 98.60 98.70 98.80 98.90 99.00 99.10 99.20 99.30 99.40 99.50 99.60 99.70 99.80 99.90 100.00 100.10 100.20 100.30 100.40 100.50 37.00 37.06 37.11 37.17 37.22 37.28 37.33 37.39 37.44 37.50 37.56 37.61 37.67 37.72 37.78 37.83 37.89 37.94 38.00 38.06 310.15 310.21 310.26 310.32 310.37 310.43 310.48 310.54 310.59 310.65 310.71 310.76 310.82 310.87 310.93 310.98 311.04 311.09 311.15 311.21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
