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 1E
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 with character 104 wich is “h” and the Character 105 which is “i” 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.
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.
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.
Chapter 4 Solutions
Introduction to Programming Using Visual Basic (10th Edition)
Knowledge Booster
Similar questions
- Convert 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_forwardProgramming Exercises 349 Programming Exercises 1. Payroll Program with Input Validation Design a payroll program that prompts the user to enter an employee's hourly pay rate and the number of hours worked. Validate the user's input so that only pay rates in the range of $7,50 through $18.25 and hours in the range of 0 through 40 are accepted. The program should display the employee's gross pay. wing prices for st $15 each, A 500 seatsarrow_forwardComputer sciencearrow_forward
- Include the IPO chart and algorithm.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_forwardGrades 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_forward
- Q/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_forwardvisual basic2010arrow_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
- Q4: - Write visual Basic program using Do Until Loop to find the summation of student's marks, and it's average, assume the student have 8 marks. Use InputBox function to read marks.arrow_forward(Misc. application) Four experiments are performed, and each experiment has six test results. The results for each experiment are given in the following list. Write a program using a nested loop to compute and display the average of the test results for each experiment. 1stexperimentresults:23.23116.92725.428.62ndexperimentresults:34.845.227.936.833.439.43rdexperimentresults:19.416.810.220.818.913.44thexperimentresults:36.93949.245.142.750.6arrow_forwardSpreadsheet formula to the task below.arrow_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 PtrMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage