208 Lab 03 - Name 4002-208 Lab 03 Extended Stock Purchase...

Info icon This preview shows pages 1–4. 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
Image of page 1

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

View Full Document Right Arrow Icon
Lab 3 __________ Have instructor or TA sign here when Exercise 1 works correctly. 4002-208 Page 2 of 6 Fall 20081
Image of page 2