Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 [40 MARKS] You are required to develop an account management system for a watch shop in Kuantan to store the customer information and

image text in transcribed

image text in transcribed

QUESTION 1 [40 MARKS] You are required to develop an account management system for a watch shop in Kuantan to store the customer information and the detail of watch that bought by the customer. The system also able to calculate the selling price, the taxes of the watch and profit of the sold watch. Two types of the watch will be sold which are the import watch and local watches. The import watch will have a 10% import duty tax from the manufacturer price that needs to be paid to Malaysian Custom. Meanwhile, the import duty tax will not be charged to the local watch. The profit of import watch will contribute 90% from the manufacturer price; meanwhile, for the local watch, the profit will be 75% of the manufacturer price. The selling price will be calculated by adding the manufacturer, the import duty (if applicable) and the profit. Additionally, all the sold watches will have a Good and Service Tax (GST) which is 6% will be charged from the manufacturer price. Therefore, as a senior programmer, you were assigned to develop an account management system. The account management system must have FOUR (4) functions that perform specific task. The first function works to calculate the import duty price of the watch while the profit of the watch will be calculated by the second function. The third function will calculate the GST price. For the calculation of the selling price of the watch will be done in fourth function. The name of the customer, the manufacturer price of the watch, the type of the watch will be entered in the main function. The output of the system will be print in the main function as shown in Figure 1. Based on the information given, write a C program of the account management system. CONFIDENTIAL 20211/BCI/DCI 1023 Customer name: Azman Identification Card No. 8607010092273 Type of watch (L for local, I for import): Manufacturer price (in MYR): 120.50 L ===== Details of account ===== Name : Azman Identification Card No.: 8607010092273 Selling price: RM218.11 Profit: RM90.38 Manufacturer price: RM120.50 Import duty price: RMO Good and Service Tax: RM7.23 Figure 1

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_2

Step: 3

blur-text-image_step3

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

Question

Graph the function defined as g(x)=(-x, x 2, for x

Answered: 1 week ago