3 Replies - 328 Views - Last Post: 02 December 2017 - 05:13 PM Rate Topic: -----

#1 jaysouza1488  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-December 17

Array Pseudo code

Posted 02 December 2017 - 02:49 PM

I'm brand new to coding. I have an assignment:

Write Pseudocode to read data from a sequential access file. The data file contains information about cars.

Each record contains car model and fuel efficiency. Read each record and store it in an array of structures. Write an additional sub procedure that searches the array for the car with the highest fuel efficiency. Print the model of the car with the highest fuel efficiency.

I'm pretty lost at this point. I was doing fine up until I got to the topic of arrays. I don't know where to start on this assignment and I don't even really understand how to write pseudo code. any help on the topic would be great. I have visual studio 2015 and the assignment is in visual basic.

thank you

Is This A Good Question/Topic? 0
  • +

Replies To: Array Pseudo code

#2 andrewsw  Icon User is online

  • blow up my boots
  • member icon

Reputation: 6541
  • View blog
  • Posts: 26,474
  • Joined: 12-December 12

Re: Array Pseudo code

Posted 02 December 2017 - 04:45 PM

You are working with VB.NET not VB6. Question moved to VB.NET forum.
Was This Post Helpful? 0
  • +
  • -

#3 andrewsw  Icon User is online

  • blow up my boots
  • member icon

Reputation: 6541
  • View blog
  • Posts: 26,474
  • Joined: 12-December 12

Re: Array Pseudo code

Posted 02 December 2017 - 04:59 PM

Pseudocode outlines steps with simple English statements, with or without line numbering or indenting.

1. Put water in kettle
2. Plug kettle in
3. Switch kettle on
4. Find a teabag ...

Statements that are repeated would typically be indented.

The wikipedia entry has an example using visual basic syntax, which is much closer to the code you will eventually write. It is up-to you to determine how close to the code your pseudocode needs to be written.

However, if you are as lost as you describe then you should be talking to your tutor for some guidance.
Was This Post Helpful? 0
  • +
  • -

#4 jaysouza1488  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-December 17

Re: Array Pseudo code

Posted 02 December 2017 - 05:13 PM

thank you
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1