Chapter 3: Problem 41
include
Chapter 3: Problem 41
include
All the tools & learning materials you need for study success - in one app.
Get started for freeA retail store grants its customers a maximum amount of credit. Each customer's available credit is his or her maximum amount of credit minus the amount of credit used. Write a pseudocode algorithm for a program that asks for a customer's maximum amount of credit and amount of credit used. The program should then display the customer's available credit.
Complete the following table by writing the value of cach expression in the Value column. $$\begin{array}{ll} \text { Expression } & \text { Value } \\ \hline 28 / 4=2 & \\ 6+12 \cdot 2-8 & \\ 4+8 \cdot 2 & \\ 6+17 \times 3-2 & \\ 2+22 \cdot(9-7) & \\ (8+7) \cdot 2 & \\ (16+7) \times 2 \cdot 1 & \\ 12 /(10-6) & \\ (19-3) \cdot(2+2) / 4 & \end{array}$$
Write a definition statement for a character array named city. It should be large enough to hold a string 30 characters in length.
Write a cout statement so the variable totalAge is displayed in a field of 12 spaces, in fixed point notation, with a precision of 4 decimal places.
Write a cout statement so the variable divsales is displayed in a field of 8 spaces, in fixed point notation, with a precision of 2 decimal places. The decimal point should always be displayed.
What do you think about this solution?
We value your feedback to improve our textbook solutions.