Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

Were the right people involved in the decision-making process?

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago