You are Here: Home

# OCR Computing Coursework Algorithm help watch

1. So im stuck on creating an algorithm for my task 1 which is about the Caesar Cyper.
2. (Original post by ZS1)
So im stuck on creating an algorithm for my task 1 which is about the Caesar Cyper.
in what specific thing you are stuck on?
3. Hiya?
Try To give more detail about the scenario and what you have to do?
4. (Original post by 15anonymous15)
Hiya?
Try To give more detail about the scenario and what you have to do?
I have to create an algorithm about a Casar Cipher
5. You might find some help here..,
http://www.thestudentroom.co.uk/show....php?t=3912517
6. Create an array of 26 characters letters a-z

Create an getEncrypterdChar function.

This functions finds the index of a given character in the array and adds 13 to it.
It then checks if the index is greater than 26 and if so subtracts 26.
It then fetches the character at that index from the array.

In your main program read in the user input to be encrypted.
Loop over each character using a for loop passing the character to getEncrypted and printing out the result.

To decrypt encrypted text just do the same thing. This is a Caesar cypher called rot13
7. What language do you have to use to do this? I'm happy to help using python.
8. (Original post by ZS1)
So im stuck on creating an algorithm for my task 1 which is about the Caesar Cyper.
(Original post by peterxz)
What language do you have to use to do this? I'm happy to help using python.
.

Yeah python mate
9. (Original post by ZS1)
.

Yeah python mate
What exactly are you stuck with? Have you tried coding anything at all yet?
10. (Original post by peterxz)
What exactly are you stuck with? Have you tried coding anything at all yet?
Just the algorithm . my code's working perfectly

### Related university courses

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: April 4, 2016
Today on TSR

### He lied about his age

Thought he was 19... really he's 14

### University open days

Wed, 25 Jul '18
2. University of Buckingham
Wed, 25 Jul '18
3. Bournemouth University
Wed, 1 Aug '18
Poll
Useful resources

Can you help? Study Help unanswered threadsStudy Help rules and posting guidelines

## 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