Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# Windows Forms App (.NET Framework) Form1.Designer.cs and Form1.cs The purpose of this project is to familiarize the student with variables, arrays, methods, classes, list
C#
Windows Forms App (.NET Framework)
Form1.Designer.cs and Form1.cs
The purpose of this project is to familiarize the student with variables, arrays, methods, classes, list boxes, and repetitiv program structures. The student will design a census application. This application will store basic information for 10 households on a fictitious street. The data will be stored in array variables and calculations will be performed as directe by the GUI. The GUI (graphical user interface) will look as follows: Census Entry X No of bathrooms 2 No of persons Clear Chapman Avenue Exat Household Income 75990 Baths: 3 Persons: 5 Baths: 2 Persons: 4 Income: $25,000.00 Income: $75,990.00 Avg No of bathrooms 05 Avg No of persons 0.9 Avg Household Income $10,099.00 This application consists of 1 form with 30 controls: 6 Textboxes 3 Lines (use labels) 12 Buttons 7 Labels 1 List box 2 Group boxes or panels and ladditional class that contains the methods Code must be written to respond to the user clicking on the buttons Project requirements: 1. when the tab key is hit, the focus must advance in a logical order 2. the user is not allowed to type in the textboxes that contain the averages 3. when the application starts the focus must be at the number of baths textbox 4. when the "Exit" button is clicked, the application ends 5. when the "Clear" button is clicked, all textboxes and the listbox is cleared o 6. when a house button is clicked, the data entered in the 3 upper right textboxes are added to the list box and the averages are computed based on the 10 stored entries or the number of houses entered to this point(your choice) and written to the 3 lower right textboxes 7. there are 10 house buttons used to enter data for 10 houses 8. the code layer of the form will contain click event methods for the buttons only 1. the code in the buttons click event will call the processHouse method in the class only 9. the class will contain the following 4 methods: ProcessHouse (public static method in the class) AverageBaths (private method in the class) o Average Persons (private method in the class) Averagelncome (private method in the class) 10. When a house button is clicked, ProcessHouse is called. ProcessHouse will call the other 3 methods to process that data 11. the data will be stored in private arrays in the class 12. output dollar amounts must be formatted as currency 13. all code will be in the class except for the calls in the click events 14. there will be no direct references to controls on the form from the class 1. if the form is called 'form1, nowhere in the class will be the word: form1 The purpose of this project is to familiarize the student with variables, arrays, methods, classes, list boxes, and repetitiv program structures. The student will design a census application. This application will store basic information for 10 households on a fictitious street. The data will be stored in array variables and calculations will be performed as directe by the GUI. The GUI (graphical user interface) will look as follows: Census Entry X No of bathrooms 2 No of persons Clear Chapman Avenue Exat Household Income 75990 Baths: 3 Persons: 5 Baths: 2 Persons: 4 Income: $25,000.00 Income: $75,990.00 Avg No of bathrooms 05 Avg No of persons 0.9 Avg Household Income $10,099.00 This application consists of 1 form with 30 controls: 6 Textboxes 3 Lines (use labels) 12 Buttons 7 Labels 1 List box 2 Group boxes or panels and ladditional class that contains the methods Code must be written to respond to the user clicking on the buttons Project requirements: 1. when the tab key is hit, the focus must advance in a logical order 2. the user is not allowed to type in the textboxes that contain the averages 3. when the application starts the focus must be at the number of baths textbox 4. when the "Exit" button is clicked, the application ends 5. when the "Clear" button is clicked, all textboxes and the listbox is cleared o 6. when a house button is clicked, the data entered in the 3 upper right textboxes are added to the list box and the averages are computed based on the 10 stored entries or the number of houses entered to this point(your choice) and written to the 3 lower right textboxes 7. there are 10 house buttons used to enter data for 10 houses 8. the code layer of the form will contain click event methods for the buttons only 1. the code in the buttons click event will call the processHouse method in the class only 9. the class will contain the following 4 methods: ProcessHouse (public static method in the class) AverageBaths (private method in the class) o Average Persons (private method in the class) Averagelncome (private method in the class) 10. When a house button is clicked, ProcessHouse is called. ProcessHouse will call the other 3 methods to process that data 11. the data will be stored in private arrays in the class 12. output dollar amounts must be formatted as currency 13. all code will be in the class except for the calls in the click events 14. there will be no direct references to controls on the form from the class 1. if the form is called 'form1, nowhere in the class will be the word: form1Step 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