Page1 / 6

Lab 7.1 - 7.6 Accumulation and Loops - Scott Cumston...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Lab 7.1 - 7.6 Accumulation and Loops

Lab 7.1 - 7.6 Accumulation and Loops - Scott Cumston...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Scott Cumston 2/7/2013 PT1420 Thursday 165 Introduction to Programming Instructor: David Brown Unit 7 Labs 7.1: Condition-Controlled with While and Do-While Loops: Pseudocode Step 2: Module main ( ) // Declare local variables Declare String clientName = “ Declare Real feetUTP = 0 Declare Real subtotal = 0 Declare Real taxCost = 0 Declare Real totalCost = 0 Declare String keepGoing = “y” //Start While loop While keepGoing ==”y” Call inputData ( feetUTP, clientName) Call calcCosts (feetUTP, subTotal, taxCost, totalCost) Call displayBill (clientName, totalCost) Display “Would you like to continue” Display “Press (y) to continue “ End While End Module
Background image of page 1

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

View Full DocumentRight Arrow Icon
Scott Cumston 2/7/2013 PT1420 Thursday 165 Introduction to Programming Instructor: David Brown Unit 7 Labs 7.2: Condition-Controlled with While and Do-While Loops: Flowchart
Background image of page 2
Scott Cumston 2/7/2013 PT1420 Thursday 165 Introduction to Programming Instructor: David Brown Unit 7 Labs 7.3: Count Controlled with While and Do-while Loops: Pseudocode
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online