Programming with Microsoft Visual Basic 2015 (MindTap Course List)
7th Edition
ISBN: 9781285860268
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 3.LC, Problem 2E
Program Plan Intro
Chopkins Toys
Program plan:
- Create new Windows Forms Application.
- Design the form by placing the labels, textbox, and button and then change their name and properties.
- Inside the “Calculate” button,
- Declare the required variables.
- Convert the string types values into a integer values.
- Calculate the total sales.
- Calculate the total price for the items.
- Set the value.
- Display the total sales amount in dollar sign and two decimal places.
- Inside the “Exit” button,
- Close the form using “Me.Close” method
- Inside the “Clear” button,
- Save the contents of the text box before clearing the contents.
- Make the textbox empty.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
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
USe Form CS Create an application consists of 1 form with 30 controls:
1 Textbox
3 Radio buttons
2 Buttons
5 Checkboxes
Code must be written to respond to the user clicking on the buttons, radio
buttons and check boxes.
Project requirements:
1. when the application starts the focus must be at the flavor selection list
with the first flavor selected, one scoop selected and no toppings
selected and the correct total displayed
2. when the "Exit" button is clicked, the application ends
3. the total will be computed and displayed when the user makes a scoop
selection and/or toppings selection.
4. when the "Clear" button is clicked, the textbox is cleared. Focus goes to
the listbox.. The first flavor is selected, one scoop is selected and no
toppings are selected and the correct total is displayed
5. the total dollar amount must be formatted as currency
6. allow multiple flavors to be selected
7. the
otal will
times be
an
eflect the
ber of scoops
and toppings as they are selected
DORM AND MEAL PLAN CALCULATOR
A university has the following dormitories:
Allen Hall
$1,500 per semesterPike Hall $1,600 per semesterFarthing Hall $1,800 per semesterUniversity Suites $2,500 per semesterThe university also offers the following meal plans:7 meals per week
$ 600 per semester14 meals per week $1,200 per semesterUnlimited meals $1,700 per semesterCreate an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form.
For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results.
I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you…
Chapter 3 Solutions
Programming with Microsoft Visual Basic 2015 (MindTap Course List)
Ch. 3.LA - Prob. 1RQCh. 3.LA - Prob. 2RQCh. 3.LA - Which of the following statements declares a...Ch. 3.LA - Prob. 4RQCh. 3.LA - Prob. 5RQCh. 3.LA - Which of the following declares a procedure-level...Ch. 3.LA - Prob. 7RQCh. 3.LA - Prob. 8RQCh. 3.LA - Prob. 9RQCh. 3.LA - Prob. 10RQ
Ch. 3.LA - Prob. 11RQCh. 3.LA - A static variable has the same...Ch. 3.LA - A procedure needs to store a salespersons name and...Ch. 3.LA - Prob. 2ECh. 3.LA - Prob. 3ECh. 3.LA - Prob. 4ECh. 3.LA - Prob. 5ECh. 3.LA - Prob. 6ECh. 3.LA - Prob. 7ECh. 3.LA - Prob. 8ECh. 3.LA - Prob. 9ECh. 3.LA - Prob. 10ECh. 3.LA - Prob. 11ECh. 3.LA - Prob. 12ECh. 3.LA - Prob. 13ECh. 3.LA - Prob. 14ECh. 3.LA - Prob. 15ECh. 3.LA - Prob. 16ECh. 3.LA - Prob. 17ECh. 3.LA - Prob. 19ECh. 3.LB - Prob. 1RQCh. 3.LB - Prob. 2RQCh. 3.LB - Prob. 3RQCh. 3.LB - Prob. 4RQCh. 3.LB - Prob. 5RQCh. 3.LB - Prob. 6RQCh. 3.LB - Prob. 7RQCh. 3.LB - Prob. 8RQCh. 3.LB - Prob. 9RQCh. 3.LB - Prob. 10RQCh. 3.LB - Prob. 1ECh. 3.LB - Prob. 2ECh. 3.LB - Prob. 3ECh. 3.LB - Prob. 4ECh. 3.LB - Prob. 5ECh. 3.LB - Prob. 6ECh. 3.LB - Prob. 7ECh. 3.LB - Prob. 8ECh. 3.LB - Prob. 9ECh. 3.LB - Prob. 11ECh. 3.LB - Prob. 12ECh. 3.LC - Prob. 1RQCh. 3.LC - Prob. 2RQCh. 3.LC - Prob. 3RQCh. 3.LC - Which of the following statements declares a...Ch. 3.LC - Prob. 5RQCh. 3.LC - Prob. 2ECh. 3.LC - Prob. 3ECh. 3.LC - Prob. 4ECh. 3.LC - Prob. 5ECh. 3.LC - Prob. 6ECh. 3.LC - Prob. 7ECh. 3.LC - Prob. 8ECh. 3.LC - Prob. 9ECh. 3.LC - Prob. 10ECh. 3.LC - Prob. 11E
Knowledge Booster
Similar questions
- The purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the FixIt Solution.sln file contained in the VB2017\Chap04\FixIt Solution folder. The application displays a shipping charge that is based on the total price entered by the user, as shown in Figure 4-64. Start the application and then test it by clicking the Display shipping button. Notice that the Shipping charge box contains $13, which is not correct. Now, test the application using the following total prices: 100, 501, 1500, 500.75, 30, 1000.33, and 2000. Here too, notice that the application does not always display the correct shipping charge. (More specifically, the shipping charge for two of the seven total prices is incorrect.) Open the Code Editor window and correct the errors in the code. Save the solution and then start and test the application.arrow_forwardQuestion 1 Get room rate Room type single Number of night 3 Room rate 750.00 Get rate Close Figure 2: Get room rate GUI Write a complete program to create a graphical user interface (GUI) which calculate the room rate according to Table 1. The program should calculate and show the room rate in a text field which is not editable when the Get rate button is pressed and the system will be terminated when the Close button is pressed. The size of GUI should be set as 300 x 250. It should be shown in the centre of the screen and the program should shutdown when the user press the close button on the top right corner. Lastly, remember to create an object for the class in a main() method. Table 1: Hotel room rate according to room type Room type single Price in RM (per night) 250 double 320 suite 500arrow_forwardPlease help with the question on the picturearrow_forward
- 3. Create the Chopkins Toys application as shown in Figure 3-37. o Chopkins Toys 12 pack: 5 pack: 2 pack: set this label's BackColor property Totals: Calculate Exit Figure 3-37 User interface for Exercise 11 a) The interface contains six labels, three text boxes, and two buttons. b) The application calculates and displays the total number of packs ordered and the total price of the order. The prices of a 12 pack, a 5 pack, and a 2 pack are $14.99, $6.99, and $2.50, respectively. c) Your code should: V include variables and named constants. V include the three Option statements. V display the total sales amount with a comma (if necessary), a dollar sign and two decimal places.arrow_forwardCreate a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap10 folder. Plan and design an application of your choice. The only requirement is that you must follow the minimum guidelines listed in Figure 10-45. Before starting the application, be sure to verify the name of the startup form. Save the solution and then start and test the application.arrow_forwardAndroid Studio with Javaarrow_forward
- 2. Create an Orders application as shown in the figure below. Orders Number ordered: Add Subtract Total ordered: Exit a) The interface provides a button for adding the number ordered to the total ordered, and a button for subtracting the number ordered from the total ordered. b) Code the application using a class-level variable. c) Be sure to code the text box's TextChanged and Enter event procedures. d) Test the application. (If you add 7 and 5, and then subtract 2, 1, and 6, and then add 10, 7, 4, and 5, the total ordered will be 29.)arrow_forwardCreate a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap02 folder. Plan and design an application of your choice. The only requirement is that you must follow the minimum guidelines listed in Figure 2-22. Before starting the application, be sure to verify the name of the startup form. Save the solution and then start and test the application.arrow_forwardThe Customer will navigate to the merchandise section of the application. The customer will select up to 5 items of their choosing to reserve for 24 hours. When the customer arrives at the store they will finalize their transaction. If a customer does not arrive, the reserve items will immediately be placed back on the sales floor and the customer can choose to reserve again. Looking for pseudocode in the style of pythonarrow_forward
- Extra 6-1 Develop the Temperature Converter In this exercise, you’ll use radio buttons to determine whether the conversion is from Fahrenheit to Celsius or vice versa. You’ll also modify the DOM so the labels change when a radio button is clicked, and the page displays an error message when the user enters invalid data. 1. Open the application in this folder: exercises_extrach06convert_temps 2. Note that the JavaScript file has some starting JavaScript code, including the $() function, three helper functions, three event handler functions, and a DOMContentLoaded event handler that attaches the three event handlers. 3. Review how the toCelsius() and toFarhenheit() event handler functions call the toggleDisplay() helper function and pass it strings to display. Also note that the toggleDisplay() helper function and the convertTemp() event handler function are incomplete. 4. Code the toggleDisplay() function so it changes the text in the labels for the text boxes to the values in the…arrow_forwardCreate a menu-driven application to keep track of a list of subscribers to a newsletter.The application should allow the user to add a new subscriber, remove a current subscriber, update a subscriber’s data, and display the current list of subscribers. Each subscriber should be identified by a unique ID assigned by the system.For each subscriber, you need to store first name, last name, and email address.The application must have:• A linked list as the main data structure in the application. You must use the C++ Standard Template Library (STL).• A “subscriber” class that contains data and methods related to each subscriber.arrow_forwardQuestion p Create a tkinter application to accept radius of a circle and display the area using .Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this linearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning