+ 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%

30th Oct 2020, 9:02 AM
Seraphina
Seraphina - avatar
21 Respostas
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
30th Oct 2020, 9:19 AM
Slick
Slick - avatar
+ 1
So does that mean the output is the next row
30th Oct 2020, 9:54 AM
Seraphina
Seraphina - avatar
+ 1
Thank you sooo much ✨🌹 I really appreciate itt
30th Oct 2020, 10:44 AM
Seraphina
Seraphina - avatar
+ 1
(sum(testscore(s) * weighttestscore(s)))/4
30th Oct 2020, 10:22 PM
madeline
madeline - avatar
0
Okay 👌
30th Oct 2020, 9:25 AM
Seraphina
Seraphina - avatar
0
But may u explain the question
30th Oct 2020, 9:25 AM
Seraphina
Seraphina - avatar
0
any sample output?
30th Oct 2020, 9:30 AM
Slick
Slick - avatar
0
I think the output is what is under the testscore n weightedtestscore
30th Oct 2020, 9:43 AM
Seraphina
Seraphina - avatar
0
That was the whole question 😥
30th Oct 2020, 9:44 AM
Seraphina
Seraphina - avatar
0
Alright whats the input then?
30th Oct 2020, 9:44 AM
Slick
Slick - avatar
0
4 test scores
30th Oct 2020, 9:46 AM
Seraphina
Seraphina - avatar
0
Hmm 🤔
30th Oct 2020, 9:47 AM
Seraphina
Seraphina - avatar
0
Okay yes
30th Oct 2020, 9:52 AM
Seraphina
Seraphina - avatar
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.
30th Oct 2020, 9:56 AM
Slick
Slick - avatar
0
Hmm , Ill go see if there is anything wrong with question
30th Oct 2020, 10:00 AM
Seraphina
Seraphina - avatar
0
👍🏻👍🏻👍🏻👍🏻🙏
30th Oct 2020, 10:00 AM
Seraphina
Seraphina - avatar
0
My lecturer said I need to use Average= sum of test /4
30th Oct 2020, 10:23 AM
Seraphina
Seraphina - avatar
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.
30th Oct 2020, 10:34 AM
Slick
Slick - avatar
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.
31st Oct 2020, 9:07 AM
Ravi Pradhan
Ravi Pradhan - avatar
- 1
I can't respond
30th Oct 2020, 9:50 AM
Seraphina
Seraphina - avatar