(Solved) : Abc Company Dealing Supplying Different Types Cements Twiga Simba Dangote Etc Company Acq Q44137835 . . .
- ABC Company is dealing with supplying of different types ofcements (Twiga, Simba, Dangote etc.). The Company acquires cementsfrom wholesale distributors/companies and supplies to its customers(individuals/companies). In each year, the company needs to knowthe quantity, tax and profit for each cement type supplied to itsprospective customers.
It requires a computer programthat keeps record and gives report on the purchasing and sellingcosts of individual 50kg cement bags and their correspondingquantities supplied per year e.g. 2019. In addition, theprogram should report the tax paid and the net profit made forindividual cement types supplied to its customers in thatyear.
- Tax payments is done based on the following conditions:
(i) If the quantity supplied is below 1,500cement bags, the tax is 15% of sales.
(ii) If the quantity supplied did not exceed3,000 cement bags, the tax is 20% of sales
otherwise the tax is 25%.
You are required to:
(a) Conduct problem analysis and design.
(b) Write algorithms of:
(i) The function to calculate tax.
(ii) The function to calculate profit.
(c) Explain how you are going to format anddisplay your final output as shown in
the sample report for a year 2019?
(d) Write the main program which calls twofunctions in part (b).
- Display your output in the following format below and use thegiven sample data for testing
as shown in the report for a year 2019
REPORT FOR YEAR 2019
SN
CEMENT TYPE
PURCHASING
PRICE/BAG(USD)
SELLING
PRICE/BAG(USD)
QUANTITY
SOLD
TAX
PROFIT
1
Twiga
8
12
1,500
XXXXX
YYYYY
2
Dangote
7
10
2,500
AAAA
BBBB
- Capture and paste a screenshot of your running program(C++) that uses sample input data given in part (3) and displays aformatted report for a year 2019 as shown in part (3).
Expert Answer
Answer to ABC Company is dealing with supplying of different types of cements (Twiga, Simba, Dangote etc.). The Company acquires …
OR