You need to create a simple decryption program that involves setting up an array of characters A through Z and the space character. This array will be used to decode a user's string message. the user will enter a series of integer values that your program will read in and store in an array. Then, the program will use the array of integer input values to look up the corresponding characters and build a string that contains a message.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.1: One-dimensional Arrays
Problem 7E: (Practice) Write a program to input eight integer numbers in an array named temp. As each number is...
icon
Related questions
Question
100%
You need to create a simple decryption program that involves setting up an array of characters A through Z and the space character. This array will be used to decode a user's string message. the user will enter a series of integer values that your program will read in and store in an array. Then, the program will use the array of integer input values to look up the corresponding characters and build a string that contains a message.

Requirements:
  • Allow the user to enter a series of numbers separated by a space. Read in all the integer values, determine what character they represent, and build a string from these characters.
  • Store the decoded message string you build in an array.
  • Display the decoded message string to the user.
  • You must create a procedure that receives a reference (pointer) to an array to store the decoded message, a reference to an array containing the user's input values (coded message), and the number of input values the user entered. This procedure cannot get the input or display the output. It must simply look through the array of input values, determine the character it represents, and builds a string in a separate array that represents the decoded message.
  • You should make use of comments in your code.

Example Program:
How many values are in the message? 5
Enter the values of the coded message:
8
5
12
12
15 

The decoded message: hello
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr