Use c++ HOMEWORK #2 - Length Conversion Write a program that reads in a given length in feet and inches, and converts the output in centimeters. Assume that the two inputs into the program (feet and inches) are both integer values. Recall that there are 2.54 centimeters per inch. Always print 2 values after the decimal point for the number of centimeters. Specifications: Use Netbeans to create a new HW02 project. The first line of your code should be a comment indicating the homework number: / Homework 2*/ After you have created your code (including the rest of your comments), test and debug it. When you execute your code, the following information should be displayed if 15 and 7 are used for the number of feet and inches as inputs: Enter the number of feet: 15 Enter the number of inches: Z Feet = 15' Inches = 7" Total Inches = 187" Total Centimeters = 474.98 cm In this case, the bold underline data "15" and "7" represent user input into the program via the keyboard. Test your program using several different inputs to verify its operation.
Use c++ HOMEWORK #2 - Length Conversion Write a program that reads in a given length in feet and inches, and converts the output in centimeters. Assume that the two inputs into the program (feet and inches) are both integer values. Recall that there are 2.54 centimeters per inch. Always print 2 values after the decimal point for the number of centimeters. Specifications: Use Netbeans to create a new HW02 project. The first line of your code should be a comment indicating the homework number: / Homework 2*/ After you have created your code (including the rest of your comments), test and debug it. When you execute your code, the following information should be displayed if 15 and 7 are used for the number of feet and inches as inputs: Enter the number of feet: 15 Enter the number of inches: Z Feet = 15' Inches = 7" Total Inches = 187" Total Centimeters = 474.98 cm In this case, the bold underline data "15" and "7" represent user input into the program via the keyboard. Test your program using several different inputs to verify its operation.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 19PE
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.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 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
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning