Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a flowchart and pseudocode for the following: The Megawatt solar panel company installs solar panels on home rooftops. The base installation charge of $2,000

Create a flowchart and pseudocode for the following:

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.

Test the application by varying the number of solar panels between 1 and 10, varying the deposit amount, and changing the express option. For example, in Figure 6-26, the user wants to install only one panel, but must pay the base installation price of $2,000.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

Describe the parts of a typical BNA state portfolio.

Answered: 1 week ago

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago