1- Write a program that converts inches to centimeters. a) Prompt the user to enter a value in inches. I b) Write a set of statements that convert and store the value of inch to cm. The conversion factor is 2.54 cm/inch. c) Write statement that displays the results like below: 17.45 inches = 44.32 centimeters

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.5: Variables And Declaration Statements
Problem 3E: (Practice) a. Write a declaration statement to declare that the variable count will be used to store...
icon
Related questions
Question
1- Write a program that converts inches to centimeters.
a) Prompt the user to enter a value in inches.
I
b) Write a set of statements that convert and store the value of inch to cm.
The conversion factor is 2.54 cm/inch.
c) Write statement that displays the results like below:
17.45 inches = 44.32 centimeters
2- Prompt the user for their first name initial. Then convert their initial to the
ASCII code and display it as their secret code!
Transcribed Image Text:1- Write a program that converts inches to centimeters. a) Prompt the user to enter a value in inches. I b) Write a set of statements that convert and store the value of inch to cm. The conversion factor is 2.54 cm/inch. c) Write statement that displays the results like below: 17.45 inches = 44.32 centimeters 2- Prompt the user for their first name initial. Then convert their initial to the ASCII code and display it as their secret code!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning