The Student Room Group

OCR GCSE Computing (Caeser Cipher Task)

Hey everyone,

I was wondering if anyone has done the OCR Caesar Cipher task and would be able to provide me with some guidance/tips on tackling this task.

I'm finding this course quite difficult due to a extremely bad standard of teaching by my teacher. :frown:

Thanks in advance! :wink:
Original post by justanotherfail
Hey everyone,

I was wondering if anyone has done the OCR Caesar Cipher task and would be able to provide me with some guidance/tips on tackling this task.

I'm finding this course quite difficult due to a extremely bad standard of teaching by my teacher. :frown:

Thanks in advance! :wink:


i did computing last year...
i can't assure you that i'll help you 100% but i can try :h:
Original post by fatima1998
i did computing last year...
i can't assure you that i'll help you 100% but i can try :h:


Hey, The task i'm doing is to create the Caesar Cipher program. So I need to read in the Alphabet,encrypt/decrypt messages and set the offset.
Original post by justanotherfail
Hey, The task i'm doing is to create the Caesar Cipher program. So I need to read in the Alphabet,encrypt/decrypt messages and set the offset.


Are you doing in python?
Original post by fatima1998
Are you doing in python?


Oops, I probably should of said this it's being done in Visual Basic.

Edit: Not 100% sure I believe it's C#
Original post by justanotherfail
Oops, I probably should of said this it's being done in Visual Basic.

Edit: Not 100% sure I believe it's C#


so what you actually want help on???
can you like explain in detail?
Original post by fatima1998
so what you actually want help on???
can you like explain in detail?


Currently I need to read the Alphabet into an array insuring all letters are uppercase with 65 being letter a.
Original post by justanotherfail
Currently I need to read the Alphabet into an array insuring all letters are uppercase with 65 being letter a.


ahan... so you need to know how to do the uppercase letter in python? to help you get started?
Original post by fatima1998
ahan... so you need to know how to do the uppercase letter in python? to help you get started?


Yes!
Original post by justanotherfail
Yes!


the document attached has an awful lot of info about the python and if you want to find a specific thing press ctrl F and write the keyword e.g. upper case
i also advise you to start on code academy if you haven't yet
this is some kinda code - i dunno if that's handy or not
Assuming your data is in a1 cell
=PROPER(A1) this formula will CAP every letter after " ". Ex
Input: "product for office" Output: "Product For Office"

=UPPER(LEFT(A1,1))&RIGHT(A1,LEN(A1)-1)
This formula will upper only first letter
Output: "Product for office"
Original post by fatima1998
the document attached has an awful lot of info about the python and if you want to find a specific thing press ctrl F and write the keyword e.g. upper case
i also advise you to start on code academy if you haven't yet
this is some kinda code - i dunno if that's handy or not
Assuming your data is in a1 cell
=PROPER(A1) this formula will CAP every letter after " ". Ex
Input: "product for office" Output: "Product For Office"

=UPPER(LEFT(A1,1))&RIGHT(A1,LEN(A1)-1)
This formula will upper only first letter
Output: "Product for office"


I'm working with C# and not Python but I'll try to figure out the equivalent.
Original post by justanotherfail
I'm working with C# and not Python but I'll try to figure out the equivalent.


ahan :smile:
Original post by justanotherfail
Hey everyone,

I was wondering if anyone has done the OCR Caesar Cipher task and would be able to provide me with some guidance/tips on tackling this task.

I'm finding this course quite difficult due to a extremely bad standard of teaching by my teacher. :frown:

Thanks in advance! :wink:


https://www.youtube.com/watch?v=V6IDxl-3WAA , this should help even though this is for a course with C it should give you enough insight on what to do. Good Luck!!

Quick Reply

Latest