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 TemperatureConversion. 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. 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 Page 2 of 10 310.93 310.98 311.04 311.09 311.15 311.21
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 TemperatureConversion. 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. 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 Page 2 of 10 310.93 310.98 311.04 311.09 311.15 311.21
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education