Develop a C++ program that generates a pressure unit conversiontable for a range of pressure values that
Fantastic news! We've Found the answer you've been seeking!
Question:
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.
Transcribed Image Text:
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... 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...
Expert Answer:
Related Book For
Project Management A Systems Approach to Planning Scheduling and Controlling
ISBN: 978-0470278703
10th Edition
Authors: Harold Kerzner
Posted Date:
Students also viewed these programming questions
-
Section B.1 includes a C program that calculates the greatest common divisor of two integers. a. Describe the algorithm in words and show how the program does implement the Euclid algorithm approach...
-
1. Using pointers write a C program that print the sum of an array element whose position is even. 2. Write a C program to insert string and then print it in reverse order. For example, given the...
-
You are asked to write a c program that deals with the online purchase of TVs. The purchase order is handled first come first served basis. When a customer places an order to buy a TV, the program...
-
A project is at the multi-functional planning phase. The project manager realizes that producing a complex application is not feasible with the current number of resources and decides to hire more...
-
In December 2005 Mid-American Energy brought online one of the largest wind farms in the world. It cost an estimated $386 million and the 257 turbines have a total capacity of 360.5 megawatts (mW)....
-
If junction curvature causes the maximum field at a practical junction to be 1.5 times the theoretical value, calculate the doping density required to give a breakdown voltage of 150 V with an abrupt...
-
Internal control is a. the act of stealing a businesss assets. b. the preparation of fraudulent financial statements. C. the process that helps a business achieve its objectives, such as operating...
-
Jay-Zee Company makes an in-car navigation system. Next year, Jay-Zee plans to sell 16,000 units at a price of $320 each. Product costs include: Direct materials ....... $68 Direct labor .............
-
who drives health care policy in Florida? The Patient Protection and Affordable Care Act (PPACA) of 2010: From a policy perspective, why is/was the ACA so controversial? what provisions of the ACA...
-
Mr. M has been employed as an engineer by A Ltd., a company incorporated in Hong Kong. During the year ended 31 March 2019, Mr. M had the following income and expenditure. A monthly salary of...
-
7A-4. You gathered the following data from time cards and individual employee earnings records. Your tasks are as follows: 1. On December 5, 201X, prepare a payroll register for this biweekly...
-
King, Inc., a U.S. firm, is considering the establishment of a small subsidiary in Bulgaria that would produce food products. All ingredients can be obtained or produced in Bulgaria. The final...
-
Share how the situational leadership model and the normative decision model can impact leadership effectiveness. Narrate with examples.
-
Which Big 5 characteristic do you think most strongly correlates with leadership effectiveness and why? Explain.
-
1. Summarize how economic forces are influencing Targets decisions about pay. 2. If you worked in Targets HR department, how would you recommend that management communicate the fairness of its pay...
-
Twitter has introduced a product-based divisional organizational structure to foster more innovation, cross-functional collaboration, and efficient decision making. Organizational structure refers to...
-
Tree insertion sort We can sort n objects in O(n log n) unit operations as follows: We first initialize an empty binary search tree T. We second insert each of the n elements into T in turn. We third...
-
For all of the following words, if you move the first letter to the end of the word, and then spell the result backwards, you will get the original word: banana dresser grammar potato revive uneven...
-
Detailed schedules (through WBS levels 3, 4, 5, . . .) are prepared by the functional managers. Should these schedules be shown to the customer?
-
Manufacturing organizations are using project management/project engineering strictly to give new employees exposure to total company operations. After working on one or two projects, each...
-
What types of conflicts can occur during the planning cycle, and what modes should be used for their resolution?
-
What is the relative frequency of direct hits that were AT MOST a category 3 storm? a. 0.3480 b. 0.9231 c. 0.2601 d. 0.3370 Table 1.18 contains data on hurricanes that have made direct hits on the...
-
A survey of 250 members from an organized union of over 20,000 members. In Exercises 1120, determine whether the data set is a population or a sample. Explain your reasoning.
-
The carbon monoxide levels of 12 of 49 people who escaped a burning building. In Exercises 1120, determine whether the data set is a population or a sample. Explain your reasoning.
Study smarter with the SolutionInn App