Convert 150 J toft-lb. Convert 2,800 cal to J Convert 2.7 eV to cal.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 13E
icon
Related questions
Question
Write a program in a script file that converts a quantity of energy (work) given in
units of either joule, ft-lb, cal, or eV to the equivalent quantity in different units
specified by the user. The program asks the user to enter the quantity of energy, its
current units, and the desired new units. The output is the quantity of energy in the
new units.
The conversion factors are: 1 J=0.738 ft-lb = 0.239 cal = 6.24 x 1018 eV..
Use the program to:
Please solve quickly with
(a) Convert 150 J toft-lb.
(b) Convert 2,800 cal to J.
(c) Convert 2.7 eV to cal.
matlab
Transcribed Image Text:Write a program in a script file that converts a quantity of energy (work) given in units of either joule, ft-lb, cal, or eV to the equivalent quantity in different units specified by the user. The program asks the user to enter the quantity of energy, its current units, and the desired new units. The output is the quantity of energy in the new units. The conversion factors are: 1 J=0.738 ft-lb = 0.239 cal = 6.24 x 1018 eV.. Use the program to: Please solve quickly with (a) Convert 150 J toft-lb. (b) Convert 2,800 cal to J. (c) Convert 2.7 eV to cal. matlab
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Transmission media
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
  • 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