CSC110 - Cryptography And ASCII Characters - Computer Science Assignment Help

Download Solution Order New Solution
Assignment Task

 

1. Write a function called ord0() that takes as input one of the 95 printable ASCII characters, and returns a number between 0 and 94 associated with the order of the 95 printable characters. You can call the ord() function in this function. You should get the following output from this function:

 

2. Write a function called chr0() that takes as input one a number from 0 to 94 and returns the character in that position among the 95 printable characters. This function can call the chr() function. You should get the following output from this function:

 

3. Write a function called caesar95() that computes a Caesar cipher where the input is a string containing a combination of any of the 95 printable characters, and a shift value. The function should return the cipher text with the characters shifted by the specified amount. You can use the Caesar cipher function that we wrote in class as a starting point. You can find it on the Sample Code page. Note, you will not need to use the list of letters in the alphabet. Instead, you will use the functions that you wrote above to convert from a letter to its corresponding number.

 

4. Write a main function that asks the user to enter a string and a shift value and then prints the cipher text computed by the Caesar function. Your main function should loop and print results until the user enters the string “Done”. Be sure to use exception handling to ensure that a valid integer is entered for the shift value.

 

 

This (CSC110) Computer Science Assignment has been solved by our Computer Science experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.