Question: WRITE A C PROGRAM Using TWO (2) user-defined functions, write a C program that helps a salesman/ saleswoman to calculate their monthly salary based on

WRITE A C PROGRAM
WRITE A C PROGRAM Using TWO (2) user-defined functions, write a C
program that helps a salesman/ saleswoman to calculate their monthly salary based

Using TWO (2) user-defined functions, write a C program that helps a salesman/ saleswoman to calculate their monthly salary based on their sales achievement and status (full time or part time) as listed and shown below: Status Sales (RM) Bonus Total Salary (RM) Full More or equals to 500.00 25% of sales 1000.00 + Sales + Bonus Time Less than 500.00 None 1000.00 + Sales Part More or equals to 500.00 25% of sales 500.00 + Sales + Bonus Less than 500.00 None 500.00 + Sales Example Output 1 Output 2 Output 3 Output 4 Time Output 1: ***Welcome to Salesman Salary Calculator Insert your name: Joey Hernandes Enter your status (1 for Full Time, 2 for Part Time): 1 Enter your sales (RM) 654 Name: Joey Hernandez Status: Full Time Sales (RMI: 654.00 Bonus (RM): 163.50 Total Salary Rei 1817 50 Bater or salas (N) 350 Wam Kristine Hutches Statut Part TL Sales 350.00 Bones (0) 0.00 Total salary() 850.00 Each user-defined function must perform separate task as listed below: 1. Calculate and return the total salary based on status and sales. 2. Print the total salary. In the main() function, ask the user to enter name, status and sales of the salesman/saleswoman. You are NOT ALLOWED to use global variables in this program (20 mar

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!