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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!