+ 2
May someone help me understand this question
design an algorithm( pseudocode) to find the weighted average of 4 test scores . the 4 test scores and their respective weights are given in the following format: testScore weightTestScore 30 35% 25 25% 20 15% 25 25%
21 Answers
0
Both of the questions you asked can be solved with cross multiplication. I'd look it up and come back to the code later
+ 1
So does that mean the output is the next row
+ 1
Thank you sooo much ✨🌹
I really appreciate itt
+ 1
(sum(testscore(s) * weighttestscore(s)))/4
0
Okay 👌
0
But may u explain the question
0
any sample output?
0
I think the output is what is under the testscore n weightedtestscore
0
That was the whole question 😥
0
Alright whats the input then?
0
4 test scores
0
Hmm 🤔
0
Okay yes
0
if and only if the input is just 4 numbers and nothing else. i cant see what you see so you have to paint a picture ya know? whats missing though? you cant change 30 to 35 without a factor.
0
Hmm , Ill go see if there is anything wrong with question
0
👍🏻👍🏻👍🏻👍🏻🙏
0
My lecturer said I need to use
Average= sum of test /4
0
if thats it then do it, I'm still unsure what they want. why not just give percentages in the first place then? To just have irrelevant information to distract you? I guess I just don't understand the wording.
0
Like in school for a particular subject in a semester you have multiple tests like viva, unit test, practicals and Mains.
If suppose each of the individual tests were conducted out of 100 marks.
However, each of those 4 test have their own weightage in final scoring which is going to be out of 100.
Here you will always observe that total of weightages is 100%
I think this should clear your doubt.
- 1
I can't respond