Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 5, Problem 8E
Program Plan Intro
Form design:
- Open Microsoft Visual Studio.
- Select Visual Basic and click Windows Application.
- Name the project as “Multiplication Project”.
- Store the file in desire location.
- The created project is now display with a form in the name of Form1.
- Rename the Form1 as “Main Form” 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 | Multiplication Table |
txtNumber | Text | (Empty) |
lblTable | Text | (Empty) |
btnForNext | Text | For…Next |
btnDoLoop | Text | Do…Loop |
btnExit | Text | Exit |
- Add a text box control to get the input for multiplication table number from user.
- Add a label control to display the result of table.
- Add two button controls to generate multiplication table using ForLoop and DoLoop respectively.
- Finally, add a button control that is used to exit the application.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
3. Create a Multiplication Table application as shown in the figure below. Be sure
that the text box accepts only a positive number and Backspace.
| Multiplication Table
Number: 12
Display
Multiplication table:
12 1 12
12 2 24
Exit
12 * 3 = 36
12 * 4 = 48
12 *5 = 60
12 *6 = 72
12 7 84
12 8 96
12 9 108
12 * 10 = 120
The application must allow the user to enter the student ID. When the search button is clicked, it
should open a text file with the list of students, then search for the student ID in the text file. Once
the ID has been found, it should show the full student details in a textbox as shown below:
Siyabonga School App
Welcome to Siyabonga School
Enter Student ID 0006043432
Manaane Van Der Wait 0006043432 Grade 6
Search
X1ipg
Eing
Aing
Please written by computer source
Chapter 5 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 5 - Rewrite the Loop clause from Question 1 using the...Ch. 5 - Prob. 2MQ3Ch. 5 - Write a For clause that repeats the loop body...Ch. 5 - Write an Add method that adds the contents of the...Ch. 5 - Prob. 2MQ6Ch. 5 - Which of the following clauses will stop the loop...Ch. 5 - Which of the following statements can be used to...Ch. 5 - Prob. 3RQCh. 5 - Prob. 4RQCh. 5 - Prob. 5RQ
Knowledge Booster
Similar questions
- In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.arrow_forwardRewrite the Loop clause from Question 1 using the Until keyword.arrow_forwardThe items in a combo box belong to which collection? Items List ListBox Valuesarrow_forward
- Open the Proper Case Solution.sln file contained in the VB2017\Chap07\ProperCase Solution folder. The interface provides a text box for entering a person’s first andlast names. The btnProper_Click procedure should display the first and last namesin the proper case. In other words, the first and last names should begin with anuppercase letter and the remaining letters in each name should be lowercase. If the userenters only one name, display the name in proper case. Be sure the btnProper_Clickprocedure works correctly if the user inadvertently enters more than one space betweenthe first and last names. After displaying the name, the procedure should send the focusto the txtName control. Code the procedure. Save the solution and then start and testthe application. (If the user enters “john smith” as the name, the application shoulddisplay “John Smith”. If the user enters “carol” followed by three spaces and then “jones”,the application should display “Carol Jones”. If the user enters…arrow_forwardQuestionarrow_forwardTRUE or FALSE: cin requires the user to press the [Enter] key when finishedentering data.arrow_forward
- For the code below can you varify the card number, card exp date, card cvv and address for example the card number should be 13 numbers if any more it should say "invalid" for the card exp date it should be like 12/35 if not then its invalid for card cvv it should only be 3 numbers and address should be like 11-11-11st as long as it has the "-" and "st" also when ever its invalid can you make it print on the bottom of the box like the example in the image below. thank you <!DOCTYPE html> <html> <head> <style> input { height: 25px; border-radius: 5px; } </style> <script> function validate() { if (!validateVal(document.getElementById("number").value)) { alert("Please Enter the number"); return; } var num = parseInt(document.getElementById("number").value); if (num < 1 || num > 9) { alert("Enter a number between 1 and 9(Including 1 and 9)"); return; } if (!validateVal(document.getElementById("name").value)) {…arrow_forwardPlease Debug this 1arrow_forwardCreate a QuadraticEquation application that gives the solution to any quadratic equation. The application should prompt the user for values for a, b, and c (ax2 + bx +c= and then display the roots, if anyarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L