Question
Write a C program for this problem: FoodPanda delivery service wants to appraise their riders by adding increments to the basic salaries . The amount
Write a C program for this problem:
FoodPanda delivery service wants to appraise their riders by adding increments to the basic salaries. The amount of increment depends upon the feedback points earned by the riders during food deliveries. The maximum points earned by a rider are 1000, below table explains the percentage of increment based on the points earned. Write a function calculate bonus(float, float) that receives a basic salary and points earned against a rider and
returns its updated salary.
Points Earned Percentage of Increment
0-200 0%
201-500 4%
501- 600 6%
801 - 1000 10%
Similarly, to analyze the performance of riders, the CEO of FoodPanda wants a report of riders based on the points earned to identify best and worst and average riders. Below table
explains ranking criteria for that:
Points Earned Ranks
0-200 Worst
201-600 Average
601-1000 Best
Write a function displayReport(int arr[]) to display the report required by the CEO. To test both functions, write the main function along with an array of size 10 to store points earned
by the 10 riders.
601- 800 8%
Step by Step Solution
3.46 Rating (156 Votes )
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