Introduction to Programming Using Visual Basic (10th Edition)
10th Edition
ISBN: 9780134542782
Author: David I. Schneider
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 4.1, Problem 2E
Program Plan Intro
1. Below mentioned variables are used:
- txtbox- Text box where the text and character is displayed.
2. Below Mentioned functions are used:
- Form1_Load()-Procedure for main form. Called when the program is executed.
Program description:
This Program is for displaying the text containing the text C and the Character 35 which is “#” in the text box. Create a new project and in Form1 insert a new text box from toolbox. Change the Name of textbox as txtbox in Design property of Properties window as shown in Figure below.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Age Write a program that requests your date of birth as input and tells your age. Hint:Use the DateDiff function with the DateInterval.Year option, and then use an If block tomodify the result. See Fig. 4.23 and the note in Exercise 40.
Q5| Design and Write VB program to classify students according to their high schoolaverage. The students with average greater than 95 should be added to list labeled " Oiland Gas Engineering", students with average more than 89 and less than 96 should beadded to list labeled " Chemical Engineering" and students with average more than 84and less or equal 89 should be added to list labeled “ Polymer Engincering",
Price-to-Earnings Ratio Request a company’s earnings-per-share for the year and the price of one share of stock as input, and then display the company’s price-to-earnings ratio (that is, price/earnings). See Fig. 3.25.
Chapter 4 Solutions
Introduction to Programming Using Visual Basic (10th Edition)
Knowledge Booster
Similar questions
- Sort Three Numbers Write a program that requests three different numbers as input and then displays the numbers in order. Use a Procedure named Sort to which the three values are passed ByRef and use a “Swap” procedure similar to the one in Example 3. See Fig. 5.36.arrow_forwardConvert Months Write a program that allows the user to enter a whole number of monthsand then converts that amount of time to years and months. See Fig. 3.38. The programshould use both integer division and the Mod operator.arrow_forwardProblem Description: Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them (Fig. 1). Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might use the correspondence indicated in Fig. 1 to develop the seven-letter word “NUMBERS.” Every seven-letter word corresponds to exactly one seven-digit telephone number. A restaurant wishing to increase its takeout business could surely do so with the number 825-3688 (i.e., “TAKEOUT”). Fig. 1: Telephone keypad digits and letters. Every seven-letter phone number corresponds to many different seven-letter words, but most of these words represent unrecognizable juxtapositions of letters. It’s possible, however, that the owner of a barbershop would be pleased to know that the…arrow_forward
- In exercises 17 and 18,write each algebraic expression without parentheses. 17. -(5x – 13y –1) 18.arrow_forwardICT can provide both opportunities and challenges to humanity. The Internet can offer modes for empowerment and convenience, but it can also promote the digital divide and fraud. Learning Task 3: Write an essay about: “The Power of Media and Information to Affect Change, and the Responsibility of the Users." The essay must have an introduction, body and conclusion. The number of words must be 450-500. The essay will be graded according to the rubric as seen on the next page. IIarrow_forwardComputer sciencearrow_forward
- Algorithm Steps Fig 2: (I have provided an algorithm and fewer code hints) 1. Set coordinates for NORTH, SOUTH, WEST, and EAST each 100pixels away from center (0,0) 2. Set outer circle size = 40 and inner circle size = 20 3. Set window size 600x600 4. Draw y-axis by connecting NORTH and SOUTH 5. Draw x-axis by connecting WEST and EAST 6. Display name of coordinates 7. Position point to draw circle 8. Set angle 90 degree 9. Set color to red 10. Draw outer circle 11. Draw inner circle and fill redarrow_forwardQ/3Design and Write VB program to classify students according to their high school average. The students with average greater than 90 should be added to list labeled “ Oil and Gas Engineering”, students with average more than 84 and less than 90 should be added to list labeled “ Chemical Engineering” and students with average more than 79 and less or equal 84 should be added to list labeled “ Polymer Engineering” ,arrow_forwardQ4/ Ex: Design a program to calculate the area of the shaded part shown in the figure: the width of the rectangular (W6 cm) the radius for each quarter circle (r= 3 cm) input all the information's by an input box, the length of the rectangular (L-10 cm) appear in the location (8000,1000) and print all results on the form by the font (Tahoma), bold with the size (14). Create a command button to exit from the program and use (s) to stop input process. Let the program carry out results continually. L ky M Karrow_forward
- Grades of 30 students entered on the keyboard will be entered. Write down the algorithm and flow chart of the program showing the sum and average of the grades on the screen. (It will be checked whether the entered grades are in the range of 0-100).arrow_forward5. Maximum Occurring Character Given a string, return the character that appears the maximum number of times in the string. The string will contain only ASCII characters, from the ranges ('a'-'z','A'-'Z','0'-'9'), and case matters. If there is a tie in the maximum number of times a character appears in the string, return the character that appears first in the string. Example text = abbbaacc Both 'a' and 'b'occur 3 times in text. Since 'a'occurs earlier, a is the answer. Function Description Complete the function maximum Occurring Character in the editor below. maximumOccurringCharacter has the following parameter: string text: the string to be operated upon Returns char: The most occurring character that appears first in the string. Constraints • 10 ≤ |text| ≤ 104 • All characters are alphanumeric, in the ranges ('a'-'z','A'-'Z','0'-'9') ======== 999992 14 15 16 17 18 19 20 21 2 2 2 2 22 23 24 25 2222 26 class Result { * * Complete the 'maximumOccurring Character' function below. * का…arrow_forwardExercise 5: Part I Use of different controls and functions 1. Program to find sum, minimum, maximum, average using radio buttons 2. Program to show length of string 3. Program to show hobbies of people using check box 4. Program to display cities of Oman in combo box 5. Write a program to calculate the numbers of years the employee is working (hint use two datetime Picker, 1 label, and 1 button and datediff function) 6. Program to change the color of form on select of radio button 7. Design a registration form using all controlsarrow_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 Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr