progamming assignment 2 - April Van Slyke Programming...

This preview shows page 1 - 3 out of 3 pages.

April Van Slyke Programming project 2 Exercise 40 page 87 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim a, r, THR As Double a = CDec(TextBox1.Text) r = CDec(TextBox2.Text) THR = (0.7 * (220 - a) + 0.3 * r) TextBox3.Text = "Your THR is " & THR & " beats per minute." End Sub End Class Project #2 Dim int As Double Dim hourLabor As Double Dim costPartSupplies As Double Dim nameCustomer As String Dim costPartSuppliesTaxed As Double Dim costLabor As Double Dim costTotal As Double Dim strCostPartSuppliesTaxed As String Dim strCostLabor As String Dim strCostTotal As String Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click int = 0.05 nameCustomer = CStr(TextBox1.Text) hourLabor = CDbl(TextBox2.Text) costLabor = Math.Round((hourLabor * 35), 2) costPartSupplies = CDbl(TextBox3.Text) costPartSuppliesTaxed = Math.Round((costPartSupplies * (1 + int)), 2) costTotal = Math.Round((costPartSuppliesTaxed + costLabor), 2) strCostPartSuppliesTaxed = (costPartSuppliesTaxed).ToString("C") strCostLabor = (costLabor).ToString("C")
Image of page 1

Subscribe to view the full document.

Image of page 2
Image of page 3

{[ snackBarMessage ]}

Get FREE access by uploading your study materials

Upload your study materials now and get free access to over 25 million documents.

Upload now for FREE access Or pay now for instant access
Christopher Reinemann
"Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

Ask a question for free

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern