Question: In visual studio only In Chapter 6 , Programming Challenge 4 5 , you were asked to create an application that calculates charges for an

In visual studio only In Chapter 6, Programming Challenge 45, 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.Figure 7-78 TG Automotive dialog windowOil and Lubrication ServicesType of Service* Crankcase Oil - $36.00* Transmission Oil - $42.00 Lubrication Service - $28.00Confirm SelectionsCloseOil changes are now divided into two types: Crankcase oil and transmiasion oil. In the form shown in Figure 7-780 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-799, 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 informationFigure 7-79 TG Automotive main window16 AutomobveOll and Lubrication Services(56400)Miscellaneous InspecbonReplace MufflerI Tire Rotaton15.00200.0020.00Radialor and TransmissionlE Radiator FlushE) Transmission Flush50.00120.00dollarsminutesParts and LaborPartskabarSummar of ChargesServices and LaborPartsTax (on parts)Total FeesCalculate TotalClearEatIt 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 easiestto move some class-level variables and constants to a global code module so that they may be accessed fromboth the startup jformi and the Oil and Lubrication Serrices forma

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!