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
-
- 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
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.