A-level Computing/AQA/Paper 1/Skeleton program/AS2018

This is for the AQA AS Computer Science Specification.

This is where suggestions can be made about what some of the questions might be and how we can solve them.

Please be respectful and do not vandalise or tamper with the page, as this would affect students' preparation for their exams!

Read / Write to binary file
Modify the program in order to allow the user to read / write the transmission (from form of spaces and equals signs) to a binary format (in order to reduce space taken to store)

Substitution Cipher
This question refers to the subroutines GetTransmission and ReceiveMorseCode. The question requires the creation of subroutines GetKey and DecryptTransmission.

The Skeleton Program is to be adapted so that messages encrypted with a substitution cipher can be received and decrypted. The method of decryption will be to apply a decryption key to the message.

In a substitution cipher, every character is replaced with another character. For example, every letter A could be substituted with the number 7.

The decryption key will be stored in a text file, consisting of 36 characters. The first 26 characters will represent the letters A – Z and the next 10 will represent the numbers from 0 – 9.

A new subroutine GetKey needs to be created, which will read and return the key from a file specified by the user. If no key is specified, the subroutine should return the key: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789. This key should be interpreted to mean that every character represents itself.

A new subroutine DecryptTransmission needs to be created, which will apply the decryption key to the transmission. It will be called by a new line in ReceiveMorseCode, to be inserted before print(PlainText):

PlainText = DecryptTransmission(PlainText).

Validation of a menu option
The program currently just prints the menu again when an incorrect option is input; add validation so the program prints a message when an invalid option is input.

Translate transmission directly to English (bypass file)
Update receive signal to allow direct input rather than txt file.

Save a .txt file when sending Morse Code
-Convert generated Morse into transmission signal.

-Write the transmission signal into txt file.

Create and save transmission signal when sending
-Convert generated Morse into transmission signal.

-Write the transmission signal into txt file.

Add Morse code for numbers/symbols
Allow the user to convert numbers and punctuation (for which there is Morse code available) into Morse code.

Validation of a message to send
Currently lowercase characters crash the program, add functionality to translate lowercase letters and correctly translate numbers/symbols

Automatically append '.txt' to file.
Code that makes it obsolete for the user to add the '.txt' extension to their file name

Save message in a text file
Code that save the translated code in a text file

List Characters
Output a list of all of the characters from the list next to their Morse code representation.

Accept multiple lines of text to convert to Morse code
Description of question

Accept lowercase letters
This will accept the input of lowercase characters