Answer:
The Proper codes in Line a and Line b is given below
average=Sum/3
print (" Average is = ", average)
Explanation:
In the given question it calculated the sum but the program does not calculate the average of the 3 numbers.The average of the 3 number is calculated by using average=Sum/3 statement so we add this code in Line a then After that print the value of average by using the print function so we add this code in Line b.
Answer is
productivity
Sometimes called the office or personal productivity software,
productivity software is dedicated to producing databases, spreadsheets,
charts, graphs, documents, graphs, digital video and worksheets. Reason behind
the name productivity is due to the fact that it increases productivity in
office work.
Answer:
b) objects are resuable
Explanation:
In OOP there's code reuse where a method or any other body of code is defined once and called or reused severally.
Answer:
treeHeight = tangent of angleElevation * treeDistance
In java, we could write it as:
double treeHeight = (Math.tan(angleElevation) * treeDistance);
Math.tan(angleElevation) is an inbuilt java mathematical function used to calculate the tangent of a value and the return value is always double.
Explanation:
formula:
tangent of angleElevation = treeHeight/treeDistance
We want to assign treeHeight, so we cross-multiply and we get:
treeHeight = tangent of angleElevation * treeDistance
Off course, the treeHeight will be in feet also.