VISUAL BASIC HOMEWORK ASSIGNMENT (Total 300 points)(Due Date:throughout
May/June 2000) - This page was last updated May 1, 2000 at
11:00 p.m.
Project 3 - Part 1A - VB Book Page 89
Hands On - A Dialog-Box-like Program
Write a program with two command buttons that have the
caption Yes and No.
When the user clicks the button labeled Yes, the caption of
the form should chage to read "You clicked Yes". When the No
button is clicked, the caption of the form should change to
"You clicked No".
Project 3 - Part 1B - VB Book Page 89
On Your Own - No. 1 Improved Dialog Box
Improve the dialog box you created above and add code that
will respond to the form being clicked as well. This should
change the caption of the form to "You clicked the form
surface".
Part 1A & 1B score 25 points and is to be done AT HOME
: Due date May 8th
Project 3 - Part 1C - VB Book Page 89
On Your Own - No.2 Toggle Program
Write a program that has two command buttons and a label. The label should
be blank when the program starts. When the user clicks the first button,
which should be labeled ON, the label caption should change to display your
name. When the user clicks the second command button, which should
be labeled OFF, the label should display no text.
Project 3 - Part 1D - VB Book Page 90
On Your Own - No.3 Color Picker
Creat a Visual BAsic program with a form and four command buttins labeled
Red,Green,Blue and Yellow. When the user clicks a button, the form
background should change to that color (for example, if the blue button is
pressed, the form window should change to a blue color). You can change the
background color of the form in Visual BAsic using this code:
Form1.BackColor=<>
Where <> is a valid Visual Basic color.Use the color values shown
below:
Red is VbRed
Green is VbGreen
Blue is VbBlue
Yellow is VbYellow
Part 1C & 1D score 25 points and is to be done in THE
SMC LAB B250 after the lecture on May 8th
Project 4 - Part 1A - VB Book Page 113
Hands-On - Write pseudocode for a password protection
window
Write pseudocode for a program that will prompt the user to
enter a password. If the correct password is entered, the
program should display a message indicating success.
Otherwise, an error message should display. The program
should use a label to prompt the user and a second label to
display the confirmation message.
Project 4 - Part 1B - VB Book Page 114
On Your Own - No.1 Designing a password protection
window
Using the pseudocode for the Hands-On exercise as a guide,
develop a program that will prompt a user for a password.
PARTS 1A & 1B score 25 points and are to be done AT HOME: Due Date
May 16th
Project 4 - Part 1C - VB Book Page 114
On Your Own - No.2 ASCII code program
Write a program that has a text box for user input and a
label control to output results. Allow the user to input any
letter or number in the text box and display the ASCII
number for that letter on the lable.
Part 1C scores 50 points and is to be done AT SMC LAB250
after the
lecture on May 16, 2000
Project 4 - Part 1D - Yellow Handout - Kilometer Converter
On Your Own - Kilometer Converter
You want an application to convert the number of miles you enter into the
corresponding number of kilometers. Whenever you click the command button,
the miles in the first text box should be converted to the appropriate
kilometers and displayed in the second text box. Use the conversion of 1
mile equals 1.61 kilometers.THIS ASSIGNMENT IS ON YOUR YELLOW HANDOUT
Part 1D scores
25
Points and is to be done AT HOME
Due Date 05/22/2000
Project 4 - Part 1E - Yellow Handout - Maturity Calculator
On Your Own - Maturity Calculator
You are planning to invest money and would like to know whay your investment
will be worth within a specified period of time. You have decided to develop
an application that will allow entry of different amounts, different annual
interest rates, and different number of years. This will aid you in
determininig how much you would like to invest. When a command button is
clicked, the application displays the maturity value of the investment based
on quarterly compounding.THIS ASSIGNMENT IS ON YOUR YELLOW HANDOUT
Part 1E scores 25 Points and is to be done AT SMC LAB250 after the
lecture on Monday May 22,2000
Project 5 - Part 1A - VB Book Page 129
Writing An Addition Calculator (Please study Project 5 pages 116-126
before trying this exercise)
Write a program that will function as an addition calculator. It should
have a text box to accept numerical input, an ADD command button that will
take a number in the text box and add it to the total, and a label that
will constantly display a running tally. The program should also feature
two other command buttons: One that will clear the text box, and set the
running total to zero, and one that will quit the program.
Part 1A scores 50 Points and is to be done AT HOME
Due Date Monday June 5,2000
Project 5 - Part 1B - Yellow Handout - The Calculator
Changing
Properties at Run Time with CheckBox Controls
You have decided to build an application to assist the math students whom
you tutor. The application should provide the capability of allowing the
students to enter two numbers. They also should be able to select whether to
ADD, SUBTRACT, MULTIPLY, or DIVIDE the two numbers or any combination of
these operations. The result of each operation should display after they
have been calculated. The application should look similar to the one shown
on your YELLOW handout.
Part 1B scores 50 Points and is to be done AT HOME/AT SMC LAB250
Due Date after the lecture on Monday June 5,2000
Project 6 - Part AB - Yellow Handout -
The Tally Calculator
Please look at the yellow sheet , this is another version of a calculator.
You enter a number , add it to a total tally, then enter another number
and update the tally, with options to clear both the number and the Total
Tally.
Part 1A scores 50 Points and is to be done AT HOME/AT SMC LAB250
Due Date 06/12/00
[CSUN home]
[SECS home]
[COMP SCI home]
[Lucy's Home ]