Menu

[Solved] Output Format Engr 200 Spring 2019 Municipal Water Supply A3 Muunicipal Water Tank Calcula Q37289328

PLEASE HELP ME WRITE THIS WITHOUT THE USE OF FILE POINTERS.’

OUTPUT FORMAT: ENGR 200 SPRING, 2019 MUNICIPAL WATER SUPPLY A3: MUUNICIPAL WATER TANK CALCULATIONS (using input/output data f

12.5,19.0,23.0,14.0
10.0
5.5
-1.0
8.0
16.0
0.0
33.0
25.7
36.5
32.5
-999.0

OUTPUT FORMAT: ENGR 200 SPRING, 2019 MUNICIPAL WATER SUPPLY A3: MUUNICIPAL WATER TANK CALCULATIONS (using input/output data files, a while loop, and if structures) Tank dimensions: cylinder radius . .х meters Cylinder height -x meters Frustum radius.x meters Frustum height = .x meters DUE: Feb. 19, 2019 at 11:59 PM, CST (Mon/Wed section) Feb. 19, 2019 at 11:59 PM, CST (Tue/Thu sections and DEDP POINTS: 50 INTRODUCTION A municipal we tank has a shape as shown to the right. RESULTS Float Height There is a float inside the tank that can transmit the water levels to the city ofice. The height data collected for one week from the float has been placed in an input file called Water Volume (cubic meters) (meters) tank The city needs an automated system that will alert city officials when the water level is too low or too high, and when the water level is good Since the shape of the tank has two distinct parts (a cylinder and an inverted frustum). two volumetric equations are needed. The water volume of the cylindrical portion is computed by: Print message XXXals FILE PATHS: Before submitting your program to Blackboard, you must set the following file paths in your program “u:engr 200 tank.txt” Where cis the radius of the cylinder and h-thk is the height of the float when the float is at the top of the cylinder. The total volume of the cylinder plus frustum is computed by: “u:engr 2001 tank report.txt” If the above file paths are not in the program when submitted to Blackboard, the program will be subject to a 25% grade reduction. SUBMITTING ASSIGNMENTS: Once you have your program working, exit the C compiler that you are using. Make sure that your source program Where h is the height of float h is the height of the cylinder, is the radius of the cylinder, and the water in the frustum. The radius of the water in the frustum is computed by: is the radius of 10.5 file name conforms to the following specifications ASSIGNMIENT Write a C program that will read from the comma delimited input file the cylinder radius and height, and the frustum radius and height in that order. Using a while loop, the program will read the float heights, test for float heights, compute the volume of water in cubic meters in the tank, and it will print the float heights and volumes in table format. The float height test conditions are: where: z is your section number (1, 2, 3, 4, 5,) Au is the program number (1, 2, 3,4, 5,) first is your first name last is your last name If the float height is negative, print the message The height cannot be negative, else if the float height equals zero, print the message Tank is empty currently filling, else if the float height is greater than the cylinder height plus the frustum height, print the messge The height cannot exceed tank height, else if he float height is less than or equal to the cylinder height then compute and print the water volume in the cylinder, else compute and print the water volume in the tank. An example for the third assignment would be 1 3 elmer fudd Submit your source program using the Assignments button in Blackboard Remember to submit your C source program. No other format will be accepted. Do not submit the output file that the program generates The results will be printed to the computer screen and to an output data file called tank report The format for the output is given below. Use your PC’s cursor to determine the horizontal and vertical spacing for the output. Show transcribed image text OUTPUT FORMAT: ENGR 200 SPRING, 2019 MUNICIPAL WATER SUPPLY A3: MUUNICIPAL WATER TANK CALCULATIONS (using input/output data files, a while loop, and if structures) Tank dimensions: cylinder radius . .х meters Cylinder height -x meters Frustum radius.x meters Frustum height = .x meters DUE: Feb. 19, 2019 at 11:59 PM, CST (Mon/Wed section) Feb. 19, 2019 at 11:59 PM, CST (Tue/Thu sections and DEDP POINTS: 50 INTRODUCTION A municipal we tank has a shape as shown to the right. RESULTS Float Height There is a float inside the tank that can transmit the water levels to the city ofice. The height data collected for one week from the float has been placed in an input file called Water Volume (cubic meters) (meters) tank The city needs an automated system that will alert city officials when the water level is too low or too high, and when the water level is good Since the shape of the tank has two distinct parts (a cylinder and an inverted frustum). two volumetric equations are needed. The water volume of the cylindrical portion is computed by: Print message XXXals FILE PATHS: Before submitting your program to Blackboard, you must set the following file paths in your program “u:engr 200 tank.txt” Where cis the radius of the cylinder and h-thk is the height of the float when the float is at the top of the cylinder. The total volume of the cylinder plus frustum is computed by: “u:engr 2001 tank report.txt” If the above file paths are not in the program when submitted to Blackboard, the program will be subject to a 25% grade reduction. SUBMITTING ASSIGNMENTS: Once you have your program working, exit the C compiler that you are using. Make sure that your source program Where h is the height of float h is the height of the cylinder, is the radius of the cylinder, and the water in the frustum. The radius of the water in the frustum is computed by: is the radius of 10.5 file name conforms to the following specifications ASSIGNMIENT Write a C program that will read from the comma delimited input file the cylinder radius and height, and the frustum radius and height in that order. Using a while loop, the program will read the float heights, test for float heights, compute the volume of water in cubic meters in the tank, and it will print the float heights and volumes in table format. The float height test conditions are: where: z is your section number (1, 2, 3, 4, 5,) Au is the program number (1, 2, 3,4, 5,) first is your first name last is your last name If the float height is negative, print the message The height cannot be negative, else if the float height equals zero, print the message Tank is empty currently filling, else if the float height is greater than the cylinder height plus the frustum height, print the messge The height cannot exceed tank height, else if he float height is less than or equal to the cylinder height then compute and print the water volume in the cylinder, else compute and print the water volume in the tank. An example for the third assignment would be 1 3 elmer fudd Submit your source program using the Assignments button in Blackboard Remember to submit your C source program. No other format will be accepted. Do not submit the output file that the program generates The results will be printed to the computer screen and to an output data file called tank report The format for the output is given below. Use your PC’s cursor to determine the horizontal and vertical spacing for the output.

Expert Answer


Answer to OUTPUT FORMAT: ENGR 200 SPRING, 2019 MUNICIPAL WATER SUPPLY A3: MUUNICIPAL WATER TANK CALCULATIONS (using input/output d… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *