Starting Out With Visual C# (5th Edition)
Starting Out With Visual C# (5th Edition)
5th Edition
ISBN: 9780135183519
Author: Tony Gaddis
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 8, Problem 10PP
Program Plan Intro

MORSE CODE CONVERTER

Program plan:

  • Design the page.
    • Add title to the form as “Morse Code Converter”.
    • Place a label and edit its text property as “Enter a String”.
    • Add a textbox control below the label.
    • Place a list box control next to the text box.
    • Add a button control and edit its text property as “Convert”.
  • In the code window, write the code to compute the Morse code.

 Form design:

  • Open Microsoft Visual Studio 2010.
  • Select C# and click Windows Forms Application.
  • Name the project as Morse_code.
  • Store the file in D:\Clearly C#\ Morse_code.
  • The crated project displayed with a form with the name of Form1.
  • Select the Form1 and add the necessary components.
  • In property window, change the Form name and add changes for Form elements properties.
  • Click the File menu->Save All.

View of the form design in the IDE:

Starting Out With Visual C# (5th Edition), Chapter 8, Problem 10PP

The form control properties in the properties window are as follows:

ObjectPropertySetting
Form1TextMorse Code Converter
label1TextEnter a String
TextBox1Text(Empty)
listBox1List(Empty)
button1TextConvert
  • Add a label control to display enter a string.
  • Add the text box control to get the input string from the user.
  • Add the list box control to show the output.
  • Add the button control to execute the code.

Blurred answer
Students have asked these similar questions
C# language MORSE CODE CONVERTER Design a program that asks the user to enter a string and thenconverts that string to Morse code. Morse code is a code whereeach letter of the English alphabet, each digit, and variouspunctuation characters are represented by a series of dots anddashes. Table 8-9 shows part of the code.
Odd Even Number Problem Description Even Numbers are integers that are exactly divisible by 2, whereas an odd number cannot be exactly divided by 2. Example of even numbers are 2,4,6,8 and odd numbers are 1, 3, 5, 7, 9.   Input The first line input contains an integer, which determines the number of test cases. Each of following lines represent sequence of integers that ends with 0.   2 34 1 8 5 22 0 10 7 16 -2 0   Output For each test case, the output will present the size of oddQueue and evenQueue following with the integers of odd and even numbers.   oddQueue 2: 1 5 evenQueue 3: 34 8 22 oddQueue 1: 7 evenQueue 3: 10 16 -2   ** Your task is to write a program that will read the input and identify whether it is an odd number or even number.   /******************************************************************************* Compilation: javac Queue.java** The Queue class represents a first-in-first-out (FIFO) queue of generic items.* It supports the usual enqueue and dequeue…
excel vba Program a function that removes all occurrences of the selected character from the text string. Therefore, the function will have two parameters, one for entering a cell with text and the other for entering a character that needs to be omitted.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning