Chapter 3: Problem 28
include
Chapter 3: Problem 28
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 credit and amount of credit used, then calculates and displays the customer's available credit.
Assume the array name is defined as follows: char name [25] A) Using a stream manipulator, write a cin statement that will read a string into name, but will read no more characters than name can hold. B) Using the getline function, write a cin statement that will read a string into name but that will read no more characters than name can hold.
Write a definition statement for a character array named city. It should be large enough to hold a string 30 characters in length.
A bowling alley is offering a prize to the bowler whose average score from bowling three games is the lowest. Write a pseudocode algorithm for a program that inputs three bowling scores and calculates and displays their average.
Write \(C++\) expressions for the following algebraic expressions: A) \(a=12 x\) B) \(z=5 x+14 y+6 k\) C) \(y=x^{4}\) D) \(g=\frac{h+12}{4 k}\) E) \(c=\frac{a^{3}}{b^{2} k^{4}}\)
What do you think about this solution?
We value your feedback to improve our textbook solutions.