EGR_102_Lecture_07_HW_Solution

# EGR_102_Lecture_07_HW_Solution - part the volume is simply...

This preview shows pages 1–2. Sign up to view the full content.

EGR 102 of 2 pages Lecture 07 HW 1 EGR 102 Lecture 07 HW Due at beginning of lecture on Friday, March 2 2 Problems, 12 Points Total Name: Solution PID: Lab Section #: Problem 1 (4 pts): Develop a flowchart for a program that determines a letter grade from a numeric score ranging from 0 to 100 based on the following: A = 90-100 B = 80-89 C = 70-79 D = 60-69 F = 0-59 Enter Score Score ≥ 90 Score ≥ 80 Score ≥ 70 Score ≥ 60 Grade = A Grade = B Grade = C Grade = D Grade = F Submit Grade Yes Yes Yes Yes No No No No

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
EGR 102 of 2 pages Lecture 07 HW 2 Problem 2 (8 pts): The figure below shows a cylindrical tank with a conical base. If the liquid level is in the conical
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: part, the volume is simply the conical volume of liquid. If the liquid level is midrange in the cylindrical part, the total volume of liquid includes the filled conical part and the partially filled cylindrical part. Develop a flowchart for a program to compute the tank’s volume based on the liquid depth, d. Design the program so that it returns the volume for all cases where the depth is less than 3R. Return an error message (“Overtop”) if you overtop the tank (d > 3R). Function Vol(R, d) pi = 3.141593 d < R d < 3 * R Vol = “Overtop” End Function Vol = pi * d 3 / 3 V1 = pi * R 3 / 3 V2 = pi * R 2 (d – R) Vol = V1 + V2 T T F F...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

EGR_102_Lecture_07_HW_Solution - part the volume is simply...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online