Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ please For Quest 3, you are going to create a morse code translation program using a tree structure. Here is a morse code

In C++ please image text in transcribed
For Quest 3, you are going to create a morse code translation program using a tree structure. Here is a morse code chart for reference: Specifically, your program should: 1. build a binary tree with dots going left and dashes going right. So your first left should end up with 'E' and your first right should end up with a T. The root should be a empty space. To get to 'A' you would have to go left then right. I would suggest creating a text file and loading the tree from the file. The file would look something like the following: 2. Ask the user for either morse code or a 1. If the user enters morse code, translate it to a word/phrase. This simple requires navigation of the tree for each letter. I leave it to your creativity to figure out the best interface for the user input and 2. if the user enters a word/phrase translate it to morse code. This requires a search of the tree for the letter and you will need to keep track of the path! Consider a recursive search, because when found, your recursive calls will be your path! 3. Repeat the previous until the user chooses to quit

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

(d) Estimate the factors? Which ones are significant?

Answered: 1 week ago

Question

What are the benefits of planning for growth?

Answered: 1 week ago

Question

Is this investment worthwhile? Why or why not?

Answered: 1 week ago