Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Class Name Method In Class Purpose of the Method Input getInput() Ask the user to enter a text Return the original text Swap getSwap() Receive

Class Name

Method In Class

Purpose of the Method

Input

getInput()

  1. Ask the user to enter a text
  2. Return the original text

Swap

getSwap()

  1. Receive the original text from the caller.
  2. Swap all the vowels based on the setting given in the case study
  3. Return the processed text

Inverse

getInverse()

  1. Receive the swapped text from the caller
  2. Inverse the swapped text using the rule given in the case study
  3. Return the inversed text

MorseCode

convertMorse Code()

  1. Receive the inversed text from the caller
  2. Convert all alphabet and numeric to Morse Code alphabets
  3. Return the final Morse Code text

Encrypt

main()

  1. The main class and method in the program
  2. Call methods of other classes following the steps given in the case study
  3. Display the final Morse Code text to console
  4. Ask the user if they wish to try again or not.
  5. If the user chooses to try again, restart from the first step. If not, the program will display Thank you and ends.

Using the information given in Table 1, draw a complete class diagram to represent the communication between the classes. Each method must include the possible parameter and return data type. (20 marks)

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions