Turn on thread page Beta
    • Thread Starter
    Offline

    4
    ReputationRep:
    My controlled assessment must be handed in to my teacher by Tuesday next week and I have no idea how to convert VB code into annotated pseudocode, can someone PLEASE help me!!!!
    Offline

    21
    ReputationRep:
    (Original post by jossan)
    My controlled assessment must be handed in to my teacher by Tuesday next week and I have no idea how to convert VB code into annotated pseudocode, can someone PLEASE help me!!!!
    Not sure about the specific details of VB, but pseudocode is basically a mix between Standard English and code.
    Selection:
    - 'IF ______THEN _______ ELSE'
    - 'SELECT CASE OF: _____________ OTHERWISE'
    Iteration:
    - 'FOR______NEXT'
    - 'REPEAT________UNTIL'
    - 'WHILE__________ENDWHILE'

    Basically, you just want to keep the logic of your program the same, but not use commands that are completely specific to the programming language.

    If you have this program (in python):
    name = input('What is your name?' )
    age = int(input('How old are you?' ))
    if age < 18 AND age > 10:
    print('welcome to secondary school!',name )
    else:
    print('you are not welcome, sorry' )

    You could convert this to pseudocode:
    name <-- INPUT "what is your name?"
    age <-- "how old are you?"
    IF age < 18 AND age < 10 THEN
    OUTPUT 'welcome to secondary school!' + name
    ELSE
    OUTPUT 'you are not welcome, sorry'
    ENDIF

    As you can see, it is very similar, but many languages do not use 'print', so in pseudocode, OUTPUT is used instead. Arrows are usually used to display a value being assigned to a variable.
 
 
 

1,980

students online now

800,000+

Exam discussions

Find your exam discussion here

Poll
Should predicted grades be removed from the uni application process
Useful resources

Study tools

Rosette

Essay expert

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

Thinking about uni already?

Thinking about uni already?

See where you can apply with our uni match tool

Student chat

Ask a question

Chat to other GCSE students and get your study questions answered.

Creating

Make study resources

Create all the resources you need to get the grades.

Planner

Create your own Study Plan

Organise all your homework and exams so you never miss another deadline.

Resources by subject

From flashcards to mind maps; there's everything you need for all of your GCSE subjects.

Papers

Find past papers

100s of GCSE past papers for all your subjects at your fingertips.

Help out other students

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

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.