Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+)
Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+)
5th Edition
ISBN: 9780137502783
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:

Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+), 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
PEN and PAPER Debugging the Pseudocode. Hand write the correct pseudocode using pen and paper. for DEBUG03-02.txt:   // This pseudocode is intended to display employee net pay values.// All employees have a standard $45 deduction from their checks.// If an employee does not earn enough to cover the deduction,// an error message is displayed.start   Declarations      string name      num hours      num rate      string DEDUCTION = 45      string EOFNAME = "ZZZ"      num gross      num net   output "Enter first name or ", EOFNAME, " to quit"   input name   if name not equal to EOFNAME      output "Enter hours worked for ", name      input hours      output "Enter hourly rate for ", name      input rate      gross = hours * rate      net = gross - DEDUCTION      while net > 0 then         output "Net pay for ", name, " is ", net      else          output "Deductions not covered. Net is 0."      endwhile      output "Enter next name or ", EOFNAME, " to quit"      input name   endif…
language JAVA
Name Format - Use Java
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