Visual Basic
Program 3
Points: 60 points
Due Date: Thursday, July 12
Assignment:For this assignment you are going to complete 4 programs
from chapters 4, 5 and 6.
Exercise 1: Problem 1 on page 257. One change to the
problem in the book. Instead of the inputs (the series of product
numbers and quantities) coming from labels, have the user enter the
product numbers and labels in two different text boxes and then
click a button when they have been entered.
Notes:
- You will need to decide
how the different numbers and quantities should be separated. Are you
going to have the user put a space between each product number, a
comma, ? Thats your decision.
The product numbers should be treated as text and may include
letters. The quantities should be integers.
- The program should work as follows:
- The user enters a series of product numbers in one text
box and a series of corresponding quantities in another text box.
- After entering the data, the user will click a button. When
the button is clicked your program should sort both arrays according to
the product number and print both the product numbers and the corresponding
quantities to a label caption. It should then re-sort the arrays
by quantity and print the product numbers and quantities to a second
label caption.
Exercise 2: Problem 13 on page 259. For this problem you need the
data file that is in the drop folder. It is in the student data files
folder under chapter 4. Its name is "Student Grades.txt". If you need that
file and can't get to campus let me know and I will send it to you as an
attachment.
Exercise 3: Problem 7 on page 307.
Exercise 4: Problem 4 on page 357.
Return to the Visual Basic Home Page