Kapalı

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

Beceriler: C++ Programlama

Daha fazlasını gör: 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

İşveren Hakkında:
( 7 değerlendirme ) Houston, United States

Proje NO: #17219953

Bu iş için 36 freelancer ortalamada $28 teklif veriyor

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?

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(101 Değerlendirme)
7.2
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(251 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(80 Değerlendirme)
6.5
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(114 Değerlendirme)
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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(51 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(46 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(11 Değerlendirme)
4.6
in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(20 Değerlendirme)
4.5
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(26 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(18 Değerlendirme)
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

in %bids___i_period_sub_35% gün içinde25%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)
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 Daha Fazla

in %bids___i_period_sub_35% gün içinde14%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(10 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
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?

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(6 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0