JAVA_programing_&report
Budget: ₹100 – ₹125 INR
Maximum 4000 words
Please note that exceeding the word count by over 10% will result in a reduction in grade by the same percentage that the word count is exceeded.
referenced using the Harvard system.
Introduction
This assignment is aimed at allowing you to demonstrate a holistic set of skills in object- oriented programming and systems engineering as required for the design and implementation of real-world Internet applications. This includes the adoption of UML-based systems design concepts and Java-based coding techniques ensuring professional software development. You are required to complete a portfolio of tasks related to a specific case study described below. These tasks constitute a comprehensive design of an electronic system to support the core system’s functionality. Consider yourself a senior software engineer delivering this assignment as a stand-alone project for your organisation.
Tasks 1
Write a program that asks the user to enter a minimum of five positive integers greater than zero. The program should stop asking the user for input when they enter a zero or a negative number. The program then prints out the largest, the smallest and the average of all the positive integer values input: if the user has entered eight positive integers and the ninth value input is a zero or negative number, the largest, smallest and average of the eight positive integer values is printed. The program should cater for a wrong input: if the user enters a wrong input (a value which is not an integer) the program should notify the user that invalid input has been entered and asks the user to enter positive integers again.
Case study
A manufacturer of desktop PCs wishes to enhance functionality of their website with a module which would allow visitors to customize their orders with a specific computer configuration.
The process for manipulation with the Configuration Module should provide customers with the selection of specific computer components, in particular:
Motherboard Processor RAM Hard drive Video card System case
The Configuration Module must support the following functionality.
1) Selecting each of the above components out of their respective catalogues held in a database.
2) Restricting the selection to the compatible components only
3) Supporting a change for each of the selected components by repeating steps (1) and (2).
4) Calculating the total price of the order based on the selected components.
5) Adding the finalized configuration to a shopping basket.
Using the above case study, please complete a set of the following interrelated tasks.
Task 2
Answer the following question:
a) How can the system’s static view be represented in terms of an unambiguous class hierarchy and relationships between the classes? In your response, use a range of UML class and object diagrams.
b) How can the system’s dynamic view be represented in terms of key interactions between methods involved in various processes of its functionality? In your response, use a range of UML sequence/activity.
Task 3
Implement the class diagram you have created in response to task 2a in Java. Add appropriate methods to set and get the instance variables in the classes.
Task 4
a) Using the class and object diagram created in response to task 2a, select an appropriate class as the base class. Write the Java code for this base class and up to three derived classes, and implement this hierarchy in Java.
b) For this assignment consider the database to be text files. In these text files, include dummy data showing the catalogue for the components. Demonstrate one example of the functionality 1 (selecting components from the catalogue) and passing them to the class where the price is calculated. Implement this interaction in Java.
c) Select the price calculation functionality as an abstract method
Additional instructions
Responses to all the tasks, including UML diagrams and examples of Java code
Please note that exceeding the word count by over 10% will result in a reduction in grade by the same percentage that the word count is exceeded.
referenced using the Harvard system.
Introduction
This assignment is aimed at allowing you to demonstrate a holistic set of skills in object- oriented programming and systems engineering as required for the design and implementation of real-world Internet applications. This includes the adoption of UML-based systems design concepts and Java-based coding techniques ensuring professional software development. You are required to complete a portfolio of tasks related to a specific case study described below. These tasks constitute a comprehensive design of an electronic system to support the core system’s functionality. Consider yourself a senior software engineer delivering this assignment as a stand-alone project for your organisation.
Tasks 1
Write a program that asks the user to enter a minimum of five positive integers greater than zero. The program should stop asking the user for input when they enter a zero or a negative number. The program then prints out the largest, the smallest and the average of all the positive integer values input: if the user has entered eight positive integers and the ninth value input is a zero or negative number, the largest, smallest and average of the eight positive integer values is printed. The program should cater for a wrong input: if the user enters a wrong input (a value which is not an integer) the program should notify the user that invalid input has been entered and asks the user to enter positive integers again.
Case study
A manufacturer of desktop PCs wishes to enhance functionality of their website with a module which would allow visitors to customize their orders with a specific computer configuration.
The process for manipulation with the Configuration Module should provide customers with the selection of specific computer components, in particular:
Motherboard Processor RAM Hard drive Video card System case
The Configuration Module must support the following functionality.
1) Selecting each of the above components out of their respective catalogues held in a database.
2) Restricting the selection to the compatible components only
3) Supporting a change for each of the selected components by repeating steps (1) and (2).
4) Calculating the total price of the order based on the selected components.
5) Adding the finalized configuration to a shopping basket.
Using the above case study, please complete a set of the following interrelated tasks.
Task 2
Answer the following question:
a) How can the system’s static view be represented in terms of an unambiguous class hierarchy and relationships between the classes? In your response, use a range of UML class and object diagrams.
b) How can the system’s dynamic view be represented in terms of key interactions between methods involved in various processes of its functionality? In your response, use a range of UML sequence/activity.
Task 3
Implement the class diagram you have created in response to task 2a in Java. Add appropriate methods to set and get the instance variables in the classes.
Task 4
a) Using the class and object diagram created in response to task 2a, select an appropriate class as the base class. Write the Java code for this base class and up to three derived classes, and implement this hierarchy in Java.
b) For this assignment consider the database to be text files. In these text files, include dummy data showing the catalogue for the components. Demonstrate one example of the functionality 1 (selecting components from the catalogue) and passing them to the class where the price is calculated. Implement this interaction in Java.
c) Select the price calculation functionality as an abstract method
Additional instructions
Responses to all the tasks, including UML diagrams and examples of Java code