• Homework
  • Thirds
  • Upper Thirds
  • Fourth
  • Divisions
    • ICT
    • Computer Science
  • Fifth
  • Lower Sixth
  • Upper Sixth
    • Upper Sixth Theory
  • Blog
  • Careers
  • Unity
  • Networking
computinglesson.com

Revision Master:  Putting the data in the right place

The approach you take here will depend on the format of your question file.  Listed below are three possible formats, each with advantages and disadvantages - together with a possible approach to breaking them up into the question and answer arrays.

Whatever approach you take, you should structure this part of your program as a procedure or set of procedures.  That will make it easier to understand, to control and to modify.

In any case you will need to understand and manipulate arrays.  Click here for more information about arrays.

Click on the section below corresponding to the approach that you've taken.  Can you make it work?

Approach number one - each question on one line

Picture

Approach number two -  new line for each question and answer

Picture

Approach number three - structured file with separators

Picture
Powered by Create your own unique website with customizable templates.