C++

profileh2o
lab_21.docx

Lab 21 - Encode a sentence

Top of Form

Bottom of Form

Content

· https://learn.csuchico.edu/images/ci/sets/set01/document_on.gif

l21

Create a program reads in a senctence and encodes it.  Ask the user for the sentence, a mulitplier and an adder. You will use this logic in project 5.

Example (keyboard input shown in bold):

What is your multiplier?

4

What is your adder?

3

Enter in a sentence you want encrypted

The butler did it

Encrytped: 

339 419 407 131 395 471 467 435 407 459 131 403 423 403 131 423 467