In: Computer Science
How to make this problem? in C language
Build an algorithm that, upon receiving as input the ID and
salary of the professors of a university, determines the
following:
-Total payroll of teachers.
-The average salaries of teachers.
-ID of the employee with the highest salary as well as what's his
salary
thanks
Here is the answer for your question in C Programming Language.
Kindly upvote if you find the answer helpful.
######################################################################
CODE :
#include<stdio.h> //Structure that defines a professor with Id and
salary |
#############################################################
SCREENSHOTS :
Please see the screenshots of the code below for the indentations of the code.
##################################################################
OUTPUT :
Any doubts regarding this can be explained with pleasure :)