Design and develop a small console application in any Object Oriented Programming (prefer java code, eclipse)
v Analysis and design techniques, including the development of use cases and UML diagrams –
Specifically, use case diagrams, class diagrams, and sequence diagrams.
v Object-oriented programming, focusing on polymorphism and the use of interfaces
The scenario is given in the file
ITECH7201 Software Engineering: Analysis and Design Assignment 1 Overview You are required to design and develop a small console application in any Object Oriented Programming Language. Completion of this assignment requires an understanding of: · Analysis and design techniques, including the development of use cases and UML diagrams – Specifically, use case diagrams, class diagrams, and sequence diagrams. · Object-oriented programming, focusing on polymorphism and the use of interfaces Assessment Details A new city “Ballymanus” has been announced in a state in Australia and the state government has planned to extend the public transport where the fares will be calculated according to the existing fare rule of the state. As per the existing fare system, everyone must have to buy the “Move Card” in order to travel on trains, tram, and buses in different parts of the state, including the new city. There are 2 options in “Move Card” 1. “Move Money”: When you travel occasionally, you can use a “Move Money”. You need to load an amount onto your “Move Card” and it will automatically calculate the lowest fare possible as you touch on and touch off. The fare for the Move Money is given in the following table: 2. “Move Pass”: If you travel often, you can use a “Move Pass” and you’ll need to select the number of consecutive days you travel when you buy it. You can buy a Move Pass for 7 days or anywhere between 28 and 365 days. The fare for the Move Pass is given in the following table: Travelers might need a calculator to work out how much their journey will cost and to find the most cost effective way for them to travel using “Move Card”. You have been assigned to design and develop a small console CALCULATOR program to help the travelers, enabling them to find the appropriate option (“Move Pass”/”Move Money”) and to calculate the traveling cost. Once a calculation is processed, the program will return to the initial condition and will be ready to commence another calculation. The CALCULATOR program Should be able to input the following options: a) Fare type: 1 OR 2 (1= Full fare, 2= Concession) b) Number of days to travel on weekdays: a number between 0 and 5 c) Number of days to travel on weekends: a number between 0 and 2 d) Number of weeks you are planning to travel: a number between 1 and 52 The CALCULATOR will display the following output based on the input provided by the user: i. The amount in “Move Money” ii. The amount in “Move Pass” iii. And a Recommendation on which option should be cost effective for the user The system should be flexible so that the state government can include new fare types (e.g., student pass) and the concept of varying fares for different zones (e.g., Zone 1, Zone 2, a combination of multiple zones) at a later date without having to rewrite the entire program. This means you will need to use an interface for Processing total fares, and polymorphism for the various fare type classes, so that new and different fare types may be added at a later date with minimal updates to the code. You are asked to provide with some documentation before you commence coding so that the client (the state government) is able to verify that The program you intend to code will address their requirements. The client would like to see the use cases to summarize the requirements in written format, as well as use case diagrams, class diagrams, and sequence diagrams. * For verifying the program, two sample input-outputs are given at the Appendix section Submission You are required to submit the assignment before the due date consisting of: A Zip file containing the following (submitted via Moodle under the Assignment 1 link) 1. A written report comprising: · Use Cases summarizing the requirements · UML Diagrams, created in Enterprise Architect, comprising: i. a Use Case Diagram for processing the calculation ii. a Class Diagram of the intended system iii. a Sequence Diagram for processing the calculation · A short reflection (approximately 200-300 words) of what you have learned, if anything, on this assignment, particularly relating to requirements design and analysis, UML diagrams and object-oriented programming with interfaces and polymorphism. As an example, if you found that you changed your initial UML diagrams after you had commenced coding, you should explain what these changes were and explain what you learned that led to these changes. 2. Enterprise Architect file(s) containing your UML Diagrams for the Use Case, Class and Sequence Diagrams 3. Your finished program (in any OOP language), addressing the requirements outlined in the Assignment Details. Marking Criteria/Rubric Task Available Marks Student Mark 1. Requirements Analysis and Design · Use Cases summarizing the requirements of the program 2 · A Use Case Diagram for processing a calculation 2 · A Class Diagram of the intended system 2 · A Sequence Diagram for processing a client’s query order 2 2. Development of Code A complete program (in any OOP language) addressing the requirements outlined in the Assignment Details section of this specification, including: · Functionality to process the Calculation for each Fare type 2 · Functionality to process the Final Recommendation 1 · Validation of input values for each field 1 · Code demonstrating the use of an interface and polymorphism to handle Fare types and the various options in each fare type 6 3. Reflection on Learning · A short reflection (approximately 200-300 words) of what you have learned, if anything, on this assignment, particularly relating to requirements design and analysis, UML diagrams and object-oriented programming with interfaces and polymorphism. 2 Total 20 Appendix Sample Input and Output Case-1 INPUT: Fare Type (Enter “1” for Full Fare and “2” for Concession): 1 Number of days to travel on weekdays: 3 Number of days to travel on weekends: 2 Number of weeks: 6 OUTPUT: The amount in “Move Money”: $235.20 The amount in “Move Pass”: $222.60 Recommendation: “Move Pass” Case-2 INPUT: Fare Type (Enter “1” for Full Fare and “2” for Concession): 2 Number of days to travel on weekdays: 2 Number of days to travel on weekends: 0 Number of weeks: 6 OUTPUT: The amount in “Move Money”: $52.8 The amount in “Move Pass”: $111.3 Recommendation: “Move Money”