Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB ACTIVITY 15.1.1: Lab-AL Final Project CMPSC121 or CMPSC201 In.txt has 12 letters each letter is on a separate line in the file Final Project

LAB ACTIVITY 15.1.1: Lab-AL Final Project CMPSC121 or CMPSC201 In.txt has 12 letters each letter is on a separate line in the file Final Project Requirements Write an encryption program using in.txt as 'input" You must write the code for the functions O dispArray, O readFile, O key, o encrypt, o decrypt, and o revArray. How to approach this program Test you program after each step 1. cin the filename and Read the file specified in the filename into an array. 2. for example: string fileName; cin >> fileName; infile.open(fileName); also (see lab 12.3) readFile(inFile, letters, SIZE); 0 0/100 1. Display the array (See lab 12.3) dispArray(letters,SIZE); 2. Determine offset key (see lab 13.9) Call the "key" function to determine the encryption offset key. The function will count the number of E's and A's in your "letters" Array and and add them together to create the value for "offsetKey" Return an integer to the variable "offsetKey" 3 Dienlay the offeetkov

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define fund as the term is used in governmental accounting.

Answered: 1 week ago

Question

6. List and explain important trends in compensation management.

Answered: 1 week ago