Software Engineering: Analysis and Design Assignment for ITECH7201

Verified

Added on  2023/02/01

|4
|434
|29
Project
AI Summary
This assignment solution addresses the requirements of the ITECH7201 Software Engineering course, focusing on the design and development of a console application. The solution details the implementation of a system that calculates and compares the cost of different fare types for public transport based on user inputs like the number of weekdays, weekends, and total weeks of travel. The system utilizes UML diagrams, including use case, class, and sequence diagrams, to illustrate the system's design and functionality. The class diagram demonstrates the use of interfaces and polymorphism, while the sequence diagram illustrates the flow of transactions and error handling. The solution also discusses the benefits of using interfaces and polymorphism in object-oriented programming, highlighting their role in code reusability and flexibility. The document also provides a brief overview of the project's objectives and learning outcomes, ensuring that the solution aligns with the course requirements.
Document Page
Running head: ITECH7201 SOFTWARE ENGINEERING: ANALYSIS AND DESIGN 1
ITECH7201 Software Engineering: Analysis and Design
Name of Student
Institution Affiliation
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
ITECH7201 SOFTWARE ENGINEERING: ANALYSIS AND DESIGN 2
The requirements involve implementing a program that will be used in calculating the
total fare required to travel in a whole year in the two options available in the move card and
give the recommendation on which fare type is cheaper.
The system will involve the actors, which in this case are the passengers, to input the
number of weekdays, weekends and the total number weeks that they are planning to travel then,
the system will calculate and compute the total fare on each fare type. The number of weekdays
must be in the range of 0 to 5, a number of weekends must be in the range of 0 to 2 and that of
weeks should be in within the range of 1 to 52. If the user enters a wrong value, he will be
prompted to ensure that the value entered is valid.
The system design has been diagrammatically represented in three UML diagrams
namely use case, class diagram and sequential diagrams. The use case diagram of the processing
application is as shown below. The passenger is the actor and the direction of flow shows the
direction of flow of user inputs to be processed. The diagram is as shown below.
Document Page
ITECH7201 SOFTWARE ENGINEERING: ANALYSIS AND DESIGN 3
The class diagram of the intended system is as shown below, The main class named
implements the interface MoveCard which in turn extends the other two interfaces.
Sequential diagram of the intended system is as shown below. The time that will be
required to compute each transaction is also shown. The user inputs that are invalid are returned
back to the user for him/her to enter the correct value.
Document Page
ITECH7201 SOFTWARE ENGINEERING: ANALYSIS AND DESIGN 4
I have learned that interfaces are very helpful in the implementation of code as they have
the ability to contain method signatures and fields which aid in assisting of inheriting the
behaviors of more than one classes. Polymorphism as the ability of an object to assist in more
than one form, has been very helpful especially in cases of reusing of the codes. I modified my
class diagram later after realizing that the fare prices should be initialized in the interface since
its methods are final and cannot be instantiated.
chevron_up_icon
1 out of 4
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]