EBK STARTING OUT WITH VISUAL C#
5th Edition
ISBN: 9780135204818
Author: GADDIS
Publisher: VST
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
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:
The form control properties in the properties window are as follows:
Object | Property | Setting |
Form1 | Text | Morse Code Converter |
label1 | Text | Enter a String |
TextBox1 | Text | (Empty) |
listBox1 | List | (Empty) |
button1 | Text | Convert |
- 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.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
C# language
MORSE CODE CONVERTERDesign 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.
Needs to be two labels, two text boxes and click button for conversion
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.
Chapter 8 Solutions
EBK STARTING OUT WITH VISUAL C#
Ch. 8.2 - Prob. 8.1CPCh. 8.2 - Prob. 8.2CPCh. 8.2 - Prob. 8.3CPCh. 8.2 - Prob. 8.4CPCh. 8.2 - Prob. 8.5CPCh. 8.3 - Prob. 8.6CPCh. 8.3 - Prob. 8.7CPCh. 8.3 - Prob. 8.8CPCh. 8.3 - Prob. 8.9CPCh. 8.3 - Prob. 8.10CP
Ch. 8.3 - Prob. 8.11CPCh. 8.3 - Prob. 8.12CPCh. 8.4 - Prob. 8.13CPCh. 8.4 - Prob. 8.14CPCh. 8.4 - Prob. 8.15CPCh. 8.4 - Prob. 8.16CPCh. 8.4 - Prob. 8.17CPCh. 8.4 - Prob. 8.18CPCh. 8.5 - Prob. 8.19CPCh. 8.5 - Prob. 8.20CPCh. 8.5 - Prob. 8.21CPCh. 8.5 - Prob. 8.22CPCh. 8 - Prob. 1MCCh. 8 - Prob. 2MCCh. 8 - Prob. 3MCCh. 8 - Prob. 4MCCh. 8 - Prob. 5MCCh. 8 - Prob. 6MCCh. 8 - Prob. 7MCCh. 8 - Prob. 8MCCh. 8 - Prob. 9MCCh. 8 - Prob. 10MCCh. 8 - Prob. 11MCCh. 8 - Prob. 1TFCh. 8 - Prob. 2TFCh. 8 - Prob. 3TFCh. 8 - Prob. 1SACh. 8 - Prob. 2SACh. 8 - Prob. 3SACh. 8 - Prob. 4SACh. 8 - Prob. 5SACh. 8 - Prob. 1AWCh. 8 - Prob. 2AWCh. 8 - Prob. 3AWCh. 8 - Prob. 4AWCh. 8 - Prob. 5AWCh. 8 - Prob. 1PPCh. 8 - Prob. 2PPCh. 8 - Prob. 3PPCh. 8 - Prob. 4PPCh. 8 - Prob. 5PPCh. 8 - WORD SEPARATOR Create an application that accepts...Ch. 8 - Prob. 7PPCh. 8 - Prob. 8PPCh. 8 - Prob. 9PPCh. 8 - Prob. 10PP
Knowledge Booster
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
- C#arrow_forwardPEN 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…arrow_forwardC# Programarrow_forward
- Function SubStr( St As String) As String Sum=1 for x=l to 8 if x mod 2 = 0 then S=Mid(St, x, x*2) Else S=Mid(St, x, x+2) End if Next x SubStr=S End Function Sub Cmd_Click() Label.text= SubStr("Phones:987456124123456744") End Sub 987456124 :9874561241 9874561241 98745612412arrow_forwardlanguage JAVAarrow_forwardName Format - Use Javaarrow_forward
- Vowels and Consonants Design a program that prompts the user to enter a string. The program should then display the number of vowels and the number of consonants in the string. IN Q BASIC LANGUAGEarrow_forwardPython Programmingarrow_forwardA string is a term that refers to a group of objects that are connected byarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning