[Solved]Use C Make Key String Ctype Library Hw2h Contains Include Include Char Morsetokey Char Cha Q37061895
USE C TO MAKE A KEY – NO STRING OR CTYPELIBRARY
hw2.h contains:
#include<stdio.h>
#include<stdlib.h>
char morseToKey(char*,char* );
——————–
hw2.c:
![#include #include #include #include morsecode.h hw2.h <stdlib.h> <stdio.h> char* MorseCode[] (MorseExclamation, MorseDblQ](https://media.cheggcdn.com/media%2F57f%2F57fd2d2b-fa51-4e55-9ef0-735d4e96cda4%2FphpIQUDso.png)

#include #include #include #include “morsecode.h” “hw2.h” <stdlib.h> <stdio.h> char* MorseCode[] (MorseExclamation, MorseDblQoute, MorseHashtag, Morses, MorsePercent, MorseAmp, MorseSglQoute, Morse0Paren, MorseCParen, MorseStar, MorsePlus, MorseComma, MorseDash, MorsePeriod, MorseFSlash, Morse, Morse1, Morse2, Morse3, Morse4, Morse5, Morse6, Morse7, Morse8, Morse9, MorseColon, MorseSemiColon, MorseLT, MorseEQ, MorseGT, MorseQuestion, MorseAt, MorseA /*22*/, MorseB, Morsec, MorseD, MorseE, MorseF, MorseG, MorseH, MorseI, MorseJ, Morsek, MorseL, MorseM, MorseN, Morseo, MorseP, MorseQ, MorseR, Morses, MorseT, Morseu, MorseV, Morsew, Morsex, MorseY, Morsez: /*Part 1 Functions*/ void createKey(char* keyphrase, char* key) /Insert code here Create the following function, createKey, to generate a mixed alphabet key based on a given string phrase k H Extracts all unique alphabet characters from the * input string ‘keyphrase’ in the order of their appearance *and places the capital letter version of the letter into key Any remaining alphabet characters which did not appear *in the phrase are added to ‘key’ in alphabetical order * key will always be 26 characters in length and contain only CAPITAL letters of the alphabet. Prof. Jennifer Wong-Ma ICS53/53L Principles in System Design @param keyphrase Starting address of the keyphrase to build the key from *@param key Pointer to the starting address of 26-bytes of memory to store the output message void createKey (char* keyphrase, char* key); Example phrase “Computer Science Is Fun.” creates the key “COMPUTERSINFABDGH3KLQWxYz” (not null terminated) phrase “I’LL be BACK!!!I!!!!!” creates the key “ILBEACKDFGH3MNOPORSTUVWXYZ” (not null terminated) phrase “” (empty string) creates the key “ABCDEFGHIJKLMNOPQRSTUVWXYZ” (not null terminated) Show transcribed image text #include #include #include #include “morsecode.h” “hw2.h” char* MorseCode[] (MorseExclamation, MorseDblQoute, MorseHashtag, Morses, MorsePercent, MorseAmp, MorseSglQoute, Morse0Paren, MorseCParen, MorseStar, MorsePlus, MorseComma, MorseDash, MorsePeriod, MorseFSlash, Morse, Morse1, Morse2, Morse3, Morse4, Morse5, Morse6, Morse7, Morse8, Morse9, MorseColon, MorseSemiColon, MorseLT, MorseEQ, MorseGT, MorseQuestion, MorseAt, MorseA /*22*/, MorseB, Morsec, MorseD, MorseE, MorseF, MorseG, MorseH, MorseI, MorseJ, Morsek, MorseL, MorseM, MorseN, Morseo, MorseP, MorseQ, MorseR, Morses, MorseT, Morseu, MorseV, Morsew, Morsex, MorseY, Morsez: /*Part 1 Functions*/ void createKey(char* keyphrase, char* key) /Insert code here
Create the following function, createKey, to generate a mixed alphabet key based on a given string phrase k H Extracts all unique alphabet characters from the * input string ‘keyphrase’ in the order of their appearance *and places the capital letter version of the letter into key Any remaining alphabet characters which did not appear *in the phrase are added to ‘key’ in alphabetical order * key will always be 26 characters in length and contain only CAPITAL letters of the alphabet. Prof. Jennifer Wong-Ma ICS53/53L Principles in System Design @param keyphrase Starting address of the keyphrase to build the key from *@param key Pointer to the starting address of 26-bytes of memory to store the output message void createKey (char* keyphrase, char* key); Example phrase “Computer Science Is Fun.” creates the key “COMPUTERSINFABDGH3KLQWxYz” (not null terminated) phrase “I’LL be BACK!!!I!!!!!” creates the key “ILBEACKDFGH3MNOPORSTUVWXYZ” (not null terminated) phrase “” (empty string) creates the key “ABCDEFGHIJKLMNOPQRSTUVWXYZ” (not null terminated)
Expert Answer
Answer to USE C TO MAKE A KEY – NO STRING OR CTYPE LIBRARY hw2.h contains: #include #include char morseToKey(char*, char* ); —–… . . .
OR

