Copies of Lab 4.3 and 4.4

Copies of Lab 4.3 and 4.4 - Thaddeus Reese PT 1420 Mr...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Thaddeus Reese PT 1420 Mr. Meadows 7/25/2015 Lab 4.3 Visual Basic and Modules Module Module! Sub Main() Dim clientName As String 2 "NO VALUE” Dim feetUTP As Double = 6 Dim subTotal As Double : 6 Dim taxCost As Double = 9 Dim totalCost As Double = o inputData(clientName, feetUTP) calcCosts(teetUTP, subTotal, taxCost, totalCost) finalBill(clientNameJ totalCost) Coneele.white("Press enter to continue...”) fon§u3e.ReadLine() End Sub Sub inputData(8yRef clientName As String, ByRef teetUTP As Double) Console.Wnite(”Enten the client’s name: ") clientName = Consele.ReadLine() Censole.write(“Enter the number of Feet of UTP installed: “) FeetUTP : fenSole.ReadLine() 'End Sub Sub calcCosts(ByVal feetUTP As Double, ByRef subTotal As Double, ByRet taxCost As Double, ByReF totalCost As Double) subTotal : feetUTP * 8.21 taxCost : subTotal * 6.96 totalCost = subTotal + taxCost End Sub Sub finalBill(ByVal clientName As StringJ ByVal totalCost As String) Congole.write("The client's name is ” & clientName) clientName = Console.ReadLine() Censole.Nnite(”The final cost is S“ & totalCost) totalCost : feneele.ReadLine() End Sub End Module Enter the client’s name: Thad's Building Supplies Enter the number of feet of UTP installed: 266 The client’s name is Thad's Building Supplies The final cost is $57.875 Press enter to continue... Thaddeus Reese PT 1420 Mr. Meadows 7/25/2015 Lab 4.4 Challenge: Ping and Website Launches Module Meeulei Sub Main() pineMe() finalOutput() Censole.Write("Press enter to continue...“) {emu}: 2-». Read() openWebsite() End Sub Sub pingMe() Shell("Ping.exe 127.9,8.1”, , True) End Sub Sub opeaWebsite() Dim myTargetURL As String = “http:f/ ” System.Diagnostics.Precess.Start(myTargetURL) End Sub Sub FinalOutput() Console.Write 7 ("Completed an explanation of what this program does“ _ & “The Shell function and ping.exe test whether or not a device such as a router, server or switch is contactable." _ & "Dim is how we declare a varible and allocate space before we can use it,” {ensoie.Read() End Sub End Module Pinging 127.6.6.1 with 32 bytes of data: Reply from 127.8.9.1: bytes=32 time<1ms TTL=128 Reply From 127.6.e.1: bytes=32 time<1ms TTL=128 Reply from 127.6.6.1: bytes=32 time<1m5 TTL:128 Reply from 127.8.6.1: bytes:32 time<1ms TTL=128 Ping statistics for 127.3.e.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli—seconds: Minimum = ems, Maximum = ams, Average ; ems Completed an explanation of what this program doesThe Shell function and ping.ex e test whether or not a device such as a router, server or switch is contactable .Dim is how we declare a varible and allocate space before we can use it. ...
View Full Document

{[ snackBarMessage ]}

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