Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE THIS PROGRAM IN C LANGUAGE I. Programming Instructions: 1. Header files that you need to include unless you prefer to implement some necessary functions

WRITE THIS PROGRAM IN C LANGUAGE

I. Programming Instructions:

1. Header files that you need to include unless you prefer to implement some necessary functions by yourself: #include #include #include #include

2. Functions you might need to use: malloc(); // function defined in stdlib.h free(); // function defined in stdlib.h strtok(); // function defined in string.h strlen(); // function defined in string.h toupper(); // function defined in ctype.h isalpha(); // function defined in ctype.h isdigit(); // function defined in ctype.h scanf(); // function defined in stdio.h gets(); // function defined in stdio.h printf(); // function defined in stdio.h

3. Essential knowledge that will be used: struct, pointer, array, dictionary, string tokenization, if statement, while statement, function call/definition

II. Morse Code Instructions: 1. Separating letters within one word using one space; 2. Separating words within one sentence using three spaces; 3. The conversion table is as follow:

image text in transcribed

Test Instructions:

1. Input: One sentence consisting of a few words(both uppercase and lowercase) and numbers. For example, Go 2017; 2. Output: Corresponding Morse codes of the input in accordance with the conversion table below. For example, --. --- ..--- ----- .---- --...;

TUVWXYZ 1 2 3 4 5 6 7 8 9 0 ABCD"E F G H I J K L M N O P Q R S

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions