Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions