Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Develop a C++ program that generates a pressure unit conversiontable for a range of pressure values that can read two or moreinputs at once separated
Develop a C++ program that generates a pressure unit conversiontable for a range of pressure values that can read two or moreinputs at once separated with a space.
pai 1.000 Table 1: Multipliers for Converting Pressure Units from psi ATM in H20 bar 0.068048 27.7276 Software Development Task 1 (Compulsory Task): Develop and submit an original C++ program that: 1. asks the user to choose one or more measurement unit(s) as the converted pressure units (the unit used in the second column onwards in the conversion table). Available choices are: ATM, inH20, mmHg, inHg, kPa, bar, mmH20. 2. asks the user to enter the starting value and ending value of the primary pressure unit in psi. 3. asks the user to enter the incremental value in psi from one primary pressure row to the next row. Your program must then generate the pressure unit conversion table from psi as the primary pressure unit to the chosen converted pressure unit(s), starting from the starting value to the ending value, with the incremental value as the gap from one row to the next. Note that all the numeric values should be displayed with the precision (number of decimal places) shown in Table 1. You should also set aside appropriate and sufficient widths to display the primary and converted pressure values using output formatting in C++. A sample screenshot of the program is given below. Note that user inputs are underlined in the sample screenshot below for demonstration purpose only. For the example given in the sample screenshot, the user has chosen bar and kPa as the converted pressure units. Sample Screenshot: Pressure Unit Conversion Table Choose one or more measurement unit(s) as the converted pressure units: ATM, InH20, mmHq, InHq, kPa, bar, mmH20 (separated with a space if more than one): bar KPA Enter the starting value and ending value for primary unit in psl (separated with a space): 1.000 2.000 Enter the Increment from one primary unit row to the next row: 0.100 bar kPa pal 1.000 0.06895 1.100 0.07585 1.200 0.08274 1.300 0.08964 1.400 0.09653 1.500 0.10343 1.600 0.11032 mmHg inHg kPa 61.715 2.03602 6.805 0.06805 1.700 0.11722 1.800 0.12411 6.895 7.585 8.274 mmH20 704 281 8.964 9.653 10.343 11.032 11.722 12.411 13.101 13.790 1.900 0.13101 2.000 0.13790 Press any key to continue...
Step by Step Solution
★★★★★
3.37 Rating (150 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started