Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
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.
expand button
Transcribed Image Text: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.
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education