HW05s10 - COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT...

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

View Full Document Right Arrow Icon
COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT AUSTIN Department of Chemical Engineering•Austin, Texas 78712-1062•(512)471-5238•FAX(512)471-7060 ChE 210 Homework 5 Due: Wednesday, March 3 While Loops These three problems all require use of while loops. Remember that while loops do repetition using logical expressions. I believe you should be able to get each problem on a single page. All pages must be stapled together. Place your name, ChE 210, Homework 5, and the date at the top of the first page. When you turn in your homework fold your pages lengthwise and write your name on the outside so that it is readable when the fold is to your left. 1. Suppose that we need a user to enter an integer number from 1 to 19. After the user enters the number we will need to check to see if a reasonable number was entered (using a selection structure). If not we need ask the user to try a different number (repetition). Write a script get_pick that requests an integer from 1 to 19 from the user. If the user does not enter a valid
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/04/2010 for the course ECO 304K taught by Professor Hickenbottom during the Spring '10 term at University of Texas at Austin.

Page1 / 2

HW05s10 - COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online