[Solved]Could Someone Please Help Coding Assignment Please See Mark Allocation Task Selections Cod Q37285447



Could Someone Please help me with this coding assignment. Pleasesee Mark Allocation for task selections. All Code Must run underOne .c file. the code must be written in C
3 Programming Task Please read the full marking guide before reacting emotionally to the task difficulty. A pass will be “reasonably easy” but a high distinction will be “unreasonably difficult”. Write a C program which performs the following tasks: 1. Encryption of a message with a rotation cipher given the message text and rotation amount 2. Decryption of a message encrypted with a rotation cipher given cipher text and rotation amount 3. Encryption of a message with a substitution cipher given message text and alphabet substitution 4. Decryption of a message encrypted with a substitution cipher given cipher text and substitutions 5. Decryption of a message encrypted with a rotation cipher given cipher text only 6. Decryption of a message encrypted with a substitution cipher given cipher text only 3.1.3 Task Selection It should be easy for a demonstrator to quickly test functionality of each task listed in Section 3. It is up to you to decide exactly how this is implemented but the following options are recommended (NB: not all options are worth equal marks): Hard code an initialised integer variable which selects between the different tasks. e Take user input from stdin to select each task in a menu system (Advanced) Define the task as part of a header inside an input file which contains the message aned key (or key and cipher text, or just cipher text). The header could be something like: A single integer placed on the first line to indicate the task to be performed, followed by – A 2nd, optional, ine which contains a key (perhaps start the line with a “weird” character like # to indicate that it is a key), followed by The message or cipher text (Advanced-Beyond ENGG1003) Use command line arguments Each task should be implemented as a different function. Beyond that you are free to choose how many functions are implemented All tasks must be accessible from running a single c file. The GitHub repository should contain this.c file and any other required files (eg: input text) 9 Mark Allocation Total marks 12.5 Git commits (as-per Section 5): 2 marks Code commenting: 1 mark Encryption with a rotation cipher given plain text and key: 1 mark Decryption with a rotation cipher given cipher text and key: 1 mark Encryption with a substitution cipher given plain text and key:1 mark Decryption with a substitution cipher given cipher text and key: 1 mark Completing all of the above achieves a passing grade of 7/12.5 (56%) Decryption of a previously unseen cipher text encrypted with a rotation cipher 1.5 marks Decryption of a day-1 provided block of cipher text encrypted with a substitution cipher: 1 mark Decryption of an unseen block of cipher text on marking day: 1.5 marks The substitution cipher decryption marks wil be allocated based on how many letters are correctly worked out by your program. The following marks will be awarded for various cipher and plain text input methods (if multiple methods are used demonstrators may, at their digression, award marks based on the “most advanced method used at any point in the program) Hard-coded cipher and plain text: +0 marks e Cipher and plain text read from stdin: +0.5 mark e Cipher and plain text read from, and written to, files: +0.75 marks The following marks will be awarded for various task selection methods Task selection with a hard-coded variable: +0 marks Task selection with a “simple” method utilising stdin (eg: read a number without prompting the user): +0.25 marks Task selection with a “user friendly” menu system: +0.5 marks e Task selection with a file header or command line arguments: +0.75 marks At the demonstrator’s discretion, the following marks may be deducted: Comments are woefully inadequate, uninformative, or missing: -1 mark Code indentation is confusing, not attempted, or is n some way unnecessarily difficult to read:-1 mar Show transcribed image text 3 Programming Task Please read the full marking guide before reacting emotionally to the task difficulty. A pass will be “reasonably easy” but a high distinction will be “unreasonably difficult”. Write a C program which performs the following tasks: 1. Encryption of a message with a rotation cipher given the message text and rotation amount 2. Decryption of a message encrypted with a rotation cipher given cipher text and rotation amount 3. Encryption of a message with a substitution cipher given message text and alphabet substitution 4. Decryption of a message encrypted with a substitution cipher given cipher text and substitutions 5. Decryption of a message encrypted with a rotation cipher given cipher text only 6. Decryption of a message encrypted with a substitution cipher given cipher text only
3.1.3 Task Selection It should be easy for a demonstrator to quickly test functionality of each task listed in Section 3. It is up to you to decide exactly how this is implemented but the following options are recommended (NB: not all options are worth equal marks): Hard code an initialised integer variable which selects between the different tasks. e Take user input from stdin to select each task in a menu system (Advanced) Define the task as part of a header inside an input file which contains the message aned key (or key and cipher text, or just cipher text). The header could be something like: A single integer placed on the first line to indicate the task to be performed, followed by – A 2nd, optional, ine which contains a key (perhaps start the line with a “weird” character like # to indicate that it is a key), followed by The message or cipher text (Advanced-Beyond ENGG1003) Use command line arguments Each task should be implemented as a different function. Beyond that you are free to choose how many functions are implemented All tasks must be accessible from running a single c file. The GitHub repository should contain this.c file and any other required files (eg: input text)
9 Mark Allocation Total marks 12.5 Git commits (as-per Section 5): 2 marks Code commenting: 1 mark Encryption with a rotation cipher given plain text and key: 1 mark Decryption with a rotation cipher given cipher text and key: 1 mark Encryption with a substitution cipher given plain text and key:1 mark Decryption with a substitution cipher given cipher text and key: 1 mark Completing all of the above achieves a passing grade of 7/12.5 (56%) Decryption of a previously unseen cipher text encrypted with a rotation cipher 1.5 marks Decryption of a day-1 provided block of cipher text encrypted with a substitution cipher: 1 mark Decryption of an unseen block of cipher text on marking day: 1.5 marks The substitution cipher decryption marks wil be allocated based on how many letters are correctly worked out by your program. The following marks will be awarded for various cipher and plain text input methods (if multiple methods are used demonstrators may, at their digression, award marks based on the “most advanced method used at any point in the program) Hard-coded cipher and plain text: +0 marks e Cipher and plain text read from stdin: +0.5 mark e Cipher and plain text read from, and written to, files: +0.75 marks The following marks will be awarded for various task selection methods Task selection with a hard-coded variable: +0 marks Task selection with a “simple” method utilising stdin (eg: read a number without prompting the user): +0.25 marks Task selection with a “user friendly” menu system: +0.5 marks e Task selection with a file header or command line arguments: +0.75 marks At the demonstrator’s discretion, the following marks may be deducted: Comments are woefully inadequate, uninformative, or missing: -1 mark Code indentation is confusing, not attempted, or is n some way unnecessarily difficult to read:-1 mar
Expert Answer
Answer to Could Someone Please help me with this coding assignment. Please see Mark Allocation for task selections. All Code Must… . . .
OR

