Answer the question
In order to leave comments, you need to log in
How to sort by gender?
In general, I have the following task: Draw up a program for the task: in the February salary, give a bonus to male workers in the amount of 100 rubles. Enter employee data from the keyboard. In the output file, enter a time sheet indicating the full name of the employee, his gender, salary, bonus and the amount of payment. Need your help please
Answer the question
In order to leave comments, you need to log in
You put everything in an array. Sort the array by gender. Ready.
I don't see your attempts here and it's not clear that you didn't succeed.
And in what place here sorting that is necessary? just do if sex = 'MALE' then bonus := 100; else bonus := 0;
And you bring out
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question