Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Question 2 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) Example Full More or equals to 500.00 25% of sales 1000.00 + Sales + Bonus Output 1 Time Less than 500.00 None 1000.00 + Sales Output 2 Part More or equals to 500.00 25% of sales 500.00 + Sales + Bonus Output 3 Time Less than 500.00 None 500.00 + Sales Output 4 Output 1: ***Welcome to Salesman Salary CalculatorInsert your name: Joey Hernandez Enter your status (1 for Pull Time, 2 for Part Time): 1 Enter your sales (RM) 654 Name: Joey Hernandez Status: Full Time Sales (RM): 654.00 Bonus (RM) : 163.50 Output 2: ***Welcome to Salesman Salary calculator Insert your name: Fernando Rocher Enter your status (1 for Pull Time, 2 for Part Time): 1 Enter your sales (RM) 112 Name: Fernando Rocher Status: Full Time Sales (RM): 112.00 Bonus (RM): 0.00 Total Salary (RM) : 1112.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions