Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Morse code tree diagram

26/04/2021 Client: muhammad11 Deadline: 2 Day

Programming Assignment 6: Morse Code Lookup BST I. Learner Objectives: At the conclusion of this programming assignment, participants should be able to: Design, implement, and test a Binary Search Tree (BST) Apply a BST for looking up Morse Codes Discuss classes versus objects Implement container classes II. Prerequisites: Before starting this programming assignment, participants should be able to: Analyze a basic set of requirements for a problem Compose basic C++ language programs Create basic test cases for a program Apply arrays, strings, and pointers Design, implement, and apply classes Design, implement, and apply linked lists III. Overview & Requirements: Recall, a Binary Search Tree (BST) data structure is a nonlinear data structure. A BST is traversed by starting at the root pointer. The root node is the first node inserted into the tree. Nodes are inserted into the tree such that all items to the left of the root node are less than, and all items to the right of the root are greater than its item. Also, this property holds true for any particular node in the tree. We will visualize a BST in the following way: 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 BSTNode structure For the first part of the assignment, you should start by designing the BSTNode class for the BST. Create a class for the BSTNode 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 BSTNode objects. You must have a constructor that accepts arguments to set the English text character and Morse code string. 2. (50 pts) Create the BST code and create a Morse lookup BST Next, you should be able to read in the Morse table from a file called “MorseTable.txt”. You should rearrange the Morse table in the file to make sure that your lookup tree is balanced. I recommend that you diagram a tree that provides a balanced tree so that you know how to order your “MorseTable.txt” file. Think about the order of insertions. However, the tree does not have to balance itself. The tree should be built by the constructor for the BST. This means the constructor must open and read the file, create nodes for each character in the tree, insert the nodes into the tree (using an insert () function), and close the file. Note: the tree object could be declared as const, since all changes to it are being performed in the constructor. However, if you declare your object as a const, be sure to also declare your print () and search () functions as const. You should arrange the tree so that it is alphabetically ordered from left to right. Create a print ( ) function that uses recursion to traverse the tree in order (left most printed first). Also, build a search ( ) function that will return the Morse code string for each English character searched for. Do you need to return a found indicator from the search function? Should you use recursion? Finally, implement a destructor, which destroys the entire tree. Morse Code Alphabet: A .- N -. 0 ----- B -... O --- 1 .---- C -.-. P .--. 2 ..--- D -.. Q --.- 3 ...-- E . R .-. 4 ....- F ..-. S ... 5 ..... G --. T - 6 -.... H .... U ..- 7 --... I .. V ...- 8 ---.. J .--- W .-- 9 ----. K -.- X -..- FULLSTOP L .-.. Y -.-- Comma ‘,’ --..-- M -- Z --.. Query ‘?’ ..--.. .-.-.- 3. (30 pts) Putting the pieces together First, print the current tree. Next, you must open a file called “Convert.txt”, which consists of English alphabetic characters, spaces, commas, and periods. You must “look” for each English character with a search ( ) function on the BST, and print the Morse code string for that character. For each character in “Convert.txt”, convert the character to a Morse code string. Each Morse character in the string will be separated by a space. Each complete Morse string will be separated by three spaces.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Buy Coursework Help
George M.
Engineering Exam Guru
Math Guru
Professional Accountant
Custom Coursework Service
Writer Writer Name Offer Chat
Buy Coursework Help

ONLINE

Buy Coursework Help

I will cover all the points which you have mentioned in your project details.

$24 Chat With Writer
George M.

ONLINE

George M.

I have read and understood all your initial requirements, and I am very professional in this task.

$24 Chat With Writer
Engineering Exam Guru

ONLINE

Engineering Exam Guru

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$19 Chat With Writer
Math Guru

ONLINE

Math Guru

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$17 Chat With Writer
Professional Accountant

ONLINE

Professional Accountant

I will cover all the points which you have mentioned in your project details.

$16 Chat With Writer
Custom Coursework Service

ONLINE

Custom Coursework Service

I have read and understood all your initial requirements, and I am very professional in this task.

$48 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

How do you calculate the case mix index - Autodesk inventor icons list - Nursing. - Simplify the expression 2 5i 1 5i - What is the slope and y intercept of y 2 - Childs v.weis - Break even sales under present and proposed conditions - Dart controls 250 series - The three crosses william lester - Week 6 E-marketing - CHRISTIAN SERVANT LEADERS - He li be bcnof ne - OperationsManagementForLeaders_Assessment1 - Peer and self reflection critique assignment. - Things by eloise greenfield - Based on this model, households earn income when purchase in resource markets. - Destroying european wasp nests - Latvian song and dance festival 2013 - Robert frost the death of the hired man - Similarities and differences between individual and family counselling - Examination day henry slesar - Dr conor o shea cork - After the accounts have been adjusted at april 30 - Small Group Communication - Glifeeis.grantham.edu - A fax machine uses 0.110 a of current - Maned wolf interesting facts - Kaizen events lean project format - Marissa toma (is taking) ____ en la universidad. - Https apps cvshealth com vpn index html - Corporate penalties for violating the fcpa include - Apple project management case study - Blade element theory example - Paul revere's ride summary - Final paper - What Is the Best Type of Marketing Research? - Current facility assignment p2 parole denver west metro region - 2 questions - Each question needs 3 answers - with 1 APA reference for each answer - Each answer atleast 200 words - Geriatric Depression - 2 pages - Matilda chapter 20 summary - Charging system output test - Unit 8 Assignment - Griffith university late submission penalty - Wow the not so friendly skies - What did egyptian men wear - Breadbasket of the world biome - Informative speech attention getter examples - Award maps university of northampton - Classical conditioning marketing examples - Terms used in levelling - One page paper - Musical theatre powerpoint - Http webspace ship edu cgboer perscontents html - How can you connect mccarthyism to the salem witch trials - My Sister's Keeper: Ethics Paper - When adding a randomly chosen new stock - A sample of glucose c6h12o6 contains - The effective public manager 5th edition pdf - How to install ankascrew - Ch3 ch3 ch3 iupac name - Case 8 data analytics of boutique hotel reservations - Boiling chips in distillation - Reflection on learning - Hcf mid hospital and silver plus extras - Sydney secondary college uniform - Allison has 5 times as many baseball cards - Quaint means of manipulation crossword - My micros pizza hut - Essay - Advanced Ergonomics - Calorimetry specific heat capacity of metals lab report - Bloomberg businessweek b school connection program - What is kks code - Countable and uncountable sets in discrete mathematics - Her three days pdf - Principles of Ethics 445N - Ato occupation codes 2021 - Positive and negative number cards - Area of compound shapes - Jetblue employee password reset - Blood music greg bear sparknotes - Nimbus inc makes brooms and then sells them - Jesus son of pandera - Lesson 7 distance on the coordinate plane page 435 - Culture shock case study answers - Beta distribution pmp - Business proposal for supply of stationery - How is tesco influenced by stakeholders - Survival of the sickest pdf free book - Christian Faith And Life - Trends in retailing ppt - Rmivuxg how to remember - Solitaire company's fixed budget performance report for june follows - University of edinburgh matriculation number - 8 Page case study on Innovation: Gopro - True vision outlaw 16 tripod stand reviews - Why did the emancipation proclamation score big in europe - Rail fence cipher program in python - Dennis gilbert and joseph kahl model of social class - La señora johnson es diabética y no puede comer azúcar