dimanche 9 janvier 2022

C++ Programming to display a table [closed]

Kanji furniture company Limited purchases and sells office furniture products. The company frequently purchases and sells three main types of furniture among its furniture products: office chairs, office desks, and office tables. The company acquires furniture from abroad companies in Turkey and China and supplies them to its prospective customers (companies or individuals). In each financial year, the company is interested to know the quantity, tax, and profit for these three furniture types frequently purchased to its prospective customers. It requires a computer program that records and reports on individual furniture types' purchasing and selling costs (in Tanzania shillings) and its corresponding quantities supplied per year. In addition, the program should report the tax paid and the net profit made for individual furniture types supplied to its customers in that year.

Tax payments are calculated based on the following conditions:

1.If the quantity supplied for a given furniture type is below 300 per year, then a.The tax is 15% of sales for office chairs. b.The tax is 20% of sales for office tables and desks.

2.If the quantity supplied for any furniture type is at least 300 and does not exceed 750 per year, then the tax is 25% of sales; otherwise, the tax is 30%.

You are required to:

a.Conduct problem analysis and design.

b.Write algorithms of:

1.The function to calculate tax.

2.The function to calculate profit.

c.Explain how are you going to format and display your final outputs, as shown in the sample report for the year 2021?. d.Write the Main Program, which calls two functions in part (b). Use C++ Stucture to store relevant data for each furniture type.

Display your output by following the report format below and using the given sample data to test your program and generate your report for 2021. (See the attatched photograph)Apicture of the table required

Aucun commentaire:

Enregistrer un commentaire