Question: Calculate a test average in a variable named avg and then print it out. The variable avg when printed should have two numbers to the

Calculate a test average in a variable named avg and then print it out. The variable avg when printed should have two numbers to the right of the decimal point. (example - 98.56) The average is calculated by using integer division. Divide an integer variable named earned by an integer variable named max, and then multiply 100. Assume that all of the variables (avg, earned, and max) have been properly declared. (Your answer should be two statements of code). int numDash=(5 + 8)/2; for (i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
