Syllabus

Home

Class Resources

News

CS-100 In-Class Project: The Water Tank Problem

Instructions:

  1. Download the form for this project from the website: Water Tank Form
  2. Write the necessary Visual Basic instructions that will compute the capacity and surface area of the tank when the compute command button is pressed.
    1. The volume of a cylinder is equal to: Length times PI times radius squared.
    2. The volume of a sphere is equal to: Four thirds times PI times radius cubed.
    3. The surface area of a cylinder is equal to: Length times PI times twice the radius.
    4. The surface area of a sphere is equal to: Four times PI times radius squared.
  3. Write the necessary Visual Basic instructions to clear both text boxes and picture boxes when the reset command button is pressed.
  4. The quit command button terminates the program.