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

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 the watch that bought by the customer. The system also able to calculate the selling price, the taxes of the watch, and the 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 a 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. The calculation of the selling price of the watch will be done in the fourth function. The name of the customer, the manufacturer price of the watch, the type of 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. The detailed description of each process and functions is given as follows: The user needs to enter the customer name, identification number, the type of watch either import or local watch, and the manufacturer price in the main function. The first function is responsible to calculate the import duty price. This function will receive the type of watch and the manufacturer price from the main function. Then, this function will return the import duty price to the main function. The second function is about the calculation of the profit of the watch. This function will receive the type of watch and the manufacturer price from the main function. This function will return the profit price to the main function. The third function is about the calculation of the GST price. This function will receive the manufacturer price from the main function and return the GST price to the main. The fourth function is about the calculation of the selling price. This function will receive the manufacturer price, the import duty price, the profit price, and the GST price from the main. Then this function will return the selling price to the main function. Finally, the system will print the detail of the account (as shown in Figure 1) in the main function. Based on the information given, write a C program of the account management system.

image text in transcribed

*I need this by one hour* *Very urgent*

Customer name: Azman L Identification Card No. 8607010092273 Type of watch (L for local, I for import): Manufacturer price (in MYR) 120.50 ===== 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: 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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions