Question: PART Instruction Question 1 (18 marks) Othman works at Ehsan Automobile Sdn Bhd. His basic salary as a car salesman is RC500 pe month. Apat

 PART Instruction Question 1 (18 marks) Othman works at Ehsan Automobile

PART Instruction Question 1 (18 marks) Othman works at Ehsan Automobile Sdn Bhd. His basic salary as a car salesman is RC500 pe month. Apat from that, he will be given commission based on his total sales in a monts Write a program to calculate Ohman's total salary based on these PROBLEM SOLVING QUESTIONS : Answer ALL questions in the spaces provided 40 MARKS requirements ) Basic salary is defined at 2500. a) mainO function will get total sales from user. Only positive sales values are accepted. user enters a negative sales value, the program should prompt user so enter another vald data. iii) mainO function will call a) A non-void function named Commision0 to caleulate and display Odhman's soal commission for that particular month. The calculations of the commission based on Total Sales as shown below: Total Sales Commission Less than RM10.000 RM10,000 to RM100.000 More than RM100.000 0% 10% 15% b) A void function named Display, salary0 to calculate and display Othman's total salary. The total salary is calculated using the following formula: Total salary-basic salary+commission iv) DO NOT use any global variable in your program Sample output is as shown below Note: Inputs from user are highlighted in bold) Enter total sales:RM -90 Invalid sales Enter cotal sales:RM 15000 Comission is RM1500.00 Total salary is RM4000.00 Pzess any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!