Lab 7.1 - 7.6 accumulation and loops

Lab 7.1 - 7.6 Accumulation and Loops
Download Document
Showing pages : 1 - 3 of 6
This preview has blurred sections. Sign up to view the full version! View Full Document
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
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
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.