Programming Assignment: Car Repair For this programming assignment, create a car repair program that prompts the user to enter information about a customer, the customer's vehicle, and the work performed on the customer's vehicle. Your program should then display the final car repair bill on the computer screen. Your program should accomplish the following: 1. Prompt the user to enter the following information: a. Information about the customer (name, street address, city, state, zip code, phone number). b. Information about the customer's vehicle (make, model, year). c. Information about the work performed (brief description, labor hours needed, cost of parts). 2. Use a labor cost amount of $100.00 per hour and a sales tax rate of 7.0%. 3. Calculate the following: Variable subtotal sales tax total repair bill amount Formula subtotal = labor cost per hour * number of labor hours sales tax = sales tax rate * subtotal total repair bill amount = subtotal + sales tax 4. A screen shot of a sample run for this program is shown below. Design your program so it looks exactly like the one shown in the screenshot. Use two fixed-point decimal places for all numeric output (cout << setprecision(2) << fixed). Use left and right stream manipulators to align all string and numeric output exactlv as it is shown in the screen shot.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
**Car Repair Program Educational Script**

*Welcome to the Car Repair Program!*

This script demonstrates an example of a car repair program output. Follow the steps and observe how customer information, vehicle information, and work details are entered and processed to generate a detailed receipt.

---

### Step-by-Step Breakdown

1. **Customer Information Entry:**
   - **Name:** John Taylor
   - **Street Address:** 376 Nelson Drive
   - **City:** Riverside
   - **State:** WY
   - **ZIP Code:** 87999
   - **Phone Number:** 555-55-5555

2. **Vehicle Information Entry:**
   - **Make:** Nissan
   - **Model:** Titan SU
   - **Year:** 2016

3. **Work Performed Entry:**
   - **Description of Work Performed:** Replaced alternator
   - **Number of Labor Hours:** 5
   - **Cost of Parts:** $315.75

---

### Receipt Generation

**RECEIPT**

---

#### Customer Information

- **Customer Name:** John Taylor
- **Street Address:** 376 Nelson Drive
- **City:** Riverside
- **State:** WY
- **ZIP Code:** 87999

#### Vehicle Information

- **Make:** Nissan
- **Model:** Titan SU
- **Year:** 2016

#### Work Performed

- **Description:** Replaced alternator
- **Parts Cost:** $315.75
- **Labor:** 5.0 hours at $50 per hour
- **Subtotal:** $565.75
- **Sales Tax:** $50.18
- **Total:** $615.93

---

The process shows how data is collected, processed, and displayed in a structured format. This example includes detailed customer information, vehicle details, and specific work performed on the vehicle, resulting in a comprehensive receipt.

*Note: Process exited after 61.55 seconds with return value 0. Press any key to continue...*
Transcribed Image Text:**Car Repair Program Educational Script** *Welcome to the Car Repair Program!* This script demonstrates an example of a car repair program output. Follow the steps and observe how customer information, vehicle information, and work details are entered and processed to generate a detailed receipt. --- ### Step-by-Step Breakdown 1. **Customer Information Entry:** - **Name:** John Taylor - **Street Address:** 376 Nelson Drive - **City:** Riverside - **State:** WY - **ZIP Code:** 87999 - **Phone Number:** 555-55-5555 2. **Vehicle Information Entry:** - **Make:** Nissan - **Model:** Titan SU - **Year:** 2016 3. **Work Performed Entry:** - **Description of Work Performed:** Replaced alternator - **Number of Labor Hours:** 5 - **Cost of Parts:** $315.75 --- ### Receipt Generation **RECEIPT** --- #### Customer Information - **Customer Name:** John Taylor - **Street Address:** 376 Nelson Drive - **City:** Riverside - **State:** WY - **ZIP Code:** 87999 #### Vehicle Information - **Make:** Nissan - **Model:** Titan SU - **Year:** 2016 #### Work Performed - **Description:** Replaced alternator - **Parts Cost:** $315.75 - **Labor:** 5.0 hours at $50 per hour - **Subtotal:** $565.75 - **Sales Tax:** $50.18 - **Total:** $615.93 --- The process shows how data is collected, processed, and displayed in a structured format. This example includes detailed customer information, vehicle details, and specific work performed on the vehicle, resulting in a comprehensive receipt. *Note: Process exited after 61.55 seconds with return value 0. Press any key to continue...*
### Programming Assignment: Car Repair

For this programming assignment, create a car repair program that prompts the user to enter information about a customer, the customer's vehicle, and the work performed on the customer’s vehicle. Your program should then display the final car repair bill on the computer screen.

#### Your program should accomplish the following:

1. **Prompt the user to enter the following information:**
    - Information about the customer (name, street address, city, state, zip code, phone number).
    - Information about the customer’s vehicle (make, model, year).
    - Information about the work performed (brief description, labor hours needed, cost of parts).

2. **Use a labor cost amount of $100.00 per hour and a sales tax rate of 7.0%.**

3. **Calculate the following:**

   | Variable           | Formula                                                       |
   |--------------------|---------------------------------------------------------------|
   | subtotal           | subtotal = labor cost per hour * number of labor hours        |
   | sales tax          | sales tax = sales tax rate * subtotal                         |
   | total repair bill amount | total repair bill amount = subtotal + sales tax              |

4. **A screen shot of a sample run for this program is shown below. Design your program so it looks _exactly_ like the one shown in the screenshot. Use two fixed-point decimal places for all numeric output (`cout << setprecision(2) << fixed`). Use _left_ and _right_ stream manipulators to align all string and numeric output _exactly_ as it is shown in the screen shot.**

   ![Sample Run](https://via.placeholder.com/450)

In the screenshot, the final output should display aligned text and numerical values formatted to two decimal places. This ensures readability and accuracy in the representation of the car repair bill details.
Transcribed Image Text:### Programming Assignment: Car Repair For this programming assignment, create a car repair program that prompts the user to enter information about a customer, the customer's vehicle, and the work performed on the customer’s vehicle. Your program should then display the final car repair bill on the computer screen. #### Your program should accomplish the following: 1. **Prompt the user to enter the following information:** - Information about the customer (name, street address, city, state, zip code, phone number). - Information about the customer’s vehicle (make, model, year). - Information about the work performed (brief description, labor hours needed, cost of parts). 2. **Use a labor cost amount of $100.00 per hour and a sales tax rate of 7.0%.** 3. **Calculate the following:** | Variable | Formula | |--------------------|---------------------------------------------------------------| | subtotal | subtotal = labor cost per hour * number of labor hours | | sales tax | sales tax = sales tax rate * subtotal | | total repair bill amount | total repair bill amount = subtotal + sales tax | 4. **A screen shot of a sample run for this program is shown below. Design your program so it looks _exactly_ like the one shown in the screenshot. Use two fixed-point decimal places for all numeric output (`cout << setprecision(2) << fixed`). Use _left_ and _right_ stream manipulators to align all string and numeric output _exactly_ as it is shown in the screen shot.** ![Sample Run](https://via.placeholder.com/450) In the screenshot, the final output should display aligned text and numerical values formatted to two decimal places. This ensures readability and accuracy in the representation of the car repair bill details.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education