Module 2.docx - 3 Assume that speed = 10 and miles = 5 What...

This preview shows page 1 out of 1 page.

3. Assume that speed = 10 and miles = 5. What is the value of each of the following expressions? a. speed + 12 – miles * 2 =12 b. speed + miles * 3 =25 c. (speed + miles) * 3 =45 d. speed + speed * miles + miles = 65 e. (10 – speed) + miles / miles = 1 5a. Draw the hierarchy chart and then plan the logic for a program needed by Hometown Bank. The program determines a monthly checking account fee. Input includes an account balance and the number of times the account was overdrawn. The output is the fee, which is 1 percent of the balance minus 5 dollars for each time the account was overdrawn. Use three modules. The main program declares global

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture