DOC PREVIEW
UMBC CMSC 104 - Algorithms

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Algorithms, Part 3 of 3Topics In-Class Project: The Box In-Class Project:Drawing a RectagleReading NoneWriting Algorithms from Scratch Given a problem statement, we are going to write the corresponding generic algorithm for the solution. We will use the following procedure: Determine the algorithm inputs and outputs Pseudocode a rough algorithm Complete the pseudocodeThe Box Problem: Write an interactive program to compute and display the volume and surface are of a box. The program must also display the box dimensions. Error checking must be done to ensure that all box dimensions are greater than zero. Enter width of box -> 4 Enter length of box -> 5 Enter height of box -> 3 The box has dimensions 4 x 5 x 3 Volume of the box is 60. Surface area of the box is 94.Drawing a Rectangle Write an interactive program that will draw a solid rectangle of asterisks (*). The program must also display the dimensions of the rectangle. Error checking must be done to be sure that the dimensions are greater than zero. For example: Enter height of rectangle -> 4 Enter width of rectangle -> 16 **************** **************** ****************


View Full Document

UMBC CMSC 104 - Algorithms

Download Algorithms
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Algorithms and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Algorithms 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?