Reference no: EM131028315
INTRODUCTION TO PROGRAMMING
DESIGN PROJECT 1: C++ PROGRAM TO CALCULATE THE LIQUID LEVEL OF A TANK
Spring 2016 Problem Statement: A tank is shown in Figure 1. The tank had four inlet pipes (A, B, C, and D) each controlled by a valve and an outlet pipe (E).
Figure 1. Tank Diagram
The initial level of liquid in the tank at time zero or t(0) is 495 gallons. Inlet A has a flow rate of 5 gallons per second. The valve for inlet A is open for 10 seconds and then closes for 10 seconds and this cycle repeats as shown in Figure 2.
Figure 2. Inlet A Flow Rate
Inlet B has a flow rate of 10 gallons per second. The valve for inlet B is open for 20 seconds and then closes for 20 seconds and this cycle repeats. Inlet C has a flow rate of 2.5 gallons per second. The valve for inlet C is open for 5 seconds and then closes for 5 seconds and this cycle repeats. Inlet D has a flow rate of 7.5 gallons per second. The valve for inlet D is open for 15 seconds and then closes for 15 seconds and this cycle repeats. Liquid continually flows out of outlet E at a rate of 20 gallons per second.
Develop a computer program using the engineering problem solving methodology to determine at which time the tank will be empty based upon the following conditions.
• If the valve for inlet A is open meaning liquid in flowing into the tank from inlet A, then the flow rate of inlet B is reduced by one half.
• The valve for inlet C can only be open if the valves for inlet A or B are closed.
• The valve for inlet D can only be open if two of the other three valves are open.
The results of the program should show in table format
A. Time steps (increments) of one second and the sum of the inlet flow rates (A+B+C+D) based on the above conditions
B. Time steps and the level of liquid in the tank. (Hints see page 142 of textbook_for an example of a C++ program to put values in a table and the tank will he empty before60 seconds or OM.
C. The program should also contain at least one if statement, one iflelse statement, one switch statement, and either a while loop or for loop.
How many different combinations are there
: A person has 3 different letters to write, 2 interviews to do, and 2 commercials to review. In making aschedule, (first, second, etc.) how many different combinations are there?
|
Create a script that presents a word guessing game
: Create a script that presents a word guessing game. allow users to guess the word one letter at a time by entering a character in a form. start by assigning secret word to a variable.
|
Calculate the dc voltage that would be measured across r2
: Calculate the dc voltage that should exist across R2 without the Voltmeter present. Calculate the dc voltage that would be measured across R2 using a 10 kΩ/V analog voltmeter set to the 10-V range.
|
Briefly describe the supply chain management system
: Briefly describe the supply chain management system. Review the product procurement process (product flow). Describe the activities used to coordinate key players in the product procurement process.
|
Write a cpp program to calculate the liquid level of a tank
: C++ PROGRAM TO CALCULATE THE LIQUID LEVEL OF A TANK. Develop a computer program using engineering problem solving methodology to determine at which time tank will be empty based upon the following conditions.
|
Research paper outline based on the information below
: One of the central concerns of the sociology of development is change. In societies of all times there is change affecting every realm of life social, economic, cultural, technological, demographic, ecological and so on.
|
Role of colonization
: Study the development process of Jamaica by addressing the main themes covered in the textbook: role of colonization/path to independence/nation formation; early development policies; impact of neoliberalism and globalization on the economy and so..
|
Understanding of processes of global social change
: The questions will focus on your understanding of processes of global social change. Your answers should be essays of 150 words each. 1. What are the global benefits of improving women's living conditions and status around the world?
|
Critics view literature through lens of modern psychology
: "Critics view literature through the lens of modern psychology, exploring human behavior (conscious, subconscious and unconscious), literary language and symbolism
|