208 Lab 03

208 Lab 03 - Name: _ 4002-208 Lab 03: Extended Stock...

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

View Full Document Right Arrow Icon
Name: ____________________________________ 4002-208 Lab 03: Extended Stock Purchase Program Exercise 1 – Data Validation (3 points) The exercise must be completed during the lab period. You are to extend the program from Lab 02. Download the zip file from your lab day module within the module Week 03 which contains a modified version of the program from Lab 02. The program implements Exercise 1 form Lab 02 with a few tweaks. Extend the program to perform the following data validations: The price per share must be greater than 0. The number of shares must be between 10 and 1000, inclusively and the number of shared must be a multiple of 10. If the input is not valid, print an appropriate error message. Sample Output Note: check for the proper range first (between 10 and 1000, inclusively and then check for divisible by 10) Page 1 of 6
Background image of page 1

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

View Full DocumentRight Arrow Icon
__________ Have instructor or TA sign here when Exercise 1 works correctly. 4002-208
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/31/2009 for the course NSSA 4002 208 taught by Professor Niemi during the Spring '09 term at RIT.

Page1 / 6

208 Lab 03 - Name: _ 4002-208 Lab 03: Extended Stock...

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

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