Hey there! Sign in to join this conversationNew here? Join for free

How to go about writing an algorithm in Computer Science exams? Watch

    • Thread Starter
    Offline

    17
    ReputationRep:
    right.. so the question gives you a scenario and tells you to "Using pseuddocode write a program for a procedural language that bla bla bla"
    or it might say
    "Write an algorithm that bla bla bla"

    What method.. so how would I go about it... like plan out my answer etc.. these questions are worth 6 - 8 + Marks..And often I find myself scribbling out lines and rewriting.. and then running out of space and cramming it in.. i just panic.. how to do pls help
    • Thread Starter
    Offline

    17
    ReputationRep:
    bump.
    Offline

    20
    ReputationRep:
    Pseudocode usually begins with a START statement (and end with and END statement).

    Then declare any variables you may need to execute the algorithm.

    Think of your coding structures (IF, WHILE, DO, FOR). The evaluation is important, you may ignore less obvious results that breaks your algorithm so make sure if there are two arguments that you use OR or AND correctly. You may also need to consider using NOT.

    Nesting correctly is important, make sure you end your structures if the following code should be out of them. (END IF, END WHILE etc..)

    Pseudocode is meant to be read by anyone, so the language used doesn't have to be that specific, no more than the language i have used above be needed really, other things you may need to would be operators like DIV, MOD etc...

    That's just some general info, is there anything specific you struggle with?
    • Thread Starter
    Offline

    17
    ReputationRep:
    (Original post by Bobjim12)
    Pseudocode usually begins with a START statement (and end with and END statement).

    Then declare any variables you may need to execute the algorithm.

    Think of your coding structures (IF, WHILE, DO, FOR). The evaluation is important, you may ignore less obvious results that breaks your algorithm so make sure if there are two arguments that you use OR or AND correctly. You may also need to consider using NOT.

    Nesting correctly is important, make sure you end your structures if the following code should be out of them. (END IF, END WHILE etc..)

    Pseudocode is meant to be read by anyone, so the language used doesn't have to be that specific, no more than the language i have used above be needed really, other things you may need to would be operators like DIV, MOD etc...

    That's just some general info, is there anything specific you struggle with?
    Okay, I guess I just need to practice it... Just one question... When they say write an algorithm... they do mean use Pseudocode right?
    Offline

    20
    ReputationRep:
    (Original post by Someboady)
    Okay, I guess I just need to practice it... Just one question... When they say write an algorithm... they do mean use Pseudocode right?
    If the question just says "Write an algorithm" it is implied that it is pesudocode, however, questions sometimes say: ".. in a high level language". They will expect that you have been learning at least one as part of your course and therefore must write the algorithm in your choice of high-level language.
 
 
 
  • 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.

  • Poll
    Has a teacher ever helped you cheat?
    Help with your A-levels

    All the essentials

    The adventure begins mug

    Student life: what to expect

    What it's really like going to uni

    Rosette

    Essay expert

    Learn to write like a pro with our ultimate essay guide.

    Uni match

    Uni match

    Our tool will help you find the perfect course for you

    Study planner

    Create a study plan

    Get your head around what you need to do and when with the study planner tool.

    Study planner

    Resources by subject

    Everything from mind maps to class notes.

    Hands typing

    Degrees without fees

    Discover more about degree-level apprenticeships.

    A student doing homework

    Study tips from A* students

    Students who got top grades in their A-levels share their secrets

    Study help links and info

    Can you help? Study help unanswered threadsRules and posting guidelines

    Sponsored content:

    HEAR

    HEAR

    Find out how a Higher Education Achievement Report can help you prove your achievements.

    Groups associated with this forum:

    View associated groups
  • 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.

  • The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

    Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

    Write a reply...
    Reply
    Hide
    Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.