Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C + + program to create an invoice for the ChirtoscCollege Advance Technology Building CIS computer mobile lab for 2 0 2 4

Write a C++ program to create an invoice for the ChirtoscCollege Advance Technology Building CIS computer mobile lab for 2024-25. CIS Department and/or computer related clubs often wish to host events where only rooms available have no computers for participants/students.
Request include the following. Dell XPS 15 Laptops Dell XPS 15" Laptopwith Windows 11 Pro at $1649.00 each. A charging cart to store charge, and easily move the computers costing LocknCharge Joey 30 Storage for laptops at $949.00 each. For every 30 laptops one of these would need to be ordered, but this value is intended to be input and not calculated as we did in Lab 2. Disposable Earbuds Plug-in earbuds at 1.29 each.
ZOWEETEK ZW-Z258 Portable Rechargeable Mini Voice Amplifier at $35.99. Wired USB Computer Mouse at $7.19 each.
Input
Prompt the user and input for the quantity of each product ordered.
Sample run showing input from user:
How many Dell XPS 15 Laptops? 25
How many carts for charging and storing computers? 1
How many earbuds ordered? 120
How many microphones ordered? 3
How many wired usb mouses ordered? 50
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.
Output
Format for output as shown below.
QTY Description Unit Price Total Price
XXX CHARGE & STORAGE CARTS XXXX.XX XXXXXX.XX
XXX DELL XPS 15 LAPTOPS XXXX.XX XXXXXX.XX
XXX DISPOSABLE EARBUDS XXXX.XX XXXXXX.XX
XXX MICROPHONE XXXX.XX XXXXXX.XX
XXX WIRED USB MOUSE XXXX.XX XXXXXX.XX
SUBTOTAL XXXXXX.XX
TAX XXXXX.XX
TOTAL XXXXXX.XX
Sample output
QTY Description Unit Price Total Price
1 CHARGE & STORAGE CARTS 949.00949.00
25 DELL XPS 15 LAPTOPS 1649.0041225.00
120 DISPOSABLE EARBUDS 1.29154.80
3 MICROPHONE 35.99107.97
50 WIRED USB MOUSE 7.19359.50
SUBTOTAL 42796.27
TAX 3907.30
TOTAL 46703.57
Checkpoints
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 9.13% currently for Cupertino CA
4) Use a memory constant for each unit price
5) Output must be formatted exactly as above with decimal points lined up.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions