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
Perceptual acuity, according to Ram Charan, explains how Ted Turner became the first CEO to recognize the potential of 24-hour news and thereby created CNN. a) True  b) False
As described in Learning from Mistakes, the failure of the A380 to reach its sales goals was due to Multiple Choice:   a) misunderstanding of supplier demands.   b) good selection of hotel in the sky amenities.   c) changes in customer demands.   d) lack of production capacity.
Numerous equally balanced competitors selling products that lack differentiation in a slow growth industry are most likely to experience high: a) intensity of rivalry among competitors.   b) threat of substitute products.   c) threat of new entrants.   d) bargaining power of suppliers.
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
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning