Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program called ImperialMetric.java that displays a conversion table for feet and inches to metres. The program should ask the user to enter the

Write a program called ImperialMetric.java 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):

0

Enter the maximum number of feet (not more than 30):

30

The expected output was: Enter the minimum number of feet (not less than 0) Enter the maximum number of feet (not more than 30): 9 10 11 0 0.000 0.025 0.051 0.076 0.102 0.127 0.152 0.178 0.203 0.229 0.254 0.279 10.305 0.330 0.356 0.381 0.406 0.432 0.457 0.483 0.508 0.533 0.559 0.584 2 0.610 0.635 0.660 0.686 0.711 0.737 0.762 0.787 0.813 0.838 0.864 0.889 3 0.914 0.940 0.965 0.991 1.016 1.041 1.067 1.092 1.118 1.143 1.168 1.194 4 1.219 1.245 1.270 1.295 1.321 1.346 1.372 1.397 1.422 1.448 1.473 1.499 51.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 72.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 92.743 2.769 2.794 2.819 2.845 2.870 2.896 2.921 2.946 2.972 2.997 3.023 103.048 3.073 3.099 3.124 3.150 3.175 3.200 3.226 3.251 3.277 3.302 3.327 113.353 3.378 3.404 3.429 3.454 3.480 3.505 3.531 3.556 3.581 3.607 3.632 123.658 3.683 3.708 3.734 3.759 3.785 3.810 3.835 3.861 3.886 3.912 3.937 13 3.962 3.988 4.013 4.039 4.064 4.089 4.115 4.140 4.166 4.191 4.216 4.242 144.267 4.293 4.318 4.343 4.369 4.394 4.420 4.445 4.470 4.496 4.521 4.547 15 4.572 4.597 4.623 4.648 4.674 4.699 4.724 4.750 4.775 4.801 4.826 4.851 16 4.877 4.902 4.928 4.953 4.978 5.004 5.029 5.055 5.080 5.105 5.131 5.156 175.182 5.207 5.232 5.258 5.283 5.309 5.334 5.359 5.385 5.410 5.436 5.461 185.486 5.512 5.537 5.563 5.588 5.613 5.639 5.664 5.690 5.715 5.740 5.766 19 5.791 5.817 5.842 5.867 5.893 5.918 5.944 5.969 5.994 6.020 6.045 6.071 20 6.096 6.121 6.147 6.172 6.198 6.223 6.248 6.274 6.299 6.325 6.350 6.375 216.401 6.426 6.452 6.477 6.502 6.528 6.553 6.579 6.604 6.629 6.655 6.680 226.706 6.731 6.756 6.782 6.807 6.833 6.858 6.883 6.909 6.934 6.960 6.985 23 7.010 7.036 7.061 7.087 7.112 7.137 7.163 7.188 7.214 7.239 7.264 7.290 24 7.315 7.341 7.366 7.391 7.417 7.442 7.468 7.493 7.518 7.544 7.569 7.595 25 7.620 7.645 7.671 7.696 7.722 7.747 7.772 7.798 7.823 7.849 7.874 7.899 26 7.925 7.950 7.976 8.001 8.026 8.052 8.077 8.103 8.128 8.153 8.179 8.204 278.230 8.255 8.280 8.306 8.331 8.357 8.382 8.407 8.433 8.458 8.484 8.509 28 8.534 8.560 8.585 8.611 8.636 8.661 8.687 8.712 8.738 8.763 8.788 8.814 29 8.839 8.865 8.890 8.915 8.941 8.966 8.992 9.017 9.042 9.068 9.093 9.119 30 9.144 9.169 9.195 9.220 9.246 9.271 9.296 9.322 9.347 9.373 9.398 9.423 

The expected output was: 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" 0' 0.000 0.025 0.051 0.076 0.102 0.127 0.152 0.178 0.203 0.229 0.254 0.279 1' 0.305 0.330 0.356 0.381 0.406 0.432 0.457 0.483 0.508 0.533 0.559 0.584 2' 0.610 0.635 0.660 0.686 0.711 0.737 0.762 0.787 0.813 0.838 0.864 0.889 0.914 0.940 0.965 0.991 1.016 1.041 1.067 1.092 1.118 1.143 1.168 1.194 1.219 1.245 1.270 1.295 1.321 1. 346 1.372 1.397 1.422 1.448 1.473 1.499 3' 4' 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 10' 3.048 3.073 3.099 3.124 3.150 3.175 3.200 3.226 3.251 3.277 3.302 3.327 11' 3.353 3.378 3.404 3.429 3.454 3.480 3.505 3.531 3.556 3.581 3.607 3.632 12' 3.658 3.683 3.708 3.734 3.759 3. 785 3.810 3.835 3.861 3.886 3.912 3.937 13' 3.962 3.988 4.013 4.039 4.064 4.089 4.115 4.140 4.166 4.191 4.216 4.242 14' 4.267 4.293 4.318 4.343 4.369 4. 394 4.420 4.445 4.470 4.496 4.521 4.547 15' 4.572 4.597 4.623 4.648 4.674 4.699 4.724 4.750 4.775 4.801 4.826 4.851 16' 4.877 4.902 4.928 4.953. 4.978 5.004 5.029 5.055 5.080 5.105 5.131 5.156 17' 5.182 5.207 5.232 5.258 5.283 5.309 5.334 5.359 5.385 5.410 5.436 5.461 18' 5.486 5.512 5.537 5.563 5.588 5. 613 5.639 5.664 5.690 5.715 5.740 5.766 19' 5.791 5.817 5.842 5.867 5.893 5.918 5.944 5.969 5.994 6.020 6.045 6.071 20' 6.096 6.121 6.147 6.172 6.198 6.223 6.248 6.274 6.299 6.325 6.350 6.375 21' 6.401 6.426 6.452 6.477 6.502 6.528 6.553 6.579 6.604 6.629 6.655 6.680 22' 6.706 6.731 6.756 6.782 6.807 6.833 6.858 6.883 6.909 6.934 6.960 6.985 23' 7.010 7.036 7.061 7.087 7.112 7.137 7.163 7.188 7.2147.239 7.264 7.290 24' 7.315 7.341 7.366 7.391 7.417 7.442 7.468 7.493 7.518 7.544 7.569 7.595 25' 7.620 7.645 7.671 7.696 7.722 7. 747 7.772 7.798 7.823 7.849 7.874 7.899 26' 7.925 7.950 7.976 8.001 8.026 8.052 8.077 8.103 8.128 8.153 8.179 8.204 27' 8.230 8.255 8.280 8.306 8.331 8. 357 8.382 8.407 8.433 8.458 8.484 8.509 28' 8.534 8.560 8.585 8.611 8.636 8.661 8.687 8.712 8.738 8.763 8.788 8.814 29' 8.839 8.865 8.890 8.915 8.941 8.966 8.992 9.017 9.042 9.068 9.093 9.119 30'| 9.144 9.169 9.195 9.220 9.246 9.271 9.296 9.322 9.347 9.373 9.398 9.423

Step by Step Solution

3.33 Rating (162 Votes )

There are 3 Steps involved in it

Step: 1

required code is written below import javautilScanner publi... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
635de5ebbc496_179802.pdf

180 KBs PDF File

Word file Icon
635de5ebbc496_179802.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algebra and Trigonometry

Authors: Ron Larson

10th edition

9781337514255, 1337271179, 133751425X, 978-1337271172

More Books

Students also viewed these Programming questions

Question

# 2 : just needing to know the beginning inventory

Answered: 1 week ago