CSC 303: DIGITAL LOGIC AND COMPUTER DESIGN CSC 219: Programing in C Lab 7 20 Points Due Mar 24, 2022 Using functions, string manipulation and dynamic memory allocation A common typing error is to...

1 answer below »
Refer to attached file


CSC 303: DIGITAL LOGIC AND COMPUTER DESIGN CSC 219: Programing in C Lab 7 20 Points Due Mar 24, 2022 Using functions, string manipulation and dynamic memory allocation A common typing error is to place your hands on the keyboard one position to the right of the correct position. The “Q” is typed as “W” and “J” is typed as “K” and so on. Your task is to write a C program to decode a message type in the manner. The input consists of a string which contains uppercase letters, spaces, periods and slashes (/). Spaces remain as spaces in the output. Otherwise, you are to replace each letter, period and slash with the symbol immediately to its left on the keyboard. Sample input: YJOD OD JSTF/ Sample output: THIS IS HARD. Your program should do the following: · Prompt for and read an input string. · Use strlen to find the length of the input string. · Dynamically allocate memory to hold the output string, which is to be the same length as the input string. Don’t forget \0. · Write a function which takes a single character from the input string and returns the correct character of the output string. · Build the output string one character at a time, using the above function. · Display the output string.
Answered Same DayApr 18, 2022

Answer To: CSC 303: DIGITAL LOGIC AND COMPUTER DESIGN CSC 219: Programing in C Lab 7 20 Points Due Mar 24, 2022...

Kshitij answered on Apr 19 2022
102 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here