Menu

(Solved) In this assignment you will be using a BST to convert English characters to Morse code strings. Morse code is a famous coding scheme that assigns

in C++

In this assignment you will be using a BST to convert English characters to Morse code strings. Morse code is a famous coding scheme that assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters. In sound-oriented systems, the dot represents a short sound and the dash represents a long sound. Other representations of dots and dashes are used with light-oriented systems and signal-flag systems (from Deitel and Deitel C How to Program).

1. (15 pts) Defining the BST Node structure

For the first part of the assignment, you should start by designing the BST Node class for the BST. Create a class for the BST Node data that will have as its members a character and a string. The character will hold the English text character, and the string will hold the corresponding Morse code characters for that English text character. You should also define left and right child pointers that point to BST Node objects. You must have a constructor that accepts arguments to set the English text character and Morse code string.

Expert Answer


Answer to In this assignment you will be using a BST to convert English characters to Morse code strings. Morse code is a famous coding scheme that assigns ….
OR