Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write code in C. Avoid comments. [24 points ( 6 each), 45 mins] CLO3 Suppose that you are required to develop Account Management System for

Write code in C. Avoid comments. image text in transcribed
[24 points ( 6 each), 45 mins] CLO3 Suppose that you are required to develop Account Management System for a Car's Show Room to calculate overall tax, retail price (Selling price to customer that include GST) and sum of profit from the sales. All cars have 15% import duty tax from Capital Cost (Cost that seller buy from manufacturer) that needs to be paid to Pakistan Custom. A luxury car has 10% sales tax, and a non-luxury car has 6.5% sales tax from the capital cost that need to pay. The seller needs 75% of retail profit from all total cost (include the cost of import and sales tax) per car either luxury or non-luxury car. Lastly, 6% Good and Services Tax (GST) is added to the cost price that will become the retail price for a car. For all cars, customers need to register name, address. Hint: First formulate how to calculate car import duty tax, luxury car sales tax, total profit from capital cost and tax, total price for luxury car, total services tax for any good as per Pakistan customs, and retail sales price of luxury and non-luxury car (price include GST). a. Write a program based on the following specifications: I. Develop a structure Customelnfo to the following specification: The structure has two instance members Name, Address. II. Develop a structure Car to the following specification: The structure has five data members as, price, Model, Brand, ManufacturingDate, CountryOforigin and Customerinfo. b. SaveBillinfo function gets input from user for customer and car, stores in structures, and saves customer bill (customer and car info) to bIII.dat file for a specific customer importing specific car. c. GetBillinfo function opens text file in binary format, reads data from File, and prints on screen. d. PrintAllwithTaxDetalls function displays customer information, billing information along with the tax, and net profit details. It must call following functions to print all details of particular car. You must implement these functions as well. - Servicestax function calculates the service tax and returns ServicesTax - RotailProfit function calculates the Retail Price and returns RetailProfit - RmportDutyTax function calculate the importDutyTax and returns importDutyTax - SalesTax function calculates the sales tax and returns SalesTax - CalulatePrice function calculates the price after sales tax, import tax, GST and net profit and returns Calculated Price

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_2

Step: 3

blur-text-image_3

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

Sql++ For Sql Users A Tutorial

Authors: Don Chamberlin

1st Edition

0692184503, 978-0692184509

More Books

Students also viewed these Databases questions

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago

Question

1. Identify six different types of history.

Answered: 1 week ago