Write a java program called ImperialMetric that displays a conversion table for feet and inches to metres. The program should ask the user to enter the range of values that the table will hold. Here is an example of what should be output when the program runs: Enter the minimum number of feet (not less than 0): Enter the maximum number of feet (not more than 30): 0" 1" 2" 3" 4" 5" 6" 7" 8" 9" 10" 11" 5' 1.524 1.549 1.575 1.600 1.626 1.651 1.676 1.702 1.727 1.753 1.778 1.803 6' 1.829 1.854 1.880 1.905 1.930 1.956 1.981 2.007 2.032 2.057 2.083 2.108 7' 2.134 2.159 2.184 2.210 2.235 2.261 2.286 2.311 2.337 2.362 2.388 2.413 8' 2.438 2.464 2.489 2.515 2.540 2.565 2.591 2.616 2.642 2.667 2.692 2.718 9' 2.743 2.769 2.794 2.819 2.845 2.870 2.896 2.921 2.946 2.972 2.997 3.023 The sample solution used to generate the above example and the automarker scripts uses System.out.printf () with a format string of "%6.3f" to print the metric values. We recommend the following formula: double metres = (feet*12+inches)*0.0254;

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
icon
Related questions
Question
100%
Write a java program called ImperialMetric that displays a conversion table for feet
and inches to metres. The program should ask the user to enter the range of values that
the table will hold.
Here is an example of what should be output when the program
runs:
Enter the minimum number of feet (not less than 0):
Enter the maximum number of feet (not more than 30):
9
0"
1"
2"
3"
4"
5"
6"
7"
8"
9"
10"
11"
5'
1.524
1.549
1.575
1.600
1.626
1.651
1.676
1.702
1.727
1.753
1.778
1.803
6'
|
1.829
1.854
1.880
1.905
1.930
1.956
1.981
2.007
2.032
2.057
2.083
2.108
7'
2.134
2.159 2.184
2.210
2.235
2.261
2.286
2.311
2.337
2.362
2.388
2.413
8'
2.438
2.464
2.489
2.515
2.540
2.565
2.591
2.616
2.642
2.667
2.692 2.718
9'
2.743
2.769 2.794 2.819
2.845
2.870
2.896
2.921
2.946 2.972 2.997 3.023
The sample solution used to generate the above example and the automarker scripts
uses System.out.printf() with a format string of "%6.3f" to print the metric values.
T&humbnail 155%
We recommend the following formula:
double metres
(feet*12+inches)*0.0254;
Transcribed Image Text:Write a java program called ImperialMetric that displays a conversion table for feet and inches to metres. The program should ask the user to enter the range of values that the table will hold. Here is an example of what should be output when the program runs: Enter the minimum number of feet (not less than 0): Enter the maximum number of feet (not more than 30): 9 0" 1" 2" 3" 4" 5" 6" 7" 8" 9" 10" 11" 5' 1.524 1.549 1.575 1.600 1.626 1.651 1.676 1.702 1.727 1.753 1.778 1.803 6' | 1.829 1.854 1.880 1.905 1.930 1.956 1.981 2.007 2.032 2.057 2.083 2.108 7' 2.134 2.159 2.184 2.210 2.235 2.261 2.286 2.311 2.337 2.362 2.388 2.413 8' 2.438 2.464 2.489 2.515 2.540 2.565 2.591 2.616 2.642 2.667 2.692 2.718 9' 2.743 2.769 2.794 2.819 2.845 2.870 2.896 2.921 2.946 2.972 2.997 3.023 The sample solution used to generate the above example and the automarker scripts uses System.out.printf() with a format string of "%6.3f" to print the metric values. T&humbnail 155% We recommend the following formula: double metres (feet*12+inches)*0.0254;
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education