Write an application for a construction company to handle a customer’s order to build a new home. Use separate ButtonGroups to allow the customer to select one of four models, the number of bedrooms,...

Write an application for a construction company to handle a customer’s order to build a new
home. Use separate ButtonGroups to allow the customer to select one of four models, the
number of bedrooms, and a garage type. Assume that the models are the Aspen, R110 000;
the Brittany, R120 000; the Colonial, R120 000; or the Dartmoor, R130 000. Assume that any
model can have two, three, or four bedrooms and that each bedroom adds R10 500 to the
base price. Assume that the garage type can accommodate zero, one, two, or three cars, and
that each car adds R7775 to the price.


Microsoft Word - Programming 732 Assignment FACULTY OF INFORMATION TECHNOLOGY PROGRAMMING 732 ASSIGNMENT Name & Surname: _ ICAS / ITS No: Qualification: Semester: Module Name: Date Submitted: ASSESSMENT CRITERIA MARK ALLOCATION EXAMINER MARKS MODERATOR MARKS MARKS FOR CONTENT QUESTION ONE 15 QUESTION TWO 20 QUESTION THREE 35 QUESTION FOUR 20 TOTAL 90 MARKS FOR TECHNICAL ASPECTS TABLE OF CONTENTS Accurate numbering according to the numbering in text and page numbers. 2 CODE Program text indentation Use of constant, variable and structure names Comments 5 REFERENCES According to the Harvard Method 3 TOTAL 10 TOTAL MARKS FOR ASSIGNMENT 100 Examiner’s Comments: Moderator’s Comments: Signature of Examiner: Signature of Moderator: Assignment Instructions 1. All assignment must be typed, not handwritten. 2. Every assignment should include the cover page, table of contents and a reference list or bibliography at the end of the document 3. A minimum of five current sources (references) should be used in all assignments and these should reflect in both in-text citations as well as the reference list or bibliography 4. In-text citations and a reference list or bibliography must be provided. Use the Harvard Style for both in-text citations and the reference list or bibliography 5. Assignments submitted without citations and accompanying reference lists will be penalized. 6. Students are not allowed to share assignments with fellow students. Any shared assignments will attract stiff penalties. 7. The use of, and copying of content from websites such as chegg.com, studocu.com, transtutors.com, sparknotes.com or any other assignment-assistance websites is strictly prohibited. This also applies to Wiki sites, blogs and YouTube. 8. Any pictures and diagrams used in the Assignment should be properly labelled and referenced. 9. Correct formatting as indicated on the Cover Page should be followed (font-size 12, font-style Calibri, line spacing of 1.0 and margins justified). 10. All Assignments must be saved in PDF using the correct naming-convention before uploading on Moodle. E.g. StudentNumber_CourseCode_Assignment (402999999_WBT512A_Assignment). 11. For each question in the assignment, paste the screenshot of the output. Below this screenshot, paste all the code for that particular question. QUESTION 1 15 MARKS Write an application for a construction company to handle a customer’s order to build a new home. Use separate ButtonGroups to allow the customer to select one of four models, the number of bedrooms, and a garage type. Assume that the models are the Aspen, R110 000; the Brittany, R120 000; the Colonial, R120 000; or the Dartmoor, R130 000. Assume that any model can have two, three, or four bedrooms and that each bedroom adds R10 500 to the base price. Assume that the garage type can accommodate zero, one, two, or three cars, and that each car adds R7775 to the price. [15] QUESTION 2 20 MARKS Create a JApplet that contains two JTextFields, a JButton, and three JLabels. When the user types an employee’s first and last names (separated by a space) in a JTextField, the employee’s job title is displayed in a second JTextField. Include two JLabels to describe the JTextFields used for data entry. Also include a third JLabel that displays the employee’s title or an error message if no match is found for the employee. Use parallel arrays to store the employees’ names and job titles. [20] QUESTION 3 35 MARKS Develop a JFrame program that will be connected with MySQL database named richfield and allows a user to register his/her personal details that will be stored in a table named registration. Table fields (Name, Surname, DOB, Address, Gender, Username, Password, Security_Question, Security_Answer) Use appropriate data type for given fields names. Login form The user will be able to register first, before he/she can be able to login. See screenshot below. Use two labels for “Forgotten password” and “New user Signup”. When the user clicks any of the two labels, a form must pop-up to allow the user to either reset the password or enter signup details depending on the label clicked. Your login form must be connected to a database that has the users table. When the user clicks the Login button, the program must verify user username & password to check if they match with those in the users table. If so, a message must pop-up displaying “Welcome with [your name]” . For example, “Welcome Samuel Rametse.” New user Signup form Please note that you have to validate all form fields when the user click submit button to ensure that there are no missing values in all the fields. The message notifying the users about these missing values must be displayed in a dialog box. Use the following security questions: 1. What's your mother’s middle name? 2. Which primary school did you attend? 3. Which year did you finish high school? 4. What is your favourite colour? Once the user is done completing the form correctly, data must be stored inside database table “registration” Clear button will reset all the fields in the form to blank. Exit button will terminate the form Forgotten password form The user is required to provide registered username, security question and security answer which were used the time he/she signed up. The program will compare the supplied information with the one in the database. If the information is correct the pop-up message will appear in the form of a dialog box with user password; otherwise it will show dialog message with “user information not found”. or [35] QUESTION 4 20 MARKS Using java servlet and JSP, develop a web application that will assist the Richfield administrator to add new users to a portal. You’re required to create MySQL database to store users’ information. A database named portal should have one table called users. Once admin done registering the users, he/she must be able to view all records by clicking on the “View All Records” link, and a list of users will be displayed as shown in the screenshots below. The Admin should be able to “Edit” and “Delete” user records. Note that you are advised to use Apache tomcat or Glassfish as your local web server to be able to run this web application. [20] End of Assignment
Sep 13, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here