Hey there! Sign in to join this conversationNew here? Join for free
    • Thread Starter
    Offline

    13
    ReputationRep:
    So im stuck on creating an algorithm for my task 1 which is about the Caesar Cyper.
    Offline

    14
    ReputationRep:
    (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?
    did you made a start?
    Offline

    1
    ReputationRep:
    Hiya?
    What is Task 1 about?
    Try To give more detail about the scenario and what you have to do?
    • Thread Starter
    Offline

    13
    ReputationRep:
    (Original post by 15anonymous15)
    Hiya?
    What is Task 1 about?
    Try To give more detail about the scenario and what you have to do?
    I have to create an algorithm about a Casar Cipher
    Offline

    6
    ReputationRep:
    You might find some help here..,
    http://www.thestudentroom.co.uk/show....php?t=3912517
    Offline

    17
    ReputationRep:
    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
    Offline

    1
    ReputationRep:
    What language do you have to use to do this? I'm happy to help using python.
    • Thread Starter
    Offline

    13
    ReputationRep:
    (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
    Offline

    1
    ReputationRep:
    (Original post by ZS1)
    .

    Yeah python mate
    What exactly are you stuck with? Have you tried coding anything at all yet?
    • Thread Starter
    Offline

    13
    ReputationRep:
    (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
 
 
 
  • 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?
  • 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.