Chapter 1: Problem 21
__________ is information a program sends to the outside world.
Chapter 1: Problem 21
__________ is information a program sends to the outside world.
All the tools & learning materials you need for study success - in one app.
Get started for freeBefore a programmer can design a program he or she must have some basic knowledge about the domain, or area, the program will deal with and must understand exactly what it is that the client wants the program to do. Otherwise the final program may not work correctly or may not meet the client’s needs. Suppose one of your friends, who paints the insides of houses, has asked you to develop a program that determines and displays how much paint is needed to paint a room if the length and width of the room is input. What information are you lacking that you need to write this program? Write at least three questions that you would need to ask your friend before starting the project.
Words or names defined by the programmer are called _________.
Account Balance Write high-level and detailed psuedocode for a program that calculates the current balance in a bank 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 Once the program calculates the current balance, it should be displayed on the screen.
Both main memory and secondary storage are types of memory. Describe the difference between the two.
Available Credit Design a hierarchy chart for a program that calculates a customer’s available credit. The program should carry out the following steps: 1\. Display the message “Enter the customer’s maximum credit.” 2\. Wait for the user to enter the customer’s maximum credit. 3\. Display the message “Enter the amount of credit used by the customer.” 4\. Wait for the user to enter the customer’s credit used. 5\. Subtract the used credit from the maximum credit to get the customer’s available credit. 6\. Display a message that shows the customer’s available credit.
What do you think about this solution?
We value your feedback to improve our textbook solutions.