Help arrays computer science please Watch

sunflower69
Badges: 9
Rep:
?
#1
Report Thread starter 4 weeks ago
#1
What do I do (gcse)
Name:  9B3E474B-DCD1-4A13-9D48-22C5F4DE8B76.jpeg
Views: 8
Size:  155.0 KB
0
reply
winterscoming
Badges: 19
Rep:
?
#2
Report 4 weeks ago
#2
What problem are you having? you seem to have (almost) the right idea from the question you've answered so far.

Although it looks like you've circled the wrong '18' in that table. Arrays indexes are zero-based (i.e. 0, 1, 2, 3, etc.). so it looks like [5,2] would be Daniel's score for test 3.

So I would think the answer for (a)(1) would be print(scores[0,2]) instead to get the position of Anna's result for test 3
Last edited by winterscoming; 4 weeks ago
2
reply
sunflower69
Badges: 9
Rep:
?
#3
Report Thread starter 4 weeks ago
#3
I only saw the one 18 in the table, I think that’s what confused me. Thanks
(Original post by winterscoming)
What problem are you having? you seem to have (almost) the right idea from the question you've answered so far.

Although it looks like you've circled the wrong '18' in that table. Arrays indexes are zero-based (i.e. 0, 1, 2, 3, etc.). so it looks like [5,2] would be Daniel's score for test 3.

So I would think the answer for (a)(1) would be print(scores[0,2]) instead to get the position of Anna's result for test 3
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

University open days

  • SOAS University of London
    Postgraduate Open Day Postgraduate
    Wed, 29 May '19
  • University of Exeter
    Undergraduate Open Day - Penryn Campus Undergraduate
    Thu, 30 May '19
  • Cranfield University
    Cranfield Forensic MSc Programme Open Day Postgraduate
    Fri, 31 May '19

How did your AQA A-level Business Paper 1 go?

Loved the paper - Feeling positive (180)
22.9%
The paper was reasonable (366)
46.56%
Not feeling great about that exam... (146)
18.58%
It was TERRIBLE (94)
11.96%

Watched Threads

View All