Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started