Richfield IT: Java Application for Koch's Cottages, 2nd Sem Assignment
VerifiedAdded on 2019/09/22
|3
|667
|456
Homework Assignment
AI Summary
This assignment solution addresses a Java programming problem for Richfield Graduate Institute of Technology. The first part involves creating a Java application (JCottageFrame.java) for Koch's Cottages, a weekend getaway resort. The application calculates vacation prices based on cottage and boat rentals, incorporating mutually exclusive checkboxes and labels for user interaction. The second part requires the creation of a MySQL database named MyCustomers with Customers and Orders tables, including appropriate data types and primary/foreign keys. The solution includes database design output and sample records. A Java program is then developed to establish a JDBC connection to the MyCustomers database, retrieve and display data from both tables using Swing components (TextArea), and implement menu items or command buttons for data retrieval. Finally, a servlet program is written to search for a customer in the database, adding new customer details if not found and displaying appropriate messages based on the search results. The assignment emphasizes database interaction, GUI design, and servlet development within a Java environment.
1 out of 3