/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Free solutions & answers for Starting Out With C++: From Control Structures through Objects Chapter 1 - (Page 3) [step by step] | 91Ó°ÊÓ

91Ó°ÊÓ

Problem 32

Draw hierarchy charts or flowcharts that depict the programs described below. (See Appendix D for instructions on creating flowcharts.) Account Balance Design a hierarchy chart or flowchart for a program that calculates the current balance in a savings account. The program must ask the user for: \(-\) The starting balance \- The total dollar amount of deposits made \- The total dollar amount of withdrawals made \(-\) The monthly interest rate Once the program calculates the current balance, it should be displayed on the screen.

Problem 33

Questions \(33-35\) are programs expressed as English statements. What would each display on the screen if they were actual programs? The variable x starts with the value 0. The variable y starts with the value 5. Add 1 to x. Add 1 to y. Add x and y, and store the result in y. Display the value in y on the screen.

Problem 34

Are programs expressed as English statements. What would each display on the screen if they were actual programs? The variable j starts with the value 10. The variable k starts with the value 2. The variable l starts with the value 4. Store the value of j times k in j. Store the value of k times l in l. Add j and l, and store the result in k. Display the value in k on the screen.

Problem 35

Are programs expressed as English statements. What would each display on the screen if they were actual programs? The variable a starts with the value 1. The variable b starts with the value 10. The variable c starts with the value 100. The variable x starts with the value 0. Store the value of c times 3 in x. Add the value of b times 6 to the value already in x. Add the value of a times 5 to the value already in x. Display the value in x on the screen.

Access millions of textbook solutions in one place

  • Access over 3 million high quality textbook solutions
  • Access our popular flashcard, quiz, mock-exam and notes features
  • Access our smart AI features to upgrade your learning
Access millions of textbook solutions in one place

Recommended explanations on Computer Science Textbooks