{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# VB Exercise 6-3 - Exercise 6-3.I was a little slow posting...

This preview shows pages 1–3. Sign up to view the full content.

Exercise 6-3 ….I was a little slow posting last week. It was Income Tax time and took priority over all else. IT is done now so I can get back to what I love. This exercise from several days ago asks us to create an order form that will take the number of spools of wire ordered and output the total cost of the order. Total Cost is based a charge of \$100/spool and several different shipping charges based on the urgency of the order. \$10/spool for Regular, \$15/spool for Rush, \$20/spool for Super Rush delivery Start Program Code Public Class Form1 ’Notice that I did not use the ControlChars library this time Private Sub btnExit_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Me .Close() End Sub Private Sub btnClearForm_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClearForm.Click ResetSpools() ResetDelivery() End Sub Private Sub btnCalculate_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click Dim NumSpoolsOrdered As Integer

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Dim NumInStock As Integer Dim NumReady As Integer Dim NumBackOrdered As Integer Dim SandHCost As Decimal Dim TotDue As Decimal Try NumSpoolsOrdered = CInt (txtSpoolsOrdered.Text) Catch ex As Exception MessageBox.Show( "Spools Ordered must be 1 or more. Try Again"
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern