Answer:
Not sure what language, but in python a super basic version would be:
val1 = 98
val2 = 87
val3 = 84
val4 = 100
val5 = 94
sum = val1 + val2 + val3 + val4 + val5
avg = sum / 5
print(avg)
Explanation:
Answer:
sqrt
Explanation:
Computing is the process of using computer hardware and software to manage, process and transmit data in order to complete a goal-oriented task. It can be classified into the following categories;
If you need to find the square root of a value. The function you would use is sqrt.
In Computer programming, the sqrt () function is a mathematical tool which allows a user to find the square root value of any numerical value (numbers)
For example the code for finding the square root of a value using Python programming language is;
num = 36
\\This is the value of the original number\\
sqrt = num ** (0.5)
print ("The square root of the number "36" is 6")
Answer:
START LOOP FOR EACH EMPLOYEE:
INPUT employee’s name, hourly rate of pay, number of hours worked, overtime pay rate, payroll deductions, tax rate
SET gross pay = (hourly rate of pay x *weekly hours) + (overtime pay rate x (number of hours worked - *weekly hours))
PRINT gross pay
SET net pay = gross pay - (payroll deductions + (gross pay * tax rate/100 ))
PRINT net pay
END LOOP
* weekly hours (how many hours an employee needs to work to earn overtime pay rate) is not given in the question
Explanation:
Create a loop that iterates for each employee
Inside the loop, ask for name, hourly rate, number of hours worked, overtime pay rate, payroll deductions, tax rate. Calculate the gross pay and print it. Calculate the net pay and print it
Answer:
The inorder traversal make a binary search tree sorted.
Explanation:
The algorithm of inorder traversal is
1. Traverse the left subtree.
2. print the data .
3. Traverse the right subtree
In this algorithm left subtree is visited first then it print the data or visit the data and finally it visited Right subtree .