Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment -

1. Objectives - The purpose of this assessment item is to assess your skills attributable to the specified learning outcomes, and achieving the expected graduate attributes of advanced level knowledge, cognitive, technical, and creative skills, and professional level communication and self-management. The learning outcomes are:

  • Design and implement appropriate data structures for application development.
  • Analyse, develop and implement software solutions with the focus of data structures and algorithms.
  • Apply classes, inheritance, polymorphism, and exception handling.

2. Assessment Task - In this assignment, you are required to analyse the given problem, model, and design the required data structures using UML class diagrams. You will be implementing the software solution applying efficient algorithms, inheritance, polymorphism, and exception handling. Your Java Application should have an interactive Graphical User Interface (GUI) based on the JFrame class using SWING GUI components. You should also write a report as specified demonstrating your conceptual knowledge and communication skills.

2.1 Problem - A restaurant manager wants you to develop a software application which can be used by customers seated at a table to choose their menu items for a selected meal of breakfast, lunch, or dinner. A table can be occupied by more than one customer and all the customers in one table should be able to choose their options and send it. The concerned staff members such as chef, waiter, and billing staff should be able to use the entered data for their job. To make your job easy, initially you develop a prototype. During the prototype development you have to develop a Java Application that lets the user to choose food and beverage items for a lunch menu and display the nutrition values for the individual items and total for the whole meal ordered.

2.2 Modelling and GUI Design - You can use the following guidelines in your modelling and GUI design.

1. First you will design the classes using UML class diagrams and include the attributes with correct data types and all the methods, clearly indicating public or private. This will ease your implementation.

2. A top panel that contains Text fields for text entry, and ComboBoxes (drop down list) for selecting food and beverage. Provide Labels for the Textfields and ComboBoxes.

3. A middle panel that contains a Text area to display the menu choices and nutrition values. Provide a Label to display the Text area.

4. A bottom panel that contains four buttons which are "Enter Data" button, "Display Choices" button, Display Order, "Clear Display" button and "Quit" button.

An example GUI design is shown in Figure 1. You can modify your design to make it more user friendly and add the reasoning for your changes in java doc comments inserted in the source code file.

2.3 Data Structures - You can use the classes given below as a guideline for your design.

1. Customer class

a) Include appropriate fields to store:

Customer's first name: Maximum width 20 characters.

Selected table number: It should be an integer value between 1and 8 with a default value of 1. Raise an exception for wrong entry and allow the user to reenter the value for 3 times.

b) A constructor and necessary accessor and mutator methods to get and set values.

c) A toString() method that displays the customer details.

2. Nutrient class

a) This class should have the fields to store the nutrient name and quantity of nutrient.

Complete the class with necessary constructor, mutator, accessor methods and a toString() method.

3. MenuItem Class

a) This class should have the fields to store:

MenuItem name and an ArrayList of nutrient objects to store the nutrient details.

b) It should also include constructor, mutator, and accessor methods.

c) A toString() method for displaying item details.

d) This class also should have a copy constructor to allocate memory for the ArrayList when the assignment of method calls with parameter passing and assignment of one object to another using the assignment statement are required.

4. OrderedCustomer class

a) This class extends the Customer class. This class should have a member field to store the list of menu items chosen by the customer by clicking the "Enter Data" button.

This class also should have:

b) Constructor, accessor and mutator methods.

c) A toString() method for displaying the OrderedCustomer details.

d) A method to calculate the total of each of the nutrition values.

Use polymorphism while using objects of this class.

5. RestaurantOrderGUI class

a) This class should have the GUI components listed above.

b) It should have the methods to set up the GUI components and the event handling methods.

c) This will also contain the main method.

2.4 Software Tools for Building the Application - You can build your application using the TextPad Editor or NetBeans. You should create the GUI components using code rather than 'designer' and 'click and drag' of the NetBeans. This creates code which is not maintainable. Remember this is a good prototyping tool, but not recommended for coding.

Note: Commence with one class at a time, test it and then incrementally add the next.

2.5 Report - You should write a report which includes a front page with your student details, and the UML class diagrams, and screen shots of execution of your program to demonstrate that you have tested the program. Provide any additional information you want to include, for example reasoning for your particular choice of screen design.

Attachment:- Assignment File.rar

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92770023

Have any Question?


Related Questions in Computer Engineering

Round robin rr jobs are processed using a fixed time-slice

Round Robin (RR): Jobs are processed using a fixed time-slice. The jobs are initially kept in a queue based on the order of arrival. The job at the front of the queue is removed and served similar to the FIFO algorithm. ...

Question ransomware to pay or not to pay when it comes to

Question: Ransomware: To pay or not to pay? When it comes to corporate data, should corporations pay? Can you trust paying? What can be done to protect against ransomware?Would you pay if it were your own personal data? ...

If the real interest rate is -15 per annum and the infla-

If the real interest rate is -1.5% per annum and the infla- tion rate is 3% per annum, then what is the present value of a $1,000,000 nominal payment next year?

Assignment week 2 documenting the project

Assignment: Week 2 Documenting the Project Lifecycle Well-written project documentation clarifies intent, documents decisions and results, and allows project managers to assess project progress (and report it, as necessa ...

What is a survey and pros and cons of using this method to

What is a Survey and pros and cons of using this method to collect data are? Have you done a survey? How successful were your results?

A politician claims that the mean salary for managers in

A politician claims that the mean salary for managers in his state is more than the national? mean, ?$83,000. Assume the the population is normally distributed and the population standard deviation is ?$9200. The salarie ...

Answer the following question a suppose alice shares a

Answer the following Question : a. Suppose Alice shares a secret block cipher key, K_AB with Bob, and a different secret block cipher key, K_AC with Charlie. Describe a method for Alice to encrypt an m-block message such ...

Question suppose that a bayesian spam filter is trained on

Question : Suppose that a Bayesian spam filter is trained on a set of 10000 spam messages and 5000 messages that are not spam. The word "opportunity" appears in 175 spam messages and 20 messages that are not spam. Would ...

String problemfor each numerical value 0 1 2 9 0 lt number

String Problem For each numerical value 0, 1, 2, ...9 (0 Print the converted sentence both to the screen and to an output file. Your input file consists of a variable number of records. Each record is a sentence of lengt ...

Solve the following problem from fibonaccis liber abacia

Solve the following problem from Fibonacci's Liber abaci: A man left to his eldest son one bezant and a seventh of what was left; then from the remainder, to his next son he left two bezants and a seventh of what was lef ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As