CIS 22B Lab 1 Simple Cryptography
Topics: New, Delete, Characters, Strings, C++ strings, C strings
For all assignments in CIS 22B, use heading comments at the top with the following format:
Description of problem:
a few lines describing input, activity, and output of the program
Cryptography — the science of secret writing — is an old science; the first recorded use was well before
1900 B.C. An Egyptian writer used previously unknown hieroglyphs in an inscription.
We will use a simple substitution cypher called rot13 to encode and decode our secret messages.
ROT13 ("rotate by 13 places", sometimes hyphenated ROT-13) is a simple letter substitution cipher that replaces a letter with the 13th letter after it, in the alphabet. ROT13 is a special case of the Caesar cipher which was developed in ancient Rome.
(letter above equals below, and vice versa)
As you can see, A becomes N, B becomes O and so on.
Your job is to write a program, with at least four functions, including main, which must do the following:
Input will be a string of no more than 25 characters. Blanks get replaced with blanks.
Do not worry about punctuation; there will be no punctuation in the string.
ALPHABET becomes NYCUNORG
Test your program with the following strings:
I’ll be using other strings to test your code.
Some suggestions (NOT requirements):
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of