Question: 2. Write a C program, convert.cpp that computes and prints a sequence of characters. It takes as input three values of type char and three

 2. Write a C program, convert.cpp that computes and prints a

2. Write a C program, convert.cpp that computes and prints a sequence of characters. It takes as input three values of type char and three offset values of should add the offset to each character and print the resulting characters. You are required to write function definitions for the following prototypes // input two prompts the user for a character and an // and sends these two values back in call by refere // parameters void input two (char& ch, int& offset); // convert is passed a character and an integer offs // its parameters. It sends back in a call by refere // parameter the character that is the sum of the gi // character and the given offset. zoid convert (char ch, int offset, char& answer); A sample run might be (user input in bold) Enter a character I Enter an offset Enter a character m Enter an offset Enter a character p Enter an offset 4 1 2 Your decoded word is: Hot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!