
Write a C
a. the length and the width of the carpet in feet
b. the carpet price per square foot
c. the percent of discount for each customer
The labor cost is fixed at
The program's design should use main and at least the six functions described below:
a. Read data from the keyboard. This function is to use addresses to read all data and place them in the calling function's variables.
b. Calculate values. This function calls three subfunctions. Each function is to use addresses to store their results.
c. Print the result. Use two subfunctions to print the results: one to print the measurements, and one to print the charges.
Test your program with the test data shown in Table 4-3.

Want to see the full answer?
Check out a sample textbook solution
Chapter 4 Solutions
Computer Science: A Structured Programming Approach Using C, Third Edition
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,


