Question:

Beginning programming and need to know if I did this right.?

by  |  earlier

0 LIKES UnLike

I am suppose to figure out what is wrong with this coding

input midtermGrade

input finalGrade

average=(inputGrade + final) / 3

print average

These are my corrections

get inputMidtermGrade

get inputFinalGrade

compute calculatedAverage as (inputMidtermGrade plus inputFinalGrade) divided by three

print average

Any advice and helpful hints are very welcomed. Thanks so much.

 Tags:

   Report

2 ANSWERS


  1. if you are averaging, you need to divide by n (number of items) which is 2, not 3 as listed.


  2. Well, if you want the average between the midterm and final, you should be dividing by 2.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.