Re: VB Videos Programming Help

  • From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 6 Nov 2008 11:48:08 +1100

        Hi.
well, it does not say anything about setting up the Amount Due,
they just assume, that to display the rental amount, the discount and the 
amount due.
so, maybe for example if i set the Amount Due say to 100, would that work?
and how to fix the other calculations.
got any suggestions, or any good sites with simple examples, would be more 
helpful in vb.
sorry about that.
cheers Marvin.
ps: just trying to figure it out myself.
----- Original Message ----- 
From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Thursday, November 06, 2008 11:44 AM
Subject: Re: VB Videos Programming Help


what ever it needs to be set to... if they oe something, etc. but it also
needs to be added in with the calculation.

Thanks,
Tyler Littlefield
email: tyler@xxxxxxxxxxxxx
web: tysdomain-com
Visit for quality software and web design.
skype: st8amnd2005

----- Original Message ----- 
From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Wednesday, November 05, 2008 4:37 PM
Subject: Re: VB Videos Programming Help


>        HI.
> so what should i set it to.
> and how to get the calculations working?
> or maybe point me to an example.
> cheers Marvin.
> ----- Original Message ----- 
> From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
> To: <programmingblind@xxxxxxxxxxxxx>
> Sent: Thursday, November 06, 2008 10:33 AM
> Subject: Re: VB Videos Programming Help
>
>
> if it's set to nothing, multiplying 0 by what ever will just mean it's 0.
>
> Thanks,
> Tyler Littlefield
> email: tyler@xxxxxxxxxxxxx
> web: tysdomain-com
> Visit for quality software and web design.
> skype: st8amnd2005
>
> ----- Original Message ----- 
> From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
> To: <programmingblind@xxxxxxxxxxxxx>
> Sent: Wednesday, November 05, 2008 4:12 PM
> Subject: Re: VB Videos Programming Help
>
>
>>        HI.
>> no decAmountDue is set to nothing.
>> and the decRentals set to it says in the project $1.8, but was having a
>> lot
>> of trouble trying to calculate , so put it to 2, just to see, if it liked
>> that rounded up.
>> cheers Marvin.
>> ----- Original Message ----- 
>> From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
>> To: <programmingblind@xxxxxxxxxxxxx>
>> Sent: Thursday, November 06, 2008 10:10 AM
>> Subject: Re: VB Videos Programming Help
>>
>>
>> ok, this is the line I don't get. the first two lines make sense:
>>        decAmountDue = decAmountDue * decRentals
>> does DecAmountDue have something initialized before you set it to that?
>> And
>> how are you setting your rentals? I would've thought rentals would've
>> been
>> movies*rate with the discount subtracted.
>>
>>
>> Thanks,
>> Tyler Littlefield
>> email: tyler@xxxxxxxxxxxxx
>> web: tysdomain-com
>> Visit for quality software and web design.
>> skype: st8amnd2005
>>
>> ----- Original Message ----- 
>> From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
>> To: <programmingblind@xxxxxxxxxxxxx>
>> Sent: Wednesday, November 05, 2008 4:07 PM
>> Subject: Re: VB Videos Programming Help
>>
>>
>>>        Hi.
>>> okay, here's the split up version of my calculations.
>>> cheers and thanks for your help.
>>> much appreciated.
>>> Marvin.
>>>
>>> decRentals = decRentals * intVideoOrder
>>>        decDiscount = decRentals - intVideoOrder
>>>        decAmountDue = decAmountDue * decRentals
>>>        intCustomerCount = intCustomerCount + 1
>>>        decTotals = decRentals - decDiscount
>>>
>>> ----- Original Message ----- 
>>> From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
>>> To: <programmingblind@xxxxxxxxxxxxx>
>>> Sent: Thursday, November 06, 2008 10:02 AM
>>> Subject: Re: VB Videos Programming Help
>>>
>>>
>>> Marvin,
>>> Again, lets stop with the feel sorry. I understand your on your own.
>>> You've
>>> told us this a few times. I will do what I can to help, as long as your
>>> showing effort. I told you to split your calculation up, and you
>>> apparently
>>> did so, so we're off to the next step.
>>> Please post the lines with your calculations again. Just the split up
>>> version will do. I'll see what I can do with it.
>>>
>>>
>>> Thanks,
>>> Tyler Littlefield
>>> email: tyler@xxxxxxxxxxxxx
>>> web: tysdomain-com
>>> Visit for quality software and web design.
>>> skype: st8amnd2005
>>>
>>> ----- Original Message ----- 
>>> From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
>>> To: <programmingblind@xxxxxxxxxxxxx>
>>> Sent: Wednesday, November 05, 2008 3:59 PM
>>> Subject: Re: VB Videos Programming Help
>>>
>>>
>>>>        Hi.
>>>> okay, no hard feelings.
>>>> okay, i understand.
>>>> okay, maybe not getting it, but some examples are straight forward,
>>>> then
>>>> other, are not, and it is tearing my hair out.
>>>> not to do it for me, but for some one to point out what i am missing.
>>>> but must be something really simple, or i am not just picking it up.
>>>> and tried looking on the net, but could not seem to find any similar
>>>> examples.
>>>> okay, will ask other people.
>>>> see if they can help, or point out resources, where i can find how to
>>>> fix
>>>> my
>>>> problems.
>>>> really, just not picking it up, and really trying hard to learn, and on
>>>> my
>>>> own, so will try that.
>>>> thanks and have a great day.
>>>> cheers Marvin.
>>>> ----- Original Message ----- 
>>>> From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
>>>> To: <programmingblind@xxxxxxxxxxxxx>
>>>> Sent: Thursday, November 06, 2008 9:55 AM
>>>> Subject: Re: VB Videos Programming Help
>>>>
>>>>
>>>> Marven,
>>>> Just reread my last message. I didn't want it to come across like it
>>>> did.
>>>> I was in the middle of typing when the phone rang. It was 6 here, and I
>>>> ran
>>>> to get it before it woke up my grandparents house.
>>>> The sintence finished, is that I delete messages from you on program-l
>>>> because they're duplicates.
>>>> Rick was not attacking you, and neither am I. If someone else would
>>>> like
>>>> to
>>>> step forward and help you, then feel free.
>>>>
>>>> Thanks,
>>>> Tyler Littlefield
>>>> email: tyler@xxxxxxxxxxxxx
>>>> web: tysdomain-com
>>>> Visit for quality software and web design.
>>>> skype: st8amnd2005
>>>>
>>>> ----- Original Message ----- 
>>>> From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
>>>> To: <programmingblind@xxxxxxxxxxxxx>
>>>> Sent: Wednesday, November 05, 2008 3:45 PM
>>>> Subject: Re: VB Videos Programming Help
>>>>
>>>>
>>>>>        Hi.
>>>>> well said.
>>>>> i do not attack other members on public mailling lists.
>>>>> so Rick should not do the same or any other member.
>>>>> maybe you should take it up with the moderators, and maybe a file list
>>>>> rules
>>>>> or etticate message, reminding members of this.
>>>>> okay, so maybe i am struggling, and maybe i do not understand, but
>>>>> trying,
>>>>> some examples, are straight forward, but others, having problems
>>>>> trying
>>>>> to
>>>>> understand, and trying to learn.
>>>>> people, do not understand, i am on my own, doing this externally, as
>>>>> my
>>>>> nearest campus is over 1000 kph, away, in adelaide, australia and
>>>>> moved
>>>>> to
>>>>> Tasmania with my parents.
>>>>> so, you can see, do not really have the support.
>>>>> did e-mail my lecturer, and he really cannot help, as he is teaching
>>>>> multiple students, multiple subjects like vb, c#, c++, java,
>>>>> multimedia
>>>>> and
>>>>> flash and asp.
>>>>> and at multiple campuses in Adelaide, australia.
>>>>> so, sorry about this, if do not seem to understand.
>>>>> cheers Marvin.
>>>>> ----- Original Message ----- 
>>>>> From: "E.J. Zufelt" <everett@xxxxxxxxx>
>>>>> To: <programmingblind@xxxxxxxxxxxxx>
>>>>> Sent: Wednesday, November 05, 2008 11:56 PM
>>>>> Subject: Re: VB Videos Programming Help
>>>>>
>>>>>
>>>>> Good morning,
>>>>>
>>>>> Having tutored students in client-server programming with Java, I can
>>>>> understand how it can sometimes become frustrating.  However, I do not
>>>>> believe that a public mailing list is the place to make statements
>>>>> like
>>>>> the
>>>>> ones below.
>>>>>
>>>>> I believe that individuals who are making an attempt to learn should
>>>>> be
>>>>> applauded, even more so the greater their struggle.  I have a friend
>>>>> who
>>>>> tried 5 times to get his bus drivers lisence before he was finally
>>>>> successful.  I thought it was silly at the time, but now he drives all
>>>>> over
>>>>> Canada and the US and enjoys what he is doing a great deal.
>>>>>
>>>>> HTH,
>>>>> Everett
>>>>>
>>>>>
>>>>> ----- Original Message ----- 
>>>>> From: "Ricks Place" <OFBGMail@xxxxxxxxx>
>>>>> To: <programmingblind@xxxxxxxxxxxxx>
>>>>> Sent: Wednesday, November 05, 2008 5:26 AM
>>>>> Subject: Re: VB Videos Programming Help
>>>>>
>>>>>
>>>>>> Hi Marv:
>>>>>> So the guys know; I had to do the Project Analysis, set up or totally
>>>>>> rebuild the step by step pseudo code and rework nonsense calculations
>>>>>> as
>>>>>> well as redefine your use of variables on the past 4 projects. I
>>>>>> explained
>>>>>> everything to you, gave you examples and did this over and over but
>>>>>> you
>>>>>> could not pick up on the fundementals. Your educational level, 10 th
>>>>>> grade, is wholly inadiquit for the level of coursework you are
>>>>>> involved
>>>>>> in. You need at least a High School Education, 4 years of prep work
>>>>>> in
>>>>>> English, Math and Science before tackling a University level course
>>>>>> like
>>>>>> this.
>>>>>> I worked off-list with you several hours each day but your lack of
>>>>>> comprehension skills and math skills showed me you are not capable of
>>>>>> doing work at this level without someone else virtually doing it for
>>>>>> you.
>>>>>> So, if you can talk others into doing your work, good. That is a
>>>>>> skill
>>>>>> in
>>>>>> and of itself of sorts. However, it is not doing you any favors as
>>>>>> your
>>>>>> lack of basic skills will eventually drown you and you will either
>>>>>> have
>>>>>> to
>>>>>> start all over again or end up giving up completely.
>>>>>> Rick USA
>>>>>> ----- Original Message ----- 
>>>>>> From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx>
>>>>>> To: <programmingblind@xxxxxxxxxxxxx>
>>>>>> Sent: Wednesday, November 05, 2008 12:55 AM
>>>>>> Subject: VB Videos Programming Help
>>>>>>
>>>>>>
>>>>>>> Hi.
>>>>>>> doing this book for a programming subject, and now need some help,
>>>>>>> not
>>>>>>> to
>>>>>>> do
>>>>>>> my home work for me, but to give me pointers how to fix the problems
>>>>>>> and
>>>>>>> the
>>>>>>> calculations.
>>>>>>> or maybe point me to some good online examples.
>>>>>>> really struggling, and need some help.
>>>>>>> and please be gentle with me, tried looking at the msdn, help, and
>>>>>>> tried
>>>>>>> searching on google and altavista for some simple examples, similar
>>>>>>> to
>>>>>>> this
>>>>>>> case study, but could only find really complext examples.
>>>>>>> so, if you could help me out, let me know either on or off list.
>>>>>>> cheers Marvin.
>>>>>>>
>>>>>>> ps: will post the project description and my code below.
>>>>>>>
>>>>>>> Video Bonanza
>>>>>>>
>>>>>>> Design and code a project to calculate the amount due
>>>>>>> and provide a summary of rentals. All movies rent for
>>>>>>> $1.80 and all customers receive a 10 percent dis-
>>>>>>> count.
>>>>>>> The form should contain input for the member
>>>>>>> number and the number of movies rented. Inside a
>>>>>>> group box, display the rental amount, the 10 percent
>>>>>>> discount, and the amount due. Inside a second group
>>>>>>> box, display the number of customers served and the
>>>>>>> total rental income (after discount).
>>>>>>> Include buttons for Calculate, Clear, and Exit.
>>>>>>> The Clear button clears the information for the current
>>>>>>> rental but does not clear the summary information. Do
>>>>>>> not allow bad input data to cancel the program; in-
>>>>>>> stead display a message to the user.
>>>>>>>
>>>>>>>
>>>>>>> 'Program:   VBVideos
>>>>>>> 'Programmer:    Marvin Hunkin
>>>>>>> 'Date:  Tuesday November 4 2008
>>>>>>> 'Description:   Keep track of video rentals
>>>>>>>
>>>>>>>
>>>>>>> Public Class frmVBVideos
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>    'Declare  Module Level Variable.
>>>>>>>
>>>>>>>
>>>>>>>    Dim intCustomerCount As Integer = 0
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>    Private Sub btnCalculateButton_Click(ByVal sender As Object,
>>>>>>> ByVal
>>>>>>> e
>>>>>>> As
>>>>>>> System.EventArgs) Handles btnCalculateButton.Click
>>>>>>>
>>>>>>>        'Declare Variables.
>>>>>>>
>>>>>>>        Dim intMembership As Integer
>>>>>>>        Dim intVideoOrder As Integer
>>>>>>>        Dim decRentals As Decimal = 2
>>>>>>>        Dim decDiscount As Decimal = 0.1
>>>>>>>        Dim decAmountDue As Decimal
>>>>>>>        Dim decTotals As Decimal
>>>>>>>
>>>>>>>
>>>>>>>        'Convert Variables.
>>>>>>>
>>>>>>>
>>>>>>>        If IsNumeric(tbMembershipNumberTextBox.Text) Then
>>>>>>>            intMembership = CInt(tbMembershipNumberTextBox.Text)
>>>>>>>        Else
>>>>>>>            MessageBox.Show("You Did Not Enter A Valid Numeric Value
>>>>>>> for
>>>>>>> Membership Number.", "Data Error", _
>>>>>>>                            MessageBoxButtons.OK,
>>>>>>> MessageBoxIcon.Exclamation)
>>>>>>>            tbMembershipNumberTextBox.Focus()
>>>>>>>            Return
>>>>>>>
>>>>>>>
>>>>>>>        End If
>>>>>>>
>>>>>>>
>>>>>>>        If IsNumeric(tbVideoRentalNumberTextBox.Text) Then
>>>>>>>            intVideoOrder = CInt(tbVideoRentalNumberTextBox.Text)
>>>>>>>        Else
>>>>>>>            MessageBox.Show("You Did Not Enter A Valid Numeric Value
>>>>>>> for
>>>>>>> Number Of Video Rentals.", "Data Error", _
>>>>>>>                            MessageBoxButtons.OK,
>>>>>>> MessageBoxIcon.Exclamation)
>>>>>>>            tbVideoRentalNumberTextBox.Focus()
>>>>>>>            Return
>>>>>>>
>>>>>>>
>>>>>>>        End If
>>>>>>>
>>>>>>>
>>>>>>>        'Calculate Rentals.
>>>>>>>
>>>>>>>
>>>>>>>        decRentals = decRentals * intVideoOrder
>>>>>>>        decDiscount = decRentals - intVideoOrder
>>>>>>>        decAmountDue = decAmountDue * decRentals
>>>>>>>        intCustomerCount = intCustomerCount + 1
>>>>>>>        decTotals = decRentals - decDiscount
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>        'Format Text Boxes.
>>>>>>>
>>>>>>>
>>>>>>>        tbMembershipNumberTextBox.Text = intMembership.ToString()
>>>>>>>        tbVideoRentalNumberTextBox.Text = intVideoOrder.ToString()
>>>>>>>        tbVideoRentalsTextBox.Text = decRentals.ToString("C")
>>>>>>>        tbDiscountTextBox.Text = decDiscount.ToString("C")
>>>>>>>        tbAmountDueTextBox.Text = decAmountDue.ToString("C")
>>>>>>>        tbCustomerNumberTextBox.Text = intCustomerCount.ToString()
>>>>>>>        tbTotalRentalsTextBox.Text = decTotals.ToString("C")
>>>>>>>        tbMembershipNumberTextBox.Focus()
>>>>>>>
>>>>>>>
>>>>>>>    End Sub
>>>>>>>
>>>>>>>    Private Sub btnClearButton_Click(ByVal sender As Object, ByVal e
>>>>>>> As
>>>>>>> System.EventArgs) Handles btnClearButton.Click
>>>>>>>
>>>>>>>
>>>>>>>        'Clear Text Boxes.
>>>>>>>
>>>>>>>        tbMembershipNumberTextBox.Clear()
>>>>>>>        tbVideoRentalNumberTextBox.Clear()
>>>>>>>        tbVideoRentalsTextBox.Clear()
>>>>>>>        tbDiscountTextBox.Clear()
>>>>>>>        tbAmountDueTextBox.Clear()
>>>>>>>        tbCustomerNumberTextBox.Clear()
>>>>>>>        tbTotalRentalsTextBox.Clear()
>>>>>>>        tbMembershipNumberTextBox.Focus()
>>>>>>>
>>>>>>>
>>>>>>>    End Sub
>>>>>>>
>>>>>>>    Private Sub btnExitButton_Click(ByVal sender As Object, ByVal e
>>>>>>> As
>>>>>>> System.EventArgs) Handles btnExitButton.Click
>>>>>>>
>>>>>>>
>>>>>>>        'Exit the project.
>>>>>>>
>>>>>>>        Me.Close()
>>>>>>>
>>>>>>>
>>>>>>>    End Sub
>>>>>>> End Class
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> __________
>>>>>>> View the list's information and change your settings at
>>>>>>> //www.freelists.org/list/programmingblind
>>>>>>>
>>>>>>
>>>>>> __________
>>>>>> View the list's information and change your settings at
>>>>>> //www.freelists.org/list/programmingblind
>>>>>>
>>>>>
>>>>> __________
>>>>> View the list's information and change your settings at
>>>>> //www.freelists.org/list/programmingblind
>>>>>
>>>>>
>>>>> __________
>>>>> View the list's information and change your settings at
>>>>> //www.freelists.org/list/programmingblind
>>>>>
>>>>
>>>> __________
>>>> View the list's information and change your settings at
>>>> //www.freelists.org/list/programmingblind
>>>>
>>>>
>>>> __________
>>>> View the list's information and change your settings at
>>>> //www.freelists.org/list/programmingblind
>>>>
>>>
>>> __________
>>> View the list's information and change your settings at
>>> //www.freelists.org/list/programmingblind
>>>
>>>
>>> __________
>>> View the list's information and change your settings at
>>> //www.freelists.org/list/programmingblind
>>>
>>
>> __________
>> View the list's information and change your settings at
>> //www.freelists.org/list/programmingblind
>>
>>
>> __________
>> View the list's information and change your settings at
>> //www.freelists.org/list/programmingblind
>>
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: