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 2.3, Problem 38E
Program Plan Intro
To enable and disable the TextBox by clicking the appropriate button.
Write a program in which on pressing the Button, the Text Box focus will be enabled and disabled.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Flow chart and peseudocode of
Get the name of the student
A. If the student is regular, get his/her section. Then display his/her name
and section
B. If the student is irregular, get his/her course. Then display his/her name
and course.
VB Small Project 16 – Function
Pattern this Visual Basic program after Small Project 15:
Main()
Create the random number in the same way.
EvenOrOdd Function()
Pass that number into this function, where it will be found to be either Even or Odd. Return a value indicating which one that will be used back in Main.
DisplayResults Sub
The result from the EvenOrOdd Function is passed into this Sub and the same results as from SP 15 will be printed.
Visual Basic
Write a program to place an order from the restaurant menu in Table 2.1.Use the form in Figure 1.3, and write the program so that each group box is invisible andbecomes visible only when its corresponding check box is checked.After the button is clicked, the cost of the meal should be calculated.Note: The Checked property of the first radio button in each group box should be set to True inits Properties window. This guarantees that a selection is made in each visible group box. Whenthe cost of the meal is calculated, only the visible group boxes should be considered.
Chapter 2 Solutions
Introduction to Programming Using Visual Basic (10th Edition)
Ch. 2.2 - Prob. 1ECh. 2.2 - While a program is running, a control is said to...Ch. 2.2 - In Exercises 3 through 24, carry out the...Ch. 2.2 - Prob. 4ECh. 2.2 - Prob. 5ECh. 2.2 - Prob. 6ECh. 2.2 - Prob. 7ECh. 2.2 - Prob. 8ECh. 2.2 - Prob. 9ECh. 2.2 - Prob. 10E
Ch. 2.2 - Prob. 11ECh. 2.2 - Prob. 12ECh. 2.2 - In Exercises 3 through 24, carry out the...Ch. 2.2 - Prob. 14ECh. 2.2 - Prob. 15ECh. 2.2 - Prob. 16ECh. 2.2 - In Exercises 3 through 24, carry out the task. In...Ch. 2.2 - Prob. 18ECh. 2.2 - Prob. 19ECh. 2.2 - Prob. 20ECh. 2.2 - Prob. 21ECh. 2.2 - In Exercises 3 through 24, carry out the task....Ch. 2.2 - Prob. 23ECh. 2.2 - Prob. 24ECh. 2.2 - Prob. 25ECh. 2.2 - Prob. 26ECh. 2.2 - Prob. 27ECh. 2.2 - Prob. 28ECh. 2.2 - Prob. 29ECh. 2.2 - Prob. 30ECh. 2.2 - Prob. 31ECh. 2.2 - Prob. 32ECh. 2.2 - Prob. 33ECh. 2.2 - Prob. 34ECh. 2.2 - Prob. 35ECh. 2.2 - Prob. 36ECh. 2.2 - Prob. 37ECh. 2.2 - Prob. 38ECh. 2.2 - Prob. 39ECh. 2.2 - Prob. 40ECh. 2.2 - Prob. 41ECh. 2.2 - Prob. 42ECh. 2.2 - Prob. 43ECh. 2.2 - Prob. 44ECh. 2.2 - The following hands-on exercises develop...Ch. 2.2 - The following hands-on exercises develop...Ch. 2.2 - Prob. 47ECh. 2.3 - Prob. 1ECh. 2.3 - Prob. 2ECh. 2.3 - Prob. 3ECh. 2.3 - Prob. 4ECh. 2.3 - Private Sub Handles btnOutput.Click
End Sub
Ch. 2.3 - Prob. 6ECh. 2.3 - Prob. 7ECh. 2.3 - Prob. 8ECh. 2.3 - Prob. 9ECh. 2.3 - Prob. 10ECh. 2.3 - In Exercises 11 through 16, determine the...Ch. 2.3 - Prob. 12ECh. 2.3 - In Exercises 11 through 16, determine the...Ch. 2.3 - In Exercises 11 through 16, determine the...Ch. 2.3 - Prob. 15ECh. 2.3 - In Exercises 11 through 16, determine the...Ch. 2.3 - Prob. 17ECh. 2.3 - Prob. 18ECh. 2.3 - Prob. 19ECh. 2.3 - Prob. 20ECh. 2.3 - In Exercises 17 through 28, write a line (or...Ch. 2.3 - Prob. 22ECh. 2.3 - In Exercises 17 through 28, write a line (or...Ch. 2.3 - Prob. 24ECh. 2.3 - Prob. 25ECh. 2.3 - In Exercises 17 through 28, write a line (or...Ch. 2.3 - In Exercises 17 through 28, write a line (or...Ch. 2.3 - Prob. 28ECh. 2.3 - Prob. 29ECh. 2.3 - Prob. 30ECh. 2.3 - Prob. 31ECh. 2.3 - Write a simple program to demonstrate that a...Ch. 2.3 - Prob. 33ECh. 2.3 - Prob. 34ECh. 2.3 - Prob. 35ECh. 2.3 - Prob. 36ECh. 2.3 - Prob. 37ECh. 2.3 - Prob. 38ECh. 2.3 - Prob. 39ECh. 2.3 - In Exercises 39 through 44, write a program to...Ch. 2.3 - Prob. 41ECh. 2.3 - In Exercises 39 through 44, write a program to...Ch. 2.3 - Prob. 43ECh. 2.3 - In Exercises 39 through 44, write a program to...
Knowledge Booster
Similar questions
- Design form in vb contains three command buttons, the first title buttons (Start) and show an input box contain blank phrase student's name with the title "name" and then display it on a text box. The second title button (Clear) by using msgbox contains blank phrase (are you sure to clear? , yes & No button and title "clear" , The third title button (Exit) and show an input box contain blank phrase "exit" with title close and display it on label * 2 11. 4 AMarrow_forwardshould be done in processing languagearrow_forwardQ1) Design project and write a code to show picture and un-active the show command button. Q2) Design project and write a code to solve the following equationarrow_forward
- ne: ID: A 7. A game is played by moving a game piece left or right along a horizontal game board. The board consists of spaces of various colors, as shown. The circle represents the initial location of the game piece. Yellow Black Green Green Red Yellow Yellow Black Black Black The following algorithm indicates how the game is played. The game continues until the game is either won by landing on the red space or lost when the piece moves off either end of the board. Step 1: Place a game piece on a space that is not red and set a counter to 0. Step 2: If the game piece is on a yellow space, move the game piece 3 positions to the left and go to step 3. Otherwise, if the game piece is on a black space, move the game piece 1 position to the left and go to step 3. Otherwise, if the game piece is on a green space, move the game piece 2 positions to the right and go to step 3. Step 3: Increase the value of the counter by 1. Step 4: If game piece is on the red space or moved off the end of the…arrow_forwardExercise (3-4): Create a Visual Basic project to enter an angle value (used InputBox statement). Design the program to find the value of angle (in Degrees, Minutes, and Seconds). Display Degrees, Mínutes, and Seconds in PictureBox. Pointer the controf objects are used on the form window.arrow_forwardUsing any languageWrite a Visual Basic project that displays a country’s flag and its capital in an output label when a button with the country’s name is clicked. After the country’s button is clicked, only that country button should still be visible (the one for the country that was chosen). When the program is first run, it should like the form on the left below, but with your name in the appropriate spot. The form on the right shows what it would look like after a user clicked on “Canada”. When the Restore button is chosen, the form should again look like the picture on the left. The Exit button works as you would expect. The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box: Be sure to add the image as a local resource. Set the Size property to 100, 50 Click the Size Mode list arrow, then click StretchImage…arrow_forward
- ICT 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_forwardChange the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.arrow_forwardVisual Basic For tax purposes an item may be depreciated over a period of several years, n.With the straight line method of depreciation, each year the item depreciates by 1/nth of itsoriginal value. With the double declining balance method of depreciation, each year the itemdepreciates by 2/nths of its value at the beginning of that year. (In the final year it is depreciatedby its value at the beginning of the year.)Write a program that performs the following tasks:1.1 Request a depreciation of the item, the year of purchase, the cost of the item, the number ofyears to be depreciated (estimated life), and the method of depreciation. The method ofdepreciation should be chosen by clicking on one of two buttons.1.2 Display a year by year description of the depreciation.arrow_forward
- Visual Basic For tax purposes an item may be depreciated over a period of several years, n.With the straight line method of depreciation, each year the item depreciates by 1/nth of itsoriginal value. With the double declining balance method of depreciation, each year the itemdepreciates by 2/nths of its value at the beginning of that year. (In the final year it is depreciatedby its value at the beginning of the year.)Write a program using Visual Basic that performs the following tasks:1.1 Request a depreciation of the item, the year of purchase, the cost of the item, the number ofyears to be depreciated (estimated life), and the method of depreciation. The method ofdepreciation should be chosen by clicking on one of two buttons.1.2 Display a year by year description of the depreciation.arrow_forwardFunction for button "Publishing Date": • Name this function by your last name (for example, function yamoutl)). When the user clicks on the button "Publishing Date" (after filling all the textboxes), the current date and time will be printed after the text "Published on:" CSCI375 Grades Exam-1 (70 Exam-2 98 Project 86 Exam-3 80 Show the Grades Your Grades: Exam-1 - 78, Exam-2 - 98, Project - 85, Exam-3 - 80 Publishing Date Published on: 5/10/2021, 5:39:08 PM Change Background Colorarrow_forwardThe following program moves a robot in a grid of squares. The initial position and direction of the robot is shown below. Click on the grid to move the robot to the final position after the program is run. You must click within the box to rotate the robot to the correct final direction (click near the top of the box to rotate up, etc...) Feel free to move the robot along as you follow the code. PROCEDURE DoSomething(a){ MOVE_FORWARD() if( a > 2 ) { MOVE_FORWARD() } else { if( a = 3 ) { MOVE_FORWARD() } } MOVE_FORWARD()} i ⬅ 3ROTATE_RIGHT()REPEAT 2 TIMES{ DoSomething(i) MOVE_FORWARD() ROTATE_RIGHT() i ⬅ i - 1}arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,