Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Pt1420 final

21/12/2020 Client: saad24vbs Deadline: 2 Day

PT1420: Modules in Flowchart and Visual Basic


Page 1


This lab requires you to think about the steps that take place in a program by designing a


flowchart. Use an application such as Raptor or Visio. Read the following program prior to


completing the lab.


Data Communications Corp wants a small program that will calculate the cost of UTP it


installs for their clients. Write a program that will ask the user to input the name of the


client and the number of feet of cable installed. The program should then calculate and


display a final bill. Cost per foot of UTP is .21 cents. Be sure to add on a tax of 6%. Final


bill should include the total cost and client name. Be sure to add modules to your


program.


Step 1: In main, create a module called declareVariables() that will set your variables to 0 or “ “.


Click the Call Symbol on the Left and Drag and Drop to the flow lines between Start and Stop.


Double click on the Call Symbol and type the name of your first module. For example, type


declareVariables in the Enter Call box. Do not put the ( ) when using Raptor. Click the Done


button. A new box will pop up that will ask you to create a new tab. Click Yes. A new tab will be


created for your new method. Notice the new Tab called declareVariables.


Watch the Help Video 4-2 to see how to add modules and initialize variables in Raptor and


Visio.


PT1420: Modules in Flowchart and Visual Basic


Page 2


Step 2: Continue this process to add your additional methods, which are inputData(),


calcCosts(), and displayBill(). Main should look like this:


In Raptor


In Visio


Start


End


declareVariables()


inputData()


calcCosts()


displayBill()


Step 3: Click on the inputData module and add the necessary code to input clientName and


feetUTP. Watch the Help Video 4-2 to see how to input variables in Raptor and Visio.


Step 4: Click the calcCosts module and add the necessary code to compute calculations. Watch


the Help Video 4-2 to see how to add calculations in Raptor and Visio.


Step 5: Click the displayBill module and add the necessary code to display the clientName and


totalCost to the screen. Watch the Help Video 4-2 to see how to display variables in Raptor and


Visio.


PT1420: Modules in Flowchart and Visual Basic


Page 3


Step 6: If you are using Raptor, you can run your program. Click Run, then Execute to Finish. For


your input, enter a client name such as Bumpco Inc and 3758 feet of cable installed. If your


program is coded correctly, the output should be as follows:


The clients name is Bumpco Inc


The final cost is $836.5308


----Run complete.


Step 7: The final step is to insert your finished flowchart into a Word document. Inside Raptor,


select File and the Print to Clipboard from the menu. Inside your Word document, select Edit


and Paste. You will have to do this for each module you created. In Visio, select Edit and then


Copy Drawing. Inside your Word document, select Edit and Paste.


Use the flowchart you just created to write the program in Visual Basic, console application


using modules.


Step 8: Setup environment


a. Launch Visual Studio. Go to Start All Programs Microsoft Visual Studio 2010


Professional


b. Create a new project by going to file  New project


c. Choose Visual Basic and a Console Application


d. In the Name box type “Lab3.2_studentFname_studentLname” (use your name)


e. Click Ok


f. In module1.vb note you are given the shell of the main module for this program as


shown below. This module will execute when the program is executed and make calls to


other modules you will create.


Module Module1


Sub Main()


End Sub


PT1420: Modules in Flowchart and Visual Basic


Page 4


End Module


Your module looks like this:


Step 9: Inside Sub Main(), declare your variables for this program. This should include the


following declarations:


Dim clientName As String = "NO VALUE"


Dim feetUTP As Double = 0


Dim subTotal As Double = 0


Dim taxCost As Double = 0


Dim totalCost As Double = 0


Your module looks like this:


PT1420: Modules in Flowchart and Visual Basic


Page 5


Step 10: After the End Sub command in main, add a new module for inputData(). This should


look like:


Sub inputData(ByRef clientName As String, ByRef feetUTP As Double)


The End Sub command will automatically be added. clientName and feetUTP are passed


using the ByRef command because you need to retain the value of the variable. Your


module looks like this:


Inside the module, add the following:


Console.Write("Enter the clients name: ")


clientName = Console.ReadLine()


Console.Write("Enter the number of feet of UTP installed: ")


feetUTP = Console.ReadLine()


PT1420: Modules in Flowchart and Visual Basic


Page 6


This allows the use to enter the necessary data. Your module looks like this:


Step 11: Below that module, add a new module for calcCosts(). Pass feetUTP as ByVal, and


subTotal, taxCost, and totalCost as ByRef. Inside this module, process your calculations for


subTotal, taxCost, and totalCost.


subtotal = 0.21 * feetUtp


taxcost = subtotal * 0.06


totalcost = taxcost + subtotal


PT1420: Modules in Flowchart and Visual Basic


Page 7


Your module looks like this:


PT1420: Modules in Flowchart and Visual Basic


Page 8


Step12: Below that module, add a new module for finalBill(). Pass clientName and totalCost as


ByVal. Remember, ByRef is only needed if you are changing the value of a variable in a module.


Because we are simply using the value of the variable in this case, ByVal works more efficiently.


Inside the module, use Console.WriteLine() to display the values of the variables. Your module


looks like this:


Step 13: In Main () under the variable declarations, add your module calls, passing the


appropriate variables such as:


inputData(clientName, feetUTP)


calcCosts(feetUTP, subTotal, taxCost, totalCost)


finalBill(clientName, totalCost)


PT1420: Modules in Flowchart and Visual Basic


Page 9


You might also include a pause by adding the following:


Console.Write("Press enter to continue...")


Console.ReadLine()


Your module looks like this:


PT1420: Modules in Flowchart and Visual Basic


Page 10


Step 14: Execute your program so that it works and paste the final code below. Sample output


might look like:


PT1420: Modules in Flowchart and Visual Basic


Page 11


Step 15: Submit the Visual Basic code as a compressed (zipped) folder using the following steps:


a. Open Windows Explorer --> Start --> All Programs --> Accessories --> Windows Explorer.


Your Windows Explorer might look as follows:


b. In Windows Explorer, navigate to the folder that contains your project files. Your


Windows Explorer might look as follows:


PT1420: Modules in Flowchart and Visual Basic


Page 12


(If you don't recall you can check in Visual Studio by opening your project, right click


module1.vb file and view the properties. Look at the full path ex.


C:\Users\instructor\Documents\Visual Studio


2010\Projects\myFirstProgram\myFirstProgram\Module1.vb; in this case navigate to


C:\Users\instructor\Documents\Visual Studio 2010\Projects). Your module properties


might look as follows:


c. Right click on your project folder and choose send to --> compressed folder. This creates


a zip file of all your code. Your Windows Explorer might look as follows:


PT1420: Modules in Flowchart and Visual Basic


Page 13


d. Attach the compressed folder you created to your submission. Your Windows Explorer


might look as follows:


Applied Sciences

Architecture and Design

Biology

Business & Finance

Chemistry

Computer Science

Geography

Geology

Education

Engineering

English

Environmental science

Spanish

Government

History

Human Resource Management

Information Systems

Law

Literature

Mathematics

Nursing

Physics

Political Science

Psychology

Reading

Science

Social Science

Home

Blog

Archive

Contact

google+twitterfacebook

Copyright © 2019 HomeworkMarket.com

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

University Coursework Help
Helping Hand
Top Essay Tutor
Writer Writer Name Offer Chat
University Coursework Help

ONLINE

University Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$62 Chat With Writer
Helping Hand

ONLINE

Helping Hand

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$60 Chat With Writer
Top Essay Tutor

ONLINE

Top Essay Tutor

I have more than 12 years of experience in managing online classes, exams, and quizzes on different websites like; Connect, McGraw-Hill, and Blackboard. I always provide a guarantee to my clients for their grades.

$65 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Tienes que mostrármelos. - An introduction to law and legal reasoning pdf - Dhashvanth name meaning in tamil - Small moment story ideas - Bus8 - Lab repoert - The hive royal edinburgh hospital - Blood brothers edward key quotes - Board game project rubric - Primary Source Board - Financial ratio analysis example case study - Ethical teachings of beatitudes - Choosing a career path worksheet - What is hacking ppt - Infant soap note example - Significant event analysis form - Assignment (ECE 203) Due in 24 hours - Computer curriculum for primary schools - Determination of copper in brass lab report - Ethical and Legal Implications of Prescribing Drugs - Mercantile credit co v garrod - Flinders university site map - Ergonomic risk assessment template - Final Paper/ Art - The charted connections of rock - Choosing a pip topic - Pat by john ahearn and rigoberto torres - BU204 Assignment 3 - Introduction to humanities arts and social science - Insights Into Criminal Behavior - Principles Of Accounting II Assignment VI - Lacy construction has a noncontributory - Musee des beaux arts analysis essay - Research 1234 - Brat barrel racing results - Think social psychology duff 2012 - Target corporation case study pdf - TALLER 1 QYLE - SOCW 6361 Week 10 - Post Responses - What are the four types of market structures - Give em the pickle 4 principles - Table of standard reduction potentials - Bus 499 peregrine assessment answers - Canterbury tales vocabulary list - The management of osborn corporation is investigating an investment - Optics Lab - Biology discussion due in 18 hours - Optima compact alarm panel - Nursing care plan - Scsa media production and analysis - 2 Discussions - 2 Problem sets - Components arriving at a distributor are checked for defects - 31 payne street coleraine - Strategies X2 ( Due 24 hours) - Break even point exercises and answers - Behind bars rookie year lilly rodriguez correctional officer - King james video ministries - American History - Sacred heart church oakleigh mass times - Ueeneeg197a ueeneeg122a and ueeneeg123a online - Tri-state bank and trust is considering giving josef company a loan - Who narrates the book thief - 87.5 as a fraction - Examples of exemplars in forensic science - Learning curve calculator spreadsheet - Studiolo from the ducal palace in gubbio - Spring snow crabapple tree fall color - Freedom stockholm entertainment unit - Week 12 assignment NS - Which mission statement best represents the digby - Strategic management texts and cases - 2014 hsc maths ext 1 - Scottex precision textiles ltd - A pan balance is used to measure - Appreciation of the poem mother to son by langston hughes - O as a amos ais an - Supporting material definition - Netflix global expansion strategy - Great gatsby last line meaning - KenoshaW - Random Question. - Cafs year 11 syllabus - Find the equation of the parabola described - Introduction to signals and systems edward w kamen - Ridgecrest school dispute teachers association position - Current quarter's adjustment for fractions of cents - How to do piecewise functions on ti nspire cx - Word stacks level 207 science fiction - Gdp per capita 2017 usa - What is marriage? 500 words - Chapter 5 accounting for merchandising operations test bank - Discussion - Improving your writing penn foster exam - Lm555 timer datasheet pdf - Business ethics - Root word obstetr o means - Ionic bonding worksheet doc - What Are The Drawbacks Of Employing A Write My Assignment For Me Service? - Jamsa (2013) textbook as your ONLY source, respond to the following: - Calculus 2 taylor series