n Chapter 6, Programming Challenge 4, you were asked to create an application that calculates charges for an automotive repair company. A significant drawback to the design of that program was that it was not expandable—you are limited to only the number of options that can easily fit on a single form. Real-world applications usually require a great deal of input selections, leading to the use of separate windows to get different types of input. In this Programming Challenge, you will create a separate form, such as the one shown in Figure 7-78, to get the user’s oil and lubrication services selections. Notice that the price of each service is included in the Text property of each CheckBox control. Oil changes are now divided into two types: Crankcase oil and transmission oil. In the form shown in Figure 7-78, the user has selected two checkboxes and clicked the Confirm Selections button. Notice that a confirmation message containing the price appears on the status line. The message also instructs the user that he or she may now close the form. Upon returning to the application’s main form, shown in Figure 7-79, the button caption has been updated to show the cost of the lubrication services previously selected by the user. If the user clicks the Clear button, you need to reset the caption of the oil and lubrication services button to its starting value (with no price). One of the concepts we demonstrate in this application is that button captions may be altered at runtime to give more information to users. It would be possible to use dialog windows to collect user input for each of the other service categories, but doing so would require lots of work. Instead, you will use a dialog window for only the oil and lubrication services category. Suggestion: You will find it easiest to move some class­level variables and constants to a global code module so that they may be accessed from both the startup form and the Oil and Lubrication Services form

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

TG Automotive with Dialog Window
In Chapter 6, Programming Challenge 4, you were asked to create an application
that calculates charges for an automotive repair company. A significant drawback
to the design of that program was that it was not expandable—you are limited to
only the number of options that can easily fit on a single form. Real-world applications usually require a great deal of input selections, leading to the use of separate
windows to get different types of input. In this Programming Challenge, you will
create a separate form, such as the one shown in Figure 7-78, to get the user’s oil
and lubrication services selections. Notice that the price of each service is included
in the Text property of each CheckBox control.
Oil changes are now divided into two types: Crankcase oil and transmission oil. In
the form shown in Figure 7-78, the user has selected two checkboxes and clicked the
Confirm Selections button. Notice that a confirmation message containing the price
appears on the status line. The message also instructs the user that he or she may now
close the form. Upon returning to the application’s main form, shown in Figure 7-79,
the button caption has been updated to show the cost of the lubrication services previously selected by the user. If the user clicks the Clear button, you need to reset the
caption of the oil and lubrication services button to its starting value (with no price).
One of the concepts we demonstrate in this application is that button captions may
be altered at runtime to give more information to users.
It would be possible to use dialog windows to collect user input for each of the other
service categories, but doing so would require lots of work. Instead, you will use a
dialog window for only the oil and lubrication services category. Suggestion: You
will find it easiest to move some class­level variables and constants to a global code
module so that they may be accessed from both the startup form and the Oil and
Lubrication Services form

 

made in visual basic 2017 please include pictures

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Running Time of Application
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education