{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

homework1WriteUp

# homework1WriteUp - COP 2271 VB.NET Fall 2011 Homework 1...

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

COP 2271 VB.NET Fall 2011 Homework # 1 Due: September 16, 11:55 pm Introduction You will write a program that calculates some data about an hourglass based on certain user inputs about the attributes of this hourglass. An hourglass is a sealed container with two distinct pieces connected by a small neck which allows sand to flow from the top piece to the bottom. For this homework you will be writing a Console program and a windows program that is an extension of the console program. 1. Console Application (Project Name: HourglassConsole) Program Description Use input boxes to get the total height (Figure 1) of the Hourglass and to get the flow rate of sand though the neck of the hourglass. Using these two inputs you can calculate the volume of the hourglass and using the rate figure out how much time it will take to empty. The time for the hourglass is to be displayed in a message box (shown in the sample runs section). Figure 1: Hourglass

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

View Full Document
1. Height is input in inches 2. Rate is input in in 3 /s 3. Cone Height is equal to 2 * Radius ( this means total height = 6 * Radius) 4. Use math.PI for the value of pi 5. You may find it useful to use integer division ( \ ), Math.floor is also nice. 6. You do not have to use any error checks for this program Key Equations Hourglasses can be thought of as 4 distinct geometrical shapes. Two halves of a sphere and two cones.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern