Input shipping address 73 display shipping address 74

This preview shows page 7 - 8 out of 8 pages.

                    Input shipping address 73                     Display “Shipping address” 74           Else  75                     Display “Books will be held for store pickup at your earliest connivance” 76                     Display “There are no shipping charges”      77           End if 78 End Module 79 80 Module displayorderData () 81      //Display the order data 82      Declare Real Total order 83      Set Total order = Total books + Total shipping 84      Display “Here is your order” 85      Display “Total books $”, Total books 86      Display “Total shipping $”, Total shipping 87      Display “Total order $”, Total order 88 End Module 89 90 Module getcreditcardNumber () 91      // Get users credit card account number from user 92      Declare Integer Credit Card Account Number [SIZE] 93      Declare Integer index 94      Declare Boolean found 95      Declare Constant Integer SIZE = 1 96      Set index = 0 97           For index = 0 To SIZE -1
Image of page 7

Subscribe to view the full document.

Individual: University Project: Problem Solving with Algorithms 8 98                     Display “Enter the Credit Card number you wish to use”, index + 1 99                     Input Credit Card number [index] 100           End For 101      // Step through the array searching for the credit card number entered by the user 102      Set found = False 103      Set index = 0 104           While found == False AND index <= size – 1 105                     If Credit Card number [index] == Card number entered, Then 106                     Set found = True 107                     Display “The Credit Card number enter is valid” 108           Else 109                     Set index = index + 1 110                     Display “The Credit Card number entered is invalid please enter a valid Credit Card 111                     Number” 112           End if 113      End while 114 End Module 115 116 END
Image of page 8
You've reached the end of this preview.
  • Fall '12
  • NEILG.JACOBSON

{[ 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