3. Solar Panel Installation The 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. The user should input the following information: first name, last name, phone, number of panels, deposit amount, and a check box for the express installation option. When the user clicks a button to view the charges, display a group box containing the following information: base installation charge, cost of installing additional panels, total installation cost, deposit amount, and balance due. Error checking should include the following criteria: • The name and phone fields cannot be blank • The number of panels must be an integer between 1 and 1,000 • The deposit amount must be a numeric value greater than 0. Use separate procedures and functions for validation and calculations whenever possible. For example, validation of user inputs should be performed in a separate Boolean function, called from the Click handler of the Calculate Charges button. Display error messages whenever appropriate. When the application starts, as in Figure 6-24, the Charges group box should be invisible. After the user clicks the Calculate Charges button and all inputs are validated, the Charges group box should appear, as shown in Figure 6-25. If the deposit amount was greater than the total charges, change the caption of the final field from “Balance due” to “Refund”. When the user clicks the Clear button, clear all inputs and hide the Charges group box. made In visual basic 2017
3. Solar Panel Installation
The 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.
The user should input the following information: first name, last name, phone,
number of panels, deposit amount, and a check box for the express installation
option. When the user clicks a button to view the charges, display a group box containing the following information: base installation charge, cost of installing additional panels, total installation cost, deposit amount, and balance due.
Error checking should include the following criteria:
• The name and phone fields cannot be blank
• The number of panels must be an integer between 1 and 1,000
• The deposit amount must be a numeric value greater than 0.
Use separate procedures and functions for validation and calculations whenever
possible. For example, validation of user inputs should be performed in a separate
Boolean function, called from the Click handler of the Calculate Charges button.
Display error messages whenever appropriate.
When the application starts, as in Figure 6-24, the Charges group box should be
invisible. After the user clicks the Calculate Charges button and all inputs are validated, the Charges group box should appear, as shown in Figure 6-25. If the deposit
amount was greater than the total charges, change the caption of the final field from
“Balance due” to “Refund”. When the user clicks the Clear button, clear all inputs
and hide the Charges group box.
made In visual basic 2017
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
I need the Form Design for the Solar Panel Installation