Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Submit a zip or rar file containing the following two file. Dev - C + + file with the running code Question The owner of

Submit a zip or rar file containing the following two file.
Dev-C++ file with the running code
Question
The owner of a shop in your neighborhood needs an invoice generation program. You are required to write a C++ program that will prompt the user for the quantity of one type of items bought and the unit price and print the Invoice. The program should be such that:
a. The user can enter a tax percent (VAT).
[3 marks]
b. A 5% discount is deducted before the vat calculation if the customer is buying items worth over GHc 500.[3 marks]
c. A 10% discount is deducted before the vat calculation if the customer is buying items worth over GHc 1000.
[3 marks]
d. A 15% discount is deducted before the vat calculation if the customer is buying items worth over GHc 1500.
[3 marks]
e. The quantity of items is printed.
[3 marks]
f. The unit price is printed.
[3 marks]
g. The price with tax excluded is printed.
[3 marks]
h. The discount amount is printed.
[3 marks]
i. The vat amount is printed.
[3 marks]
j. The total amount payable by the customer is printed.
[7 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago