Write the C++ code that will complete the following tasks. The runs, innings, and earn_avg variables have
Fantastic news! We've Found the answer you've been seeking!
Question:
Write the C++ code that will complete the following tasks. The runs, innings, and earn_avg variables have been properly declared. Make sure to declare any other variables that you use when writing the answer.
- Store 65 in an integer variable named runs
- Store 150 in an integer variable named innings
- Calculate an earned run average by dividing runs by innings and multiplying by 9. Store the calculated earned run average in a double variable named earn_avg .
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: