Write a program called ImperialMetric.java that displays a conversion table for feet and inches to metres. The
Fantastic news! We've Found the answer you've been seeking!
Question:
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
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
required code is written below import javautilScanner publi... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Here is an example of a transaction just took place in a store where hi-fi equipment is sold. A customer purchased a stereo system that cost him $1,000 on the following credit plan. No down payment,...
-
TCB Ltd manufactures three lines of TV monitors: M101, M102, and M103. TCB currently uses a traditional, volume-based costing system, where overhead cost allocation is based on the number of monitors...
-
The gold standard is an example of what type of international monetary system?
-
The General Auditors Office (GAO) of ABC jurisdiction issued a report on the XYZ Electric Cooperative, a large member-owned utility. This report reviewed the work of MNO Consulting. MNO found...
-
It is necessary to determine how much in-process storage space to allocate to a particular work center in a new factory. Jobs arrive at this work center according to a Poisson process with a mean...
-
In order to determine the unbalance in a grinding wheel, rotating clockwise at \(2400 \mathrm{rpm}\), a vibration analyzer is used and an amplitude of \(0.1 \mathrm{~mm}\) and a phase angle of...
-
Which interest rate on a bond determines the amount of the semiannual interest payment? a. Market rate b. Effective rate c. Stated rate d. Semiannual rate
-
A firm pays a $1.50 dividend at the end of year one (D1), has a stock price of $155 (P0), and a constant growth rate (g) of 10 percent. a. Compute the required rate of return (Ke). Indicate whether...
-
During ongoing meetings, all team members must fully understand their roles and responsibilities; and consult with stakeholders to determine the level of input and engagement required. Work with team...
-
Who do you think is correct, Mark (the unload capacity should be twice as high) or Doug (the two lifts have the same capacity)? Can you give a response to Jessicais there any other difference between...
-
Identify the null and alternative hypotheses for this test. Choose the correct answer below. A. Ho: p=0.1 H: p <0.1 In a study of the accuracy of fast food drive-through orders, one restaurant had 34...
-
Since the ratification of the First Amendment to the U.S. Constitution in 1791, Congress has been prohibited from making any law "abridging the freedom of speech." Clearly, at that time the framers...
-
Xiaomi Inc. is currently trading at $100 per share. After examining the stock of Xiaomi, you have determined that in one year time its price will either increase to $130 with probability 55% or...
-
Some one wrote that heat energy "is converted into kinetic energy." Is any conversion necessary? Does heat energy even exist before the atoms/molecules start moving? Explain.
-
When assessing future hospitality work, which statement is the MOST likely or accurate?
-
Question 1: What is the general relationship between U.S. law and international law? That is, how does international law impact or affect U.S. law, particularly in the National Security context, and...
-
The perimeter of a triangle is P = 15y-18x + 7 One side length is 7y2-3x-5 The other side length is -2y2-4x+2 Find the missing side length:
-
The following selected information was taken from Sun Valley Citys general fund statement of revenues, expenditures, and changes in fund balance for the year ended December 31, 2019: Revenues:...
-
Determine whether the statement is true or false. Justify your answer. 1. is a 4 Ã 2 matrix. 2. The method of Gaussian elimination reduces a matrix until a reduced row-echelon form is...
-
Determine whether the statement is true or false. Justify your answer. 1. The equation x (3 x) = 10 is a linear equation. 2. The equation 2x + 3 = x is a linear equation. 3. The equation 2(x 3) + 1...
-
Use the figure to sketch a graph of the specified vector. To print an enlarged copy of the graph, go to MathGraphs.com. 1. -v 2. 5v 3. u + v 4. u + 2v 5. u - v 6. v - ½u V
-
Museum directors today need both an advanced degree in art history and curatorial experience, as well as the financial acumen and managerial skills of a chief executive. In this economic environment,...
-
Discuss examples of how the changing economic condition has called for qualifi ed employees who are fl exible and willing to deal with rapid and unstructured changes. Give examples of impacts of...
-
Visit the US Department of Labor, Bureau of Labor Statistics web page and review Occupation Outlooks and Demographics Data. What additional workforce changes do you believe might take place in the...
Study smarter with the SolutionInn App