Question
Comparative Programming Languages Help: I need the application done in a C# Windows Form Application Here's the problem: Description: The Megawatt solar panel company installs
Comparative Programming Languages Help:
I need the application done in a C# Windows Form Application
Here's the problem:
Description:
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, and 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 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 1. 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.
Customer Information First Name Bernard Phone Last Name Johnson 305-555-1212 Installation Options Number of panels Deposit amount 1680.00 Calculate Charges Express installation (596) Charges Base charge for 2 panels 2,000.00 Clear Additional panels 1,200.00 Total cost 3,360.00 Deposit amount 1,680.00 Close Balance due 1,680.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started