Jump to content



Photo

Qwestion,about Arrays

pysedocode help me!

  • Please log in to reply
17 replies to this topic

#1 jaredman384

jaredman384

    Resident One Post Wonder

  • Joined: 17-January 14

Posted 17 January 2014 - 15:31

I just have no idea where to even start.

Attached Images

  • PROGRAMMING HELP.JPG



#2 Nick H.

Nick H.

    Neowinian Senior

  • Tech Issues Solved: 15
  • Joined: 28-June 04
  • Location: Switzerland

Posted 17 January 2014 - 15:34

Please see here. We're not going to give you the answer, you need to let us know what you think is the correct answer and why.

#3 +Phouchg

Phouchg

    Resident Misanthrope

  • Tech Issues Solved: 9
  • Joined: 28-March 11
  • Location: Neowin Detainment Camp

Posted 17 January 2014 - 15:37

Begin at the beginning, go on till you reach the end, then stop.

#4 Top Qat

Top Qat

    Neowinian

  • Tech Issues Solved: 8
  • Joined: 09-July 04
  • Location: London, UK
  • OS: Windows 8.1u1 and Server 2012 R2u1
  • Phone: Samsung Galaxy S 3

Posted 17 January 2014 - 15:47

Just for the hell of it, did it in Excel. Took 2 minutes. Don't be so lazy ;)



#5 Doli

Doli

    Goo ball

  • Joined: 28-October 04
  • Location: Tower of Goo Memorial Park and Recreation Center

Posted 17 January 2014 - 16:15

Please see here. We're not going to give you the answer, you need to let us know what you think is the correct answer and why.

 

He is not asking for the answer just where to start.



#6 Lord Method Man

Lord Method Man

    Banned

  • Tech Issues Solved: 1
  • Joined: 18-September 12

Posted 17 January 2014 - 16:18

I'd start with 'a'



#7 Eric

Eric

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 02-August 06
  • Location: Greenville, SC

Posted 17 January 2014 - 16:21

He is not asking for the answer just where to start.


There's not really enough information to determine what his first steps should be. We have no idea what he's learned already or what he's tried.

#8 FloatingFatMan

FloatingFatMan

    Resident Fat Dude

  • Tech Issues Solved: 1
  • Joined: 23-August 04
  • Location: UK

Posted 17 January 2014 - 16:21

 

I just have no idea where to even start.

 

A(2, 4) = 40 relates to the value stored in a specific row and column of array A.  The rest you should be able to work out yourself



#9 Nick H.

Nick H.

    Neowinian Senior

  • Tech Issues Solved: 15
  • Joined: 28-June 04
  • Location: Switzerland

Posted 17 January 2014 - 16:23

He is not asking for the answer just where to start


There is no question asked other than the one on the assignment, no indication of what he doesn't understand about the question. Is he having trouble understanding what an array is, or has he gone through the question and arrived at an answer that isn't an option?

#10 +LambdaLambdaLambdaFn

LambdaLambdaLambdaFn

    Neowinian

  • Joined: 13-November 13

Posted 17 January 2014 - 16:32

I think OP is confused by the 5 x 7 empty array on the bottom.  I'm not sure what it's supposed to represent, since s is a simple variable and illustrated as a single cell above it.



#11 +riahc3

riahc3

    Neowin's most indecisive member

  • Tech Issues Solved: 11
  • Joined: 09-April 03
  • Location: Spain
  • OS: Windows 7
  • Phone: HTC Desire Z

Posted 17 January 2014 - 18:32

Hello,

Just for the hell of it, did it in Excel. Took 2 minutes. Don't be so lazy ;)

:laugh: Yup, it isnt even a programming question.

#12 +snaphat (Myles Landwehr)

snaphat (Myles Landwehr)

    Electrical & Computer Engineer

  • Tech Issues Solved: 29
  • Joined: 23-August 05
  • OS: Win/Lin/Bsd/Osx
  • Phone: dumb phone

Posted 17 January 2014 - 20:28

I think OP is confused by the 5 x 7 empty array on the bottom.  I'm not sure what it's supposed to represent, since s is a simple variable and illustrated as a single cell above it.

It's suppose to be the spot to fill in A except the person who made the document is really bad at word processing and counting  :rolleyes:



#13 +LambdaLambdaLambdaFn

LambdaLambdaLambdaFn

    Neowinian

  • Joined: 13-November 13

Posted 17 January 2014 - 20:33

It's suppose to be the spot to fill in A except the person who made the document is really bad at word processing and counting  :rolleyes:

 

Ha!  I thought that initially, too, but Question A is declarative to variable s and the rest are to a, so it can't be.  OP, ask your teacher what the empty array at the bottom is supposed to be, or shade it out so that it's a 6 x 5 array with the answers in the correct places then create a square for variable s.

 

I'm with OP:  the format is confusing.



#14 vcfan

vcfan

    Doing the Humpty Dance

  • Tech Issues Solved: 3
  • Joined: 12-June 11

Posted 17 January 2014 - 20:35

you've sunk my battleship.



#15 +LambdaLambdaLambdaFn

LambdaLambdaLambdaFn

    Neowinian

  • Joined: 13-November 13

Posted 17 January 2014 - 20:40

On second thought, you could just write a "5" in the top left corner, and you'd be technically right.  That's the sort of thing I would do ... then I'd get a zero on the assignment.