Lab 4.1 Pseudocode and Modules

Lab 4.1 Pseudocode and Modules - 12.Input feetUTP End...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Thaddeus Reese PT 1420 Mr. Meadows 7/25/2015 Lab 4.1 Pseudocode and Modules Module main ( ) //Declare local variables 1. Declare String clientName 2. Declare Real feetUTP 3. Declare Real subTotal 4. Declare Real taxCost 5. Declare Real totalCost //Module calls 6. Call inputData ( ) 7. Call calcCost ( ) 8. Call displayBill End Module //this module takes in the required user input. There will //be a display and input for each variable Module inputData(Real Ref feetUTP, String Ref clientName) 9. Display “Enter Client Name” 10. Input clientName 11. Display “Feet of UTP Installed”
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 12.Input feetUTP End Module //this module calculates subTotal, taxCost, and totalCost //you also need feetUTP passed in to calculate subTotal Module calcCosts 13. Real feetUTP, Real ref subtotal, Real ref taxCost, Real ref totalCost 14. Set subtotal = feetUTP * .21 15. Set taxCost = subtotal * .06 16. Set totalCost = subtotal + taxCost End Module //this module displays clientName and totalCost Module displayBill 17. Real ref clientName, Real ref totalCost 18. Display “Total Cost” 19. Input totalCost End Module...
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