Build a basic cipher base class

Assignment Help C/C++ Programming
Reference no: EM13509998

Analyze a basic set of requirements for a problem

Compose basic C++ language programs

Create basic test cases for a program

Apply arrays, strings, and pointers

Declare and define constructors

Declare and define destructors

Compare and contrast public and private access specifiers in C++

Describe what is an attribute or data member of a class

Describe what is a method of a class

Apply and implement overloaded functions

Distinguish between pass-by-value and pass-by-reference

Discuss classes versus objects

Build a basic cipher base class that may be derived from for the ciphers described below.

1. Encode a text message using the Caesar Cipher, a mono-alphabetic substitution cipher. You will need to input the KEY number from 1 to 25. Do not encode special characters or white space. All encoded text should be upper case only. You should be able to save an encoded message to a file.

2. Decode a Caesar Cipher text. You will have two cases:

a. You are given the KEY.

b. You have to break the KEY by brute force trial and error.

3. Build a randomly generated simple substitution cipher and use it to encode messages. Again the encoded messages will be in all upper case letters only. Only encode the letters.

4. Build a method for performing frequency analysis to decode a substitution cipher. Your system should determine the frequency of characters in the encoded message and generate it's guess on the decoding by building a lookup table as an array and supporting class that would hold each encoded pair of characters.

5. Build a standard text-based wrapper for the application.

Reference no: EM13509998

Questions Cloud

What is the current dividend : Dividends are expected to continue to grow at a rate of 8% annually. If investors in High Brow require a 13% rate of return, what is the current dividend?
Semiconductor material to construct transistors : • What are three elements, other than the commonly used silicon and germanium, that are used as semiconductor material to construct transistors ?
Why greene company uses a plantwide overhead rate : Greene Company uses a plantwide overhead rate with direct-labor hours as the allocation base. Use the following information to solve for the amount of direct-labor hours estimated per unit of product G2.
Define how negative and positive charges compare : Write an explanation of how you can predict the motion of a charged hockey puck that is moved by other charged pucks. How negative and positive charges compare and contrast
Build a basic cipher base class : Build a randomly generated simple substitution cipher and use it to encode messages. Again the encoded messages will be in all upper case letters only.
Why are standards important for nics connectors and media : Why are standards so important for NICs, connectors, and media
Design a lr test to choose between the hypotheses : Design a LR test to choose between the hypotheses
What is the profitability index for the project : Assuming the company's cost of capital is 12 percent, what is the profitability index for the project? (Round to one decimal place.)
Design a dc motor control system to run : Design a DC motor control system to run the 48V DC motor at 40rpm up to max load of the motor

Reviews

Write a Review

C/C++ Programming Questions & Answers

  The two major modifications are the instruction of pointers

the two major modifications are the instruction of pointers and the calculation of mortgage interest rates.requirements

  Implement a class called hugeinteger

Using your own Linked List implementation (see attached), implement a class called HugeInteger that represents arbitrary sized integers and supports addition only. You may only use the tools that have introduced in class, and you MAY NOT use Java'..

  Declare a pointer to an array of 500 school

In a main() demonstration function, declare a pointer to an array of 500 School objects and include code to handle any memory allocation errors that occur. in a loop, declare 500 array objects at a time, continuing to rewrite the main() functions ..

  Write definitions of the functions to overload the operators

Write the definitions of the functions to overload the operators defined in parts a to c and write  a  test  program  that  tests  various  operations  on  the class rectangleType.

  A password must have at least eight characters

A password must have at least eight characters. A password must consist of only letters and digits. A password should contain at least one uppercase letter. A password must contain at least two digits.

  Use the convention that all years have 360 days

In writing the days() function, use the convention that all years have 360 days and each month consists of 30 days. The function should return the number of days for any Date structure passed to it. Write a main () function to test your function.

  Dynamically allocates an array large enough

Write a program that dynamically allocates an array large enough to hold a number of test score. The size of the array should be input by the user

  Write a pseudocode statement

Assume that a program has two string variables named str1 and str2. Write a pseudocode statement that assigns an all uppercase version of str1 to the str2 variable. is str.add(str1,str2) part of it?

  Modify the program to detect and report

Syntax errors including mismatched parentheses, invalid operator, missing comma, semicolon or assignment operator should be reported as a syntax error and the program should proceed to the next expression.

  Pros and cons of choosing two servers

Classify the two alternatives in terms of what type of application architecture they use. b. Outline the pros and cons of the two alternatives and make a recommendation to Fred about which is better.

  C program to compute parking fare for customers

Write C program to compute parking fare for customers who park their cars in parking lot when following information is provided: A character showing type of vehicle: C for car, B for bus and T for truck

  Counts the number of numbers between 150 and 200

create a program that counts the number of numbers between 150 and 200. This is what I have so far, but it's not working. It is an array of 500 number, I did not include the array because of obvious reasons.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd