Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I AM TRYING TO CALCULATE THE AVERAGE OF 3 TEST SCORES: 86, 75, 62, AND 98. THE AVERAGE HAS TO EQUAL 80.25. THE PROBLEM IS
I AM TRYING TO CALCULATE THE AVERAGE OF 3 TEST SCORES: 86, 75, 62, AND 98. THE AVERAGE HAS TO EQUAL 80.25. THE PROBLEM IS MY CODE IS ONLY PRODUCING 80. PLEASE HELP! USING ONLY C++ (hint: i was told to fix the problem i need to declare average as double and divide by 4.0 not 4).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started