Question I need help!!

Warguy500

Member
Joined
Nov 25, 2008
Messages
5
Programming Experience
Beginner
This is my last effort to pass my class.

I am enrolled in an intro to VB.net course at my local community college, well lets just say it has not been the intro course I expected. My teacher must think I know how to program because when I ask for help she assumes I know everything about VB even when I tell her I don't she continues to explain it in the confusing language that is VB.net. I realize it is probably one of the easier languages to learn but alas I have been left in the dust and I was looking for some help.

I was informed yesterday I could make up(or rather start and finish) all my assignments by today. As you can see this just goes to show that she still thinks I know what it is I am supposed to be doing. I attempted to read the book yesterday for the 3rd time hoping it would jump start me and give me the ability to do these projects in 24 hours but I am still as clueless as ever.

If anyone out there is maybe looking to refresh or someone maybe willing to extend a helping hand that would be amazing!! I only have 4 assignments I need to do and they seem like they are easy if you know what you are doing. I don't exactly know how this will work but the only think I could think of was over msn messenger or aim, etc. I do have VS 2008 on my laptop.

Please please someone out there help me I can't fail another class :(
 
We wont do homework for you, but we can help you where you're stuck. What you'll need to do is create a thread, post a description of what you're trying to do and the code you have (you need to make an attempt) that's not working.
 
I wasn't expecting anyone to do my homework for me, I was asking for help because I can't do anything past the design part. I can't grasp the programming part at all because my teacher wouldn't teach me from the ground up she started on like the 10th floor.

I was hoping someone could help me maybe even just through the first one and then I could probably do the other 3 hopefully on my own and if need be then come back here with any questions or if someone would want to talk on aim or msn about them then I could get an answer back faster.

I wouldn't ever want someone to do my homework for me, because I need to learn this..
 
Tell her your not coming to be told what to do, tell her shes not teaching you shes just shoving assignments into your face and tell her to teach you stuff BEFORE she sets you 4 assignments.
 
What does you program need to do?

What have you tried so far?

Where are you getting lost so we can give you direction?

People are more than willing to help on this forum if you've put in some effort and get stuck.
 
What does you program need to do?

What have you tried so far?

Where are you getting lost so we can give you direction?

People are more than willing to help on this forum if you've put in some effort and get stuck.

I wrote up an open mind document which I will post. I have the design of the project done except I have to put a border around the list box's kinda like what is around the smilies to the right of this message box.

I don't know how to start I know something about dim something and option strict and something else
 
Last edited:
Workshop :
Objective
The application should allow the user to select a workshop from one list box and a location from another list box.

When the user clicks the Add Workshop button, the application should add the total cost of the selected workshops at the selected location in the third list box.

When the user clicks the Calculate total button the total cost of all selected workshops should be calculated and displayed in the label.

The Reset button should deselect the workshop and location from the first two list boxes, clear the third list box, and clear the total cost label.

Added Objective
Do validation checking so that you must select items from the
2 list boxes before being able to select Add Workshop button

The list of costs should be un-editable

The Total cost label should be un-editable

The buttons should all have tool tips and shortcut keyboard
keys as indicated in the assignment figure

Change the title of the form as indicated in the assignment
figure

Calculate Total button can only be selected once you have a list of
costs to calculate

Instead of multiplying by the number of days, the program
should use a for loop and add the registration fee based upon
the number of days for each workshop

Prompt the user by using the Input Box function after they
select Calculate total and ask them for the max dollar amount
that their company is willing to pay for all the workshops
combined.

Add validation checking so that only numeric data is
accepted into the Input Box

If the amount of all the workshops is less than the total the
company is willing to pay use a Message Box to indicate to
the user that the cost will be paid for by the company.

If the total cost of all the workshops is more than the total
the company is willing to pay then use a Message Box to
indicate the amount the worker is responsible for paying
on their own.

Make sure you are renaming all the controls on the form, using
meaningful variables and setting Option strict and Option
explicit to ON for the program. Also include a name comment
block for the program

Rename the vb form file to workshop.vb

Rename the vb from class to Workshop

Declarations
List Boxes
LstBxLctn
Austin
Chicago
Dallas
Orlando
Phoenix
Raleigh

LstBxWkshp
Handling Stress
Time Management
Supervision Skills
Negotiation
Hot to Interview

Input
Button
4
BtnAdWkshp
BtnCalc
BtnReset
BtnExit

List box
2
LstBxWkshp
LstBxLctn

Process
Total cost = Workshops cost + (location cost * days)
Convert string input to text

Output
Text box
TxBxTtlCst
Read Only

Test Cases
Registration: $995
Lodging: $100 X 3 days = $300
Total: $ 1,295

Registration: $1,295
Lodging: $90 X 5 days = $450
Total: $ 1,745
 
Noone here is going to write a whole application for you. I'll point out how I would go about doing a couple sections and see how you go from there.

The Reset button should deselect the workshop and location from the first two list boxes, clear the third list box, and clear the total cost label.

VB.NET:
	Private Sub uxReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
	Handles uxReset.Click

		Me.lbWorkshops.SelectedIndex = -1
		Me.lbLocation.SelectedIndex = -1
		Me.lbSelectedWorkshops.Items.Clear()
		Me.uxTotalCost.Text = "$0.00"

	End Sub

Click event for your reset button. Set the SelectedIndex of your Workshops and Location listboxes to -1 (nothing selected). Clear the items from your 3rd listbox. Set the label to $0.00.

Do validation checking so that you must select items from the
2 list boxes before being able to select Add Workshop button

VB.NET:
	Private Sub lbSelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) _
	Handles lbLocation.SelectedIndexChanged, lbWorkshops.SelectedIndexChanged

		If Not lbLocation.SelectedIndex = -1 AndAlso Not lbWorkshops.SelectedIndex = -1 Then
			uxAdd.Enabled = True
		Else
			uxAdd.Enabled = False
		End If

	End Sub

Set your Add button to Enabled = False by default. Handle the SelectedIndexChanged event for your Location and Workshops listboxes. Check if both of the listboxes have something selected (SelectedIndex <> -1) and enable your Add button.
 
Hope <> True

dim me as integer
dim VB as integer


Do while Hope = true then
passed = true
if else Hope = False then
Forget even trying anymore = VB
Screwed = Me
Please close thread = True
else
passed = true

Thanks for the help sorry it was all pointless I have decided to give up and pick up a third job since I won't be in school anymore after this semester. This was my last chance to save my school career, I couldn't afford to fail but I will. It just sucks because if I would have had a better teacher, that would actually of taught me then I wouldn't have been completely screwed over. :(

Thanks again for your help, it was much appreciated. :)
 
Back
Top