Write a program to create an invoice for the De Anza College Computer Lab when replacing electronics. CIS Department needs to replace the following periodically: External Monitor, Dell Keyboard, Dell Mouse, Windows Professional 10 OS for Dell T1700, and Network printer. The unit prices for these are $159.99, $18.30, $16.45, $199.99, and $599.89, respectively. Input Prompt the user and input for the quantity of each product ordered. Sample run showing input from user: How many External Monitor s were ordered? 3 How many Dell keyboards players were ordered? 12 How many Dell Mouse units were ordered? 5 How many Windows 10 os were ordered? 6 How many Network Printers were ordered? 7 Calculations/Processing Calculate the subtotal for each item. Catculate and the subtotal of the bill and the tax on this subtotal. Last calculate the total of subtotal plus tax. Оutрut Format the output as shown below. QTY Description Unit Price Total Price XX EXTERNAL MONITOR XXXX.XX XXXXX.XX XX DELL KEYBOARD XXXX.XX XXXXX.XX XX DELL MOUSE XXXX.XX XXXXX.XX XX WINDOWS OS XXXX.XX XXXXX.XX XX NETWORK PRINTER XXXX.XX XXXXX.XX SUBTOTAL XXXXX.XX ТАХ XXXX.XX ТОТAL XXXXX.XX

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

Using c++ computer language

**Sample Output**

| QTY | Description          | Unit Price | Total Price |
|-----|----------------------|------------|-------------|
| 3   | EXTERNAL MONITOR     | 159.99     | 479.97      |
| 12  | DELL KEYBOARD        | 18.30      | 219.60      |
| 5   | DELL MOUSE           | 16.45      | 82.25       |
| 40  | WINDOWS OS           | 199.99     | 7999.60     |
| 7   | NETWORKED PRINTER    | 599.89     | 4199.23     |

- **Subtotal:** 12980.65  
- **Tax:** 1168.26  
- **Total:** 14148.91  

---

**Checkpoints** *(Also see rubric in submission area)*

1) Include name, e-mail, and lab# as comments in code and include code to output this information to the output.

2) Minimum of five (5) comments in main()

3) Use a defined constant for the tax rate

4) Use a memory constant for each unit price

5) Output must be formatted exactly as above with decimal points lined up.
Transcribed Image Text:**Sample Output** | QTY | Description | Unit Price | Total Price | |-----|----------------------|------------|-------------| | 3 | EXTERNAL MONITOR | 159.99 | 479.97 | | 12 | DELL KEYBOARD | 18.30 | 219.60 | | 5 | DELL MOUSE | 16.45 | 82.25 | | 40 | WINDOWS OS | 199.99 | 7999.60 | | 7 | NETWORKED PRINTER | 599.89 | 4199.23 | - **Subtotal:** 12980.65 - **Tax:** 1168.26 - **Total:** 14148.91 --- **Checkpoints** *(Also see rubric in submission area)* 1) Include name, e-mail, and lab# as comments in code and include code to output this information to the output. 2) Minimum of five (5) comments in main() 3) Use a defined constant for the tax rate 4) Use a memory constant for each unit price 5) Output must be formatted exactly as above with decimal points lined up.
**Title: Dreaming of Being Back in ATC CIS Lab**

**Overview**

Write a program to create an invoice for the De Anza College Computer Lab when replacing electronics. The CIS Department needs to replace the following periodically: External Monitor, Dell Keyboard, Dell Mouse, Windows Professional 10 OS for Dell T1700, and Network Printer. The unit prices for these are $159.99, $18.30, $16.45, $199.99, and $599.89, respectively.

**Input**

Prompt the user and input for the quantity of each product ordered.

**Sample Run Showing Input from User:**

- How many External Monitors were ordered? 3
- How many Dell keyboards were ordered? 12
- How many Dell Mouse units were ordered? 5
- How many Windows 10 OS were ordered? 6
- How many Network Printers were ordered? 7

**Calculations/Processing**

Calculate the subtotal for each item. Calculate the subtotal of the bill and the tax on this subtotal. Lastly, calculate the total of subtotal plus tax.

**Output**

Format the output as shown below.

```
QTY   Description           Unit Price      Total Price
XX    EXTERNAL MONITOR      XXXX.XX         XXXXX.XX
XX    DELL KEYBOARD         XXXX.XX         XXXXX.XX
XX    DELL MOUSE            XXXX.XX         XXXXX.XX
XX    WINDOWS OS            XXXX.XX         XXXXX.XX
XX    NETWORK PRINTER       XXXX.XX         XXXXX.XX

                                SUBTOTAL      XXXXX.XX
                                TAX           XXXXX.XX
                                TOTAL         XXXXX.XX
```

This structured approach ensures clarity and accuracy in processing and managing the replacement of essential electronics for De Anza College Computer Lab.
Transcribed Image Text:**Title: Dreaming of Being Back in ATC CIS Lab** **Overview** Write a program to create an invoice for the De Anza College Computer Lab when replacing electronics. The CIS Department needs to replace the following periodically: External Monitor, Dell Keyboard, Dell Mouse, Windows Professional 10 OS for Dell T1700, and Network Printer. The unit prices for these are $159.99, $18.30, $16.45, $199.99, and $599.89, respectively. **Input** Prompt the user and input for the quantity of each product ordered. **Sample Run Showing Input from User:** - How many External Monitors were ordered? 3 - How many Dell keyboards were ordered? 12 - How many Dell Mouse units were ordered? 5 - How many Windows 10 OS were ordered? 6 - How many Network Printers were ordered? 7 **Calculations/Processing** Calculate the subtotal for each item. Calculate the subtotal of the bill and the tax on this subtotal. Lastly, calculate the total of subtotal plus tax. **Output** Format the output as shown below. ``` QTY Description Unit Price Total Price XX EXTERNAL MONITOR XXXX.XX XXXXX.XX XX DELL KEYBOARD XXXX.XX XXXXX.XX XX DELL MOUSE XXXX.XX XXXXX.XX XX WINDOWS OS XXXX.XX XXXXX.XX XX NETWORK PRINTER XXXX.XX XXXXX.XX SUBTOTAL XXXXX.XX TAX XXXXX.XX TOTAL XXXXX.XX ``` This structured approach ensures clarity and accuracy in processing and managing the replacement of essential electronics for De Anza College Computer Lab.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Introduction to computer system
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.
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