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:

Algorithms, Part 3 of 3Writing Algorithms from ScratchTip CalculatorDrawing a Rectangle1Algorithms, Part 3 of 3TopicsIn-Class Project: Tip CalculatorIn-Class Project: Drawing a RectangleReadingNone2Writing 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Complete the pseudocode3Tip CalculatorProblem: Write an interactive program to calculate the dollar amount of tip on a restaurant bill given the percentage of tip. You should allow for changes in the total price of the bill and the tip percentage. Error checking should be done to be sure that the amount of the bill is greater than 0.4Drawing a RectangleProblem: 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


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?