Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 2, Problem 5E
Create an application that calculates and displays two raise amounts, which are based on an employee’s current salary. The current salary will be entered by the user. The two raise rates are 5% and 8%. In addition to the raise amounts, the application should also calculate and display the employee’s new salaries. Include a button in the interface that the user can click to clear the user input and calculated results from the screen.
- a. Prepare a Planning Chart for the application.
- b. Draw a sketch of an appropriate interface. Be sure to follow the GUI design guidelines covered in the chapter. The guidelines are summarized in Figure 2-20. (If you want to include an image in the interface, you can either use your own image file or download an image file from openclipart.org. When downloading from openclipart.org, be sure to use the SMALL IMAGE (.PNG) button.)
- c. Create a Windows Forms application. Use the following names for the project and solution, respectively: Salary Project and Salary Solution. Save the application in the VB2017\Chap02 folder.
- d. Use your Planning Chart as a guide when building the interface.
- e. Code the Exit button. (You do not need to code the button that calculates and displays the raises and new salaries or the button that clears the user input and calculated results.)
- f. Save the solution and then start the application. Test the access keys, tab order, and Exit button and then close the solution.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Create an application that calculates and displays two raise amounts, which are based on an employee's current salary. The current salary will be
entered by the user. The two raise rates are 5% and 8%. In addition to the raise amounts, the application should also calculate and display the
employee's new salaries. Include a button in the interface that the user can click to clear the user input and calculated results from the screen.
(F2.1-F2.4, A2.1-A2.5)
a. Prepare a Planning Chart for the application.
b. Draw a sketch of an appropriate interface. If you want to include an image in the interface, you can either use your own image file or download an image file from the internet.
c. Create a Windows Forms application. Use the following names for the project and solution, respectively: Salary Project and Salary Solution. Sav the application in the VB9e\Chapo2 folder. Change the appropriate properties of the form. Also, be sure to verify the name of the startup form.
d. Use your Planning…
Create a simple Graphical User Interface (GUI) Bank Balance application. The application must obtain the BankAccount balance from a user, and then display that balance within a JPanel when the user selects a button. The program should allow for the user to deposit and withdraw funds from their account using a simple interface. The remaining balance in the account should be displayed before exiting the program. Ensure that your application includes the following components:
JPanel
JButton
ActionListener
Create an application that lets the user enter the following pieces of data: • The user’s first name • The user’s middle name • The user’s last name • The user’s preferred title (Mr., Mrs., Ms., Dr., etc.) Assume the user has entered the following data: • First name: Kelly • Middle name: Jane • Last name: Smith • Title: Ms. The application should have buttons that display the user’s name formatted in the following ways: Ms. Kelly Jane Smith Kelly Jane Smith Kelly Smith Smith, Kelly Jane, Ms. Smith, Kelly Jane Smith, Kelly
Chapter 2 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 2 - Prob. 1MQ1Ch. 2 - Prob. 2MQ1Ch. 2 - Prob. 3MQ1Ch. 2 - Prob. 4MQ1Ch. 2 - Prob. 1MQ2Ch. 2 - Prob. 2MQ2Ch. 2 - Prob. 3MQ2Ch. 2 - Prob. 4MQ2Ch. 2 - Prob. 1MQ3Ch. 2 - Prob. 2MQ3
Ch. 2 - Prob. 3MQ3Ch. 2 - Prob. 4MQ3Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Prob. 4RQCh. 2 - Prob. 5RQCh. 2 - Prob. 6RQCh. 2 - Prob. 7RQCh. 2 - Prob. 8RQCh. 2 - Prob. 9RQCh. 2 - Prob. 10RQCh. 2 - Prob. 11RQCh. 2 - Prob. 12RQCh. 2 - Prob. 13RQCh. 2 - Prob. 14RQCh. 2 - Prob. 15RQCh. 2 - Prob. 16RQCh. 2 - Prob. 17RQCh. 2 - Prob. 18RQCh. 2 - Define sentence capitalization.
Ch. 2 - Prob. 20RQCh. 2 - Prob. 2ECh. 2 - Create an application that calculates and displays...Ch. 2 - Prob. 4ECh. 2 - Create an application that calculates and displays...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- In Chapter 2, you created an interactive application named MarshallsRevenue, and in Chapter 3 you created a GUI version of the application named MarshallsRevenueGUI. The programs prompt a user for the number of interior and exterior murals scheduled to be painted during the next month by Marshalls Murals. Next, the programs compute the expected revenue for each type of mural when interior murals cost $500 each and exterior murals cost $750 each. The applications also display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. Now, modify one or both of the applications to accept a numeric value for the month being scheduled and to modify the pricing as follows: Because of uncertain weather conditions, exterior murals cannot be painted in December through February, so change the number of exterior murals to 0 for those months. Marshall prefers to paint exterior murals in April, May, September, and October. To encourage business, he charges only $699 for an exterior mural during those months. Murals in other months continue to cost $750. Marshall prefers to paint interior murals in July and August, so he charges only 9450 for an interior mural during those months. Murals in other months continue to cost $500.arrow_forwardIn Chapter 2, you created an interactive application named GreenvilleRevenue, and in Chapter 3 you created a GUI version of the application named GreenvilleRevenueGUI. The programs prompt a user for the number of contestants entered in this years and last years Greenville Idol competition, and then they display the revenue expected for this years competition if each contestant pays a $25 entrance fee. The programs also display a statement that compares the number of contestants each year. Now, replace that statement with one of the following messages: If the competition has more than twice as many contestants as last year, display The competition is more than twice as big this year! If the competition is bigger than last years but not more than twice as big, display The competition is bigger than ever! If the competition is smaller than last years, display, A tighter race this year! Come out and cast your vote!arrow_forwardCreate a project named MyFlix. Its Form contains a ListBox with the titles of at least six movies or TV shows available to purchase. Provide directions that tell users they can choose as many downloads as they want by holding down the Ctrl key while making selections. When the user clicks a Button to indicate the choices are final, display the number of selections made and total price, which is $1.99 per download. If the user selects or deselects items and clicks the button again, make sure the total is updated correctly.arrow_forward
- Which statement terminates an application that contains only one form? Me.Close() Me.Done() Me.Finish() Me.Stop()arrow_forwardCreate an application that calculates and displays the amount of a homeowners property tax. The tax is 1.35% of the propertys assessed value, which will be entered by the user. a. Prepare a Planning Chart for the application. b. Draw a sketch of an appropriate interface. Be sure to follow the GUI design guidelines covered in the chapter. The guidelines are summarized in Figure 2-20. (If you want to include an image in the interface, you can either use your own image file or download an image file from openclipart.org. When downloading from openclipart.org, be sure to use the SMALL IMAGE (.PNG) button.) c. Create a Windows Forms application. Use the following names for the project and solution, respectively: Tax Project and Tax Solution. Save the application in the VB2017\Chap02 folder. Change the appropriate properties of the form. Also, be sure to verify the name of the startup form. d. Use your Planning Chart as a guide when building the interface. e. Code the Exit button. (You do not need to code the button that calculates and displays the tax.) Save the solution and then start the application. Test the access keys, tab order, and Exit button and then close the solution.arrow_forwardThe Megawatt Solar Panel Company installs solar panels on home rooftops. The base installation charge of $2,000 includes two panels. The charge for each additional panel is $300. The normal waiting time for installation is two weeks, but customers can pay an express charge of 5% of the total cost to reduce this time. Create an application that collects the required information from the user and calculates the charges for the installation.arrow_forward
- Create an application that calculates a car’s gas mileage. The formula for calculating the miles that a car can travel per gallon of gas is: MPG=milesgallonsIn the formula MPG is miles-per-gallon, miles is the number of miles that can be driven on a full tank of gas, and gallons is the number of gallons that the tank holds. The application’s form should have TextBox controls that let the user enter the number of gallons of gas the tank holds and the number of miles the car can be driven on a full tank. When the Calculate MPG button is clicked, the application should display the number of miles that the car can be driven per gallon of gas. The form should also have a Clear button that clears the input and results, and an Exit button that ends the application. If the user fails to enter numeric values, display an appropriate error message and do not attempt to perform calculations.arrow_forwardWrite a tkinter application that asks the user to create their own pizza. First, they should enter their name. Then, allow them to pick one of three crusts (thin, regular, deep dish), one of three sauces (Regular, BBQ, Alfredo), and any number of 3 toppings (Pepperoni, Olives, Mushroom). They should also pick if they want a small, medium, or large pizza. When the submit button is clicked, calculate the total cost ($10 base price, $0.50 for each topping, and $1.50 for each increase in size larger than small). Once the total is calculated, display a messagebox that thanks the user (by name) for their order and prints out the total cost.arrow_forwardCreate an application in Visual Basic that allows users to enter their name, nickname, address, and subject. Include a button below that will change the color of the form into white, yellow and red. Another button that will display "It's ME" with the inputted name and subject in the label control. Another button that will Stop your program once it is clicked.arrow_forward
- Question 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_forwardAlex wants an application for his restaurant in which he needs to display the drinks available in his restaurant to the customers along with their prizes. Create an application that will display the menu items along with the prizes and once the order is done, it will calculate the total amouarrow_forward// MAINTENANCE12// This program creates a screen with two textboxes and a button. // When the user clicks the button, a label displays the result // which is the sum of the numbers in the two textboxes. // Modify the program to allow the user to click any // of three buttons. On displays the sum of the two numbers. // The others display the difference and product respectively. start Declarations Screen screen1 Button calcButton Textbox usersEntry1 Textbox usersEntry2 Label result screen1.setSize(200, 200) calcButton.setText("Click to sum the numbers you have entered") calcButton.registerListener(sumNumbers()) productButton.setText(“Click to multiply the numbers you have entered”) productButton.registerListener(multiplyNumbers()) screen1.add(usersEntry1) screen1.add(usersEntry2) screen1.add(calcButton) screen1.add(differenceButton) screen1.add(productButton) stop sumNumbers() Declarations Label result num sum…arrow_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 LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Time Complexity Analysis - How To Calculate Running Time | InterviewBit; Author: InterviewBit;https://www.youtube.com/watch?v=--oxG4Q1PA0;License: Standard YouTube License, CC-BY