MN404 Fundamentals of Operating Systems and Java Programming
Q1. Specify Use cases minimum of six for the design of Country Kitchen Classics Web User Interface specifying the actors. Provide possible scenarios minimum of two for each Use case.
Q2. Determine the classes that are required for the design minimum of four classes. All classes need to be given a meaningful name.
Q3. Assign attributes for the classes specifying the datatype, the possible range of values meaningful names should be given.
Q4. Provide the class declaration for three of the classes and a simple implementation of initialization of datatypes of the classes. And provide a display method that outputs the datatypes to the console.
Answer:
Introduction:
Online Meal Supplier is an application that helps the customer to book and sellers to sell their gourmet frozen meals over the Internet. First it allows the customer to register themselves with the application by providing their details such as name, shipping address, contact number, email address and credit card details. The site also host information of the meals that they sell. The meal information like their id, name, price and description are stored in the database. The customers view the meals of the day and order them with the quantity specified. There are usually two types o
f shipping one is regular and other is overnight shipping. The order details are maintained by the database. The order details include order id, id of the customer who made the order, id of the supplier who is going to supply, order date and shipping. The shipping clerk views the orders and make the shipping in the timely manner. The application helps the suppliers to view the information about meals and inform the customers. The application also helps the administrator to generate report of daily sales of the meals. This in turn helps to maintain the inventory information. In this report a detailed use case and class diagram used for implementing the Online Meal Supplier is provided below. In addition to this the data type of the attributes of the class are specified and sample implementation of the three of the class is done.
Case Study1:
Specify Use cases (minimum of six) for the design of Country Kitchen Classics Web User Interface specifying the actors. Provide possible scenarios (minimum of two) for each Use case. (Use UML notation)
Solution:
The use case diagram for the design of the Country Kitchen Classic Web User is provided below. Here the Customer using the application first register with the site with their personal details and then view the meals list supplied by them, then query regarding the meal description to staff and then finally order the meals. When they order the user selects any one of the shipping methodology. The method of shipping followed are overnight shipping and regular shipping. Regular shipping involves shipping the order at the specified date whereas the overnight shipping requires the shipping of the order at the same date the order was made. The shipping clerk who takes care of the delivery of the order, view the orders and then make the delivery of the items in the timely manner. The application administrator may want to track the meals sale details so as to determine the meals that is ordered by most and the meals that is preferred by least number of people. Hence administrator is given the functionality of the sale report generation.
Case Study 2:
Determine the classes that are required for the design (minimum of four classes). All classes need to be given a meaningful name.
The application requires seven classes to be implemented. The classes includes Customer, Supplier, Meals, Order, Regular Shipping, Overnight Shipping and OrderLine. The attributes and methods of the classes are provided in the class diagram. The Customer class stores customer ID which uniquely identifies the customer, customer name, shipping address, telephone number, email address and credit card number. The Customer class contains the functionality to add, update or delete the customer details. The Supplier class stores the supplier ID and name. The Meals class stores the information about meals like their id, name, price and quantity. The meals class is also provided with the functionality to add, update or delete the meals information. The Order class contains the order id which uniquely identifies the order, order date, the id of the customer who makes the order, id of the supplier who delivers the order and the shipping methodology. Each order contains several meals order by them. So the id of meal and the number of quantity ordered are maintained in the OrderLine class.
Case Study3:
Assign attributes for the classes specifying the data type, the possible range of values (meaningful names should be given).
Solution:
The attributes of the classes and data type of the attributes and range of values are provided for each class.
Customer
Attribute Name |
Data Type |
Range |
customerID |
int |
|
customerName |
varchar |
30 |
shippingAddress |
varchar |
50 |
telephoneNumber |
number |
10 |
creditCardNumber |
number |
10 |
emailAddress |
varchar |
30 |
Supplier
Attribute Name |
Data Type |
Range |
supplierID |
int |
|
supplierName |
varchar |
30 |
Order
Attribute Name |
Data Type |
Range |
orderID |
int |
|
orderDate |
date |
|
customerID |
int |
|
supplierID |
int |
|
shippingMethod |
Varchar |
10 |
OrderLine
Attribute Name |
Data Type |
Range |
orderID |
int |
|
mealID |
int |
|
Quantity |
int |
|
Regular Shipping
Attribute Name |
Data Type |
Range |
shippingCost |
int |
|
deliveryDate |
date |
|
Overnight Shipping
Attribute Name |
Data Type |
Range |
shippingCost |
int |
|
Meals
Attribute Name |
Data Type |
Range |
mealID |
int |
|
mealName |
varchar |
30 |
mealPrice |
Float |
|
mealDescription |
varchar |
255 |
Case Study 4
Provide the class declaration for three of the classes and a simple implementation of initialization of datatypes of the classes. And provide a display() method that outputs the datatypes to the console.
Solution:
The class declaration for some of the classes like Meals, Customers and Supplier are provided below.
Conclusion:
Thus based on the specified business case, use case diagram and class diagram is formulated and given in the case study. The data type of the attributes of the class are examined and the implementation of the class is done. The implementation of the class contains the function display () that outputs the attributes name and data type.
References:
[1] Yogesh Singh, Ruchika Malhotra, “Object-Oriented Software Engineering”, PHI Learning Private Limited, 1993, ch-3, pp- 73-77.
[2] Ivar Jacobson, “Object-oriented Software Engineering: A Use Case Driven Approach”, Pearson Education, 201,2 ch-4, pp- 93-107.
[3] Bruegge, “Object-Oriented Software Engineering: Using Uml, Patterns and Java”, Pearson Education, 2ed, 2004, ch-2, pp- 83-110
Buy MN404 Fundamentals of Operating Systems and Java Programming Answers Online
Talk to our expert to get the help with MN404 Fundamentals of Operating Systems and Java Programming Answers to complete your assessment on time and boost your grades now
The main aim/motive of the management assignment help services is to get connect with a greater number of students, and effectively help, and support them in getting completing their assignments the students also get find this a wonderful opportunity where they could effectively learn more about their topics, as the experts also have the best team members with them in which all the members effectively support each other to get complete their diploma assignments. They complete the assessments of the students in an appropriate manner and deliver them back to the students before the due date of the assignment so that the students could timely submit this, and can score higher marks. The experts of the assignment help services at urgenthomework.com are so much skilled, capable, talented, and experienced in their field of programming homework help writing assignments, so, for this, they can effectively write the best economics assignment help services.