Would love some help with a dilemma I am facing right now. I need to take the name, their sales figure and calculate if they're entitled to a bonus and how much. I am fine with doing all of this!
THIS IS PSEUDO-CODE:
read sales_rep
read sales_total
if $sales_total -gt 1000000
then
echo '$sales_rep has a £1,500 bonus this quarter
bonus = $1500
elif $sales_total -gt 100000 || $sales_total -lt 999999
then
echo '$sales_rep has a £750 bonus this quarter
bonus = £750
else
echo '$sales_rep has no bonus this quarter'
bonus = £0
It is the second part of the problem I need help with. I need to organise the sales_person in order of quarter sales. I was going to simply dump them in an array and display. But I have not idea how to organise this and keep the data together.
Any help would be hugely appreciated. Any questions, please ask! I may not have been clear!
Thanks!