ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Your input will be the smallest number of inches and the largest number of inches to be converted.

by | Nov 28, 2023 | engineering

Need help with a program that displays an inches to centimeters conversion table. Your input will be the smallest number of inches and the largest number of inches to be converted. The intervals will be in 6 inch increments. One inch is equivalent to 2.54 centimeters.

Include the following in your program:

1. Include an initial algorithm that outlines your steps.

2. Include a refined algorithm that details how each step will be executed.

3. Prompt the User for the range of your table. For example, prompt the User for the beginning value of the range and the ending value of the range. If the User enters 1 inch for the beginning value and 36 inches for the ending value then your chart will look something like this:

                    Conversion Chart

      Inches         Centimeters

      ******         ***********

         1                 2.54

         7                17.78

        13                33.02

        19                48.26

        25                63.50

        31                78.74

4. Use a conversion formula to calculate the centimeter equivalents where 1 inch is equal to 2.54 centimeters.

5. Use an outer Do While Loop that will ask the User if they wish to run the program again.

6. Use an inner For Loop structure that will:

          a. Initialize the For Loop counter to the beginning value entered by the User

          b. Update the counter by incrementing it by six

          c. Test the counter by comparing it to the ending value entered by the User

          d. The body of the For Loop will use the value of the counter as the inches to convert to centimeters

7. Print out each line of the chart with each loop cycle.

8. Print the table using formatting techniques such as set precision and set width.

9. Include the code to pause the output screen.

10. Include the following error checking:

  1. Do not let the User enter a largest number of inches that is more than 36 inches greater than the smallest number of inches.For example, if the User enters a 15 for the beginning number of inches then this will be the smallest number of inches on your chart.
  2. This means that the ending value for the chart (or the largest number of inches allowed) can be up to, but not greater than 51 inches.
  3. The ending value must be at least 6 inches greater than the beginning number of inches (since that’s our increment size).
  4. The ending value cannot be less than the beginning value.
ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!

Open chat
1
Scan the code
ScholarMatic
Hello! Welcome to to our WhatsApp support.
We offer READY solutions, HIGH QUALITY PLAGIARISM FREE essays and term-papers.

We are online and ready to help