2. Write a program that asks the user to input an amount of pressure in MPa and converts it to atm and psi (lbf/in²). Yo

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

2. Write a program that asks the user to input an amount of pressure in MPa and converts it to atm and psi (lbf/in²). Yo

Post by answerhappygod »

2 Write A Program That Asks The User To Input An Amount Of Pressure In Mpa And Converts It To Atm And Psi Lbf In Yo 1
2 Write A Program That Asks The User To Input An Amount Of Pressure In Mpa And Converts It To Atm And Psi Lbf In Yo 1 (44.51 KiB) Viewed 30 times
USING C LANGUAGE ONLY!
2. Write a program that asks the user to input an amount of pressure in MPa and converts it to atm and psi (lbf/in²). Your program output should look like: Enter the pressure in MPa: 4.2 The equivalent pressure readings are: 41.45 atm 609.16 psi (lbf/in^2) /* File: pressure.c Converts MPa to atm and psi (lbf/in ^2) Programmer: #include <stdio.h> #define MPA2ATM 9.869233 #define MPA2PSI 145.03775 int main(void) { float MPa, atm, psi; /* you fill in here / return 0; Date: } For marking purposes, use a value of 2.6 MPa. As in question 1, copy and paste your program and its output into the solutions1.txt.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply