Projects To Build |
Details |
HW Project # 1
Simple Data Entry Win32 Console App
Due Friday of Week 3 at
noon sharp!
No late projects accepted.
|
Create a simple native Win32 Console app like we did in class.
For full credit I want you to:
1. Prompt the user for
their First and Last name, their Address, City, and Zip Code. 2.
After they enter the information, clear the console and print their
data on the console so it looks nice. Add a little message at the
top of the screen like "Here is the data you entered" or something
similar. 3. Create a prompt that says "Press a key to exit....".
4. Close the app when they press a key. 5.
Make sure your app runs without any
errors. Then zip it up and email it to Tom. His email is
Tom@RKessler.com |
HW Project # 2
Simple GUI Desktop App
Invoice Total Project
Exercise 2-1 in Murach Book |
Create a project like the one on page 41 in
your Murach book.
1. Exercise 2-1 (p.54) walks you through
the process.
2. Make your app look just like the one in the book.
It does not have to calculate anything! I just want to see if
you can build a project on your own and send it to us.
3. Make
sure your app runs without any errors. Then zip it up and email it
to Tom. His email is
Tom@RKessler.com
4. If you are not sure how to submit your
project, look at my instruction video on my home page for submitting
home work.
5. SAVE YOUR PROJECT because you will use it again! |
HW Project # 3
Simple Data Entry & Listboxes
|
Create a new project and put a Listbox, three
buttons, and three textboxes on your form.
1. Name the textboxes to txtFName, txtLName, &
txtItemPurchased. Add labels next to each textbox to show th euser
what to do.
2. Add some items to the listbox using the items
property for the listbox. Do not add prices, just items.
3. Now, change the names of the buttons to btnOK,
btnClear, and btnQuit and change their text properties to OK, Clear,
and Quit.
4. Write code in the SelectedIndex_Changed event
of the listbox. When they choose an item, display that item in the
txtItemPurchased textbox.
5. Create an event handler for the OK button.
When they click it, create a messagebox that says, "Thanks for
shopping FirstName LastName. You
purchased a Name of item".
6. Write code to clear the form and put the
blinking cursor to the FName textbox.
7. Write code for the exit button to quit the
app.
|
HW Project # 4
Fun With Listboxes, Part 2
|
Now you are going to show off your
creativity! I want you to modify project 1.
1. Include prices for each item in your
listbox. Remember, you must use the space bar to move the prices to
the right of you items in the designer we used when we add items
into the items collection.
2. Add a textbox and label to hold the price.
3. When they select an item put the name of the item in the
correct textbox as before but this time put the price in the price
textbox.
4. Use substring to parse your selected item.
|
HW Project # 5
Fun With Listboxes, Part 3 |
Now modify project 2.
1. When they
click the OK button, make sure an item was selected and a price
appears in the textbox.
2. Add two more textboxes: one for
sales tax and one for Total Due.
3. In the OK button's event
handler, compute the sales tax and balance due and display the
totals on screen.
4. Add a Link Label control to the form and
when they click it, make it go to StarBucks.com
Notes: Be
sure to use variables for this project and make sure you convert
your textbox data to the correct type and then convert the values to
string when you display them in the textboxes to show totals.
You may want to use TryParse to save some time.
|
HW #6 for Lesson 4: Working with If
Statements (GUI)
Form Validation |
Make a new project and add textboxes with
labels for First Name, Last Name, Address, City, State, and Zip.
1. Name your controls appropriately. Change the text property of
the form to something nice and center the form when the program
starts.
2. Add a Checkout button. When they click it,
validate each textbox using If statements to be sure all of the have
data in them.
3. If any data if missing, show a messagebox to
warn them about missing info. If all the data is filled in then use
a messagebox to thank them for shopping.
4. Use a clear
button to clean up.
5. On the exit button, do a confirm
Exit with a messagebox.
|
HW Project #7 for Lesson 4:
Working With Loops
(GUI)
|
Make a new project and add textboxes with
labels for First Name, Last Name, Address, City, State, and Zip.
1. Name your controls appropriately. Change the text property of
the form to something nice and center the form when the program
starts.
2. Add a Checkout button. When they click it,
validate each textbox using If statements to be sure all of the have
data in them.
3. If any data if missing, show a messagebox to
warn them about missing info. If all the data is filled in then use
a messagebox to thank them for shopping.
4. Use a clear
button to clean up. Use a For-Each loop to clear
all the textboxes.
5. Add three radio buttons so they can
change the background color of the form. Choose any colors you like.
6. Change the form backgound when they select a radio button. |