Prelab09 - Name must exist, and price must be a number...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CNIT 175 Prelab09 Objectives: Parallel Dynamic Arrays Program: Design a VB project to store the name and price of unknown number of items in an inventory. The GUI should include two TextBox, a ListBox, and 2 Buttons (btnEnter and btnDisplay). Data Structure: Declare two dynamic arrays to store names and prices. Declare an integer counter with module scope to keep track of the last index in array where data has been stored. Enter Button: Validate the input data.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Name must exist, and price must be a number > 0. For valid data: Resize both arrays. Store name and price in arrays. Clear the input data, and set the focus to txtName. Display Button: If arrays are empty, inform the user and do nothing. Clear the listbox. Display column headers for Name and Price. Display all the names and prices in two columns in the ListBox. o Change the font of the listbox to Courier New....
View Full Document

This note was uploaded on 02/06/2012 for the course CNIT 175 taught by Professor Na during the Fall '11 term at Purdue University-West Lafayette.

Ask a homework question - tutors are online