Closed

encode and decode messages

You will be provided with an input file that has a series of encoded messages. You will need to read in the file and decode the messages. You must check to make sure that the input file has been opened.

The first 26 lines of the input file will tell you what each coded letter should equal. For example: ‘A = Z’ means that for every A in a coded message, it should be replaced with a Z. You should store this information in an array for easy decoding. This set of information will always be presented A through Z so that you may assign an array position to a letter, i.e., index 0 will always be A.

The next number in the file will be the number of coded messages that will be contained in the file. This number should be used to make array of the structs (i.e., the number is the size of the array).

You will need to create a struct that contains an integer type of variable that keeps track of which message number is contained in the struct, and two strings, the coded message and the decoded message.

struct messages{

int messageNum;

string codedMessage;

string decodedMessage;

};

Then, using the getline function, you should read in a whole line of the file at a time and store it in the appropriate struct location (i.e., the string member variable of the struct used to store the coded message). You will then decode the message and store it in the appropriate struct location. A function is recommended for decoding, but not required.

Once all the messages are decoded, you should go over the array of struct and print each element with its corresponding message number, the coded message, and the decoded message, to the file [login to view URL]

3 - Example Input and Output

You have been provided with 5 input files for each test case in Black board(BB) and a sample output file too. BB consist of 5 input files namely [login to view URL] for test case 1, [login to view URL] for test case 2, [login to view URL] for test case 3, [login to view URL] for test case 4, [login to view URL] for test case 5.

You need to provide input file name in zybooks, for example : [login to view URL]

Contents of [login to view URL]

A = Z

B = Y

C = X

D = W

E = V

F = U

G = T

H = S

I = R

J = Q

K = P

L = O

M = N

N = M

O = L

P = K

Q = J

R = I

S = H

T = G

U = F

V = E

W = D

X = C

Y = B

Z = A

2

SLD NZMB KILTIZNNVIH WLVH RG GZPV GL XSZMTV Z ORTSG YFOY?

MLMV, GSZG’H Z SZIWDZIV KILYOVN

OUTPUT

It should generate a file named [login to view URL]

Contents of [login to view URL] :

Message Num: 1

Coded Message

SLD NZMB KILTIZNNVIH WLVH RG GZPV GL XSZMTV Z ORTSG YFOY?

Decoded Message

HOW MANY PROGRAMMERS DOES IT TAKE TO CHANGE A LIGHT BULB?

Message Num: 2

Coded Message

MLMV, GSZG’H Z SZIWDZIV KILYOVN

Decoded Message

NONE, THAT’S A HARDWARE PROBLEM

Evner: C++ Programmering

Se mere: encode decode mysql php, encode decode php mysql, freelance ioncube encode decode, encoding and decoding in communication ppt, message encoding, stuart hall encoding decoding pdf, stuart hall encoding decoding example, difference between encoding and decoding in communication, encoding and decoding in the television discourse, meaning of encoding, decoding messages examples, software development, c programming, software architecture, c++ programming, programming, encode decode ioncube, encode decode java, md5 encode decode php, iphone dialer name messages problem

Om arbejdsgiveren:
( 7 bedømmelser ) Houston, United States

Projekt ID: #17219953

36 freelancere byder i gennemsnit $28 på dette job

freelancerLatino

Hello, I am expert with C and C++ as you can see... also, I manage c++ data structures very well. When do you need it?

$30 USD på 1 dag
(101 bedømmelser)
7.2
$60 USD på 1 dag
(251 bedømmelser)
7.0
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Flere

$40 USD på 1 dag
(80 bedømmelser)
6.5
$22 USD på 1 dag
(114 bedømmelser)
5.9
crazynightwalker

This encoding-decoding program that you described is simple to create. I can do it in less than 24 hours, in C++ as you requested. I'm ready to start, just let me know

$20 USD på 1 dag
(51 bedømmelser)
5.8
kcbStar

Hello, I am interested in this project and so wanted to discuss more it in details. I have a lot of experience in C++ programming. I will keep your time. And I will provide you quality work according to your instrument Flere

$25 USD på 1 dag
(46 bedømmelser)
5.4
CPythonMan

Hello. I am very interested in your project. I am the best Python, C ++ and C language team. I am a real expert of C/C++ language. I am an algorithm designer too. I have previously done many types of C progra Flere

$25 USD på 1 dag
(11 bedømmelser)
4.6
$100 USD in 3 dage
(20 bedømmelser)
4.5
$25 USD på 1 dag
(26 bedømmelser)
4.1
mehfuza

Dear Sir, I have read and understood your project requirements and I'm very interested to work on it. I have experience of programming. I write well formatted code with comments. Looking forward to work on your project Flere

$22 USD på 1 dag
(18 bedømmelser)
4.4
constantintonu93

Hi, I am a C developer. I can make this program in few hours. Please contact me so we can discuss further :). Thanks, Constantin

$25 USD in 0 dage
(2 bedømmelser)
3.5
gszo123zl

I have ~7 years of experience in C++ and over 3 in C#. I also write some Python code and recently Haskell, so the task will not be a problem for me. Please contact me to discuss the details. I did similar encoding Flere

$14 USD in 3 dage
(10 bedømmelser)
3.6
TetyanaS

The examples of my codes you can see in my books. I am author of these books: - Object-oriented programming in C++:  [login to view URL] - 150 C++ Programming Assignments. Variants of Tasks & Examples of Code: htt Flere

$25 USD på 1 dag
(2 bedømmelser)
2.7
CVipulS

I've tackled similar algorithms assignments before. Will you please specify compiler & target OS desired? I develop with C++, for engineering native solutions. How soon should this be begun?

$29 USD på 1 dag
(3 bedømmelser)
2.5
abhyudayasrinet

I am a Masters student at Arizona State University. I have been a software developer for 2 years prior to this at Microsoft. I've been a competitive programmer during my undergrad and your task is a cakewalk for me. I Flere

$15 USD på 1 dag
(6 bedømmelser)
2.6
thewebscraper

Hi, I am a Senior Software Engineer in Silicon Valley. I can help you with your Encode/Decode project. We will surely be done in less than 24 hours. Guaranteed high quality! Let's start right away.

$30 USD på 1 dag
(3 bedømmelser)
1.8
mashreghali

I have done a similar project before. I can do your project in 1 day. Please let me know if you are interested.

$25 USD på 1 dag
(1 bedømmelse)
1.0
SimbaMoor

Hi, Nice to meet you. I'm C/C++ expert. I'll finish in only a few hours. Let's discuss with chat. thanks.

$100 USD på 1 dag
(2 bedømmelser)
0.7
mosealex

Will give good quality of code which will be modular Please let me know do you need this in windows or unix and about deadlines

$77 USD på 1 dag
(0 bedømmelser)
0.0
rustambaku13

I was doing such things all the time in the university. You can check my Github account and see my C++ assignments: [login to view URL] I Can get it done in a day or less.

$25 USD på 1 dag
(0 bedømmelser)
0.0