Chapter 1: Problem 16
The rules that must be followed when constructing a program are called __________.
Chapter 1: Problem 16
The rules that must be followed when constructing a program are called __________.
All the tools & learning materials you need for study success - in one app.
Get started for freeThe two general categories of software are ______and______.
Sales Tax Write high-level and detailed psuedocode for a program that calculates the total of a retail sale. The program should ask the user for • The retail price of the item being purchased • The sales tax rate Once these items have been entered, the program should calculate and display • The sales tax for the purchase • The total of the sale
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.
Before 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.
What is the difference between a syntax error and a logical error?
What do you think about this solution?
We value your feedback to improve our textbook solutions.