67%(3)2 out of 3 people found this document helpful
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 =12b. speed + miles * 3 =25c. (speed + miles) * 3 =45d. speed + speed * miles + miles= 65e. (10 – speed) + miles / miles = 15a. 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 numberof 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