Design and develop a small console calculator

Assignment Help Other Subject
Reference no: EM132298026

Assignment

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

Learning Outcomes

The following course learning outcomes are assessed by completing this assessment:
• Understand the significance of detailed project planning and control, good communication and documentation and the use of appropriate tools in order to provide a quality product
• Understand the distinction between software engineering and programming, and thus the distinction between a software configuration and a program
• Understand the methods and techniques involved in designing, implementing and maintaining an information system, in particular using an object-oriented approach
• Demonstrate skills in designing and implementing an information system.

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"
• "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:

Table 1 Move Money Daily Fare

Fare Type

Weekdays (Daily)

Weekends (Daily)

Full fare

$8.80

$6.40

Concession

$4.40

$3.20

• "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:

Table 2 Move Pass Fare

Fare Type

Weekly rate (7 days pass)

Daily rate for 28-365 days

Full fare

$44.00

$5.30

Concession

$22.00

$2.65

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:

• Fare type: 1 OR 2 (1= Full fare, 2= Concession)
• Number of days to travel on weekdays: a number between 0 and 5
• Number of days to travel on weekends: a number between 0 and 2
• 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:
• The amount in "Move Money"
• The amount in "Move Pass"
• 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

Attachment:- Software Engineering - Analysis and Design.rar

Verified Expert

The solution file is implemented in java and report in MS word which discussed about the UML diagrams includes use case, class diagram and sequence diagram.This program has interface and a class. The interface methods are implemented in class such as moveMoney() and movePass(). This project utilizes the interface and object-oriented concept.This program has input(),movecard(),moveMoney() and movePass() methods are there to perform the calculation.The input() is used to read input value from user and use of input values and based on user requirement the system will calculate for both full fare and concession for week days and weekends. Finally, it will print both full fare and concession price so that user can easily select their option and proceed further. The solution file has class diagram, use case diagram and sequence diagram with explanation.

Reference no: EM132298026

Questions Cloud

Define a variable called ptrage : In the space below, define a variable called ptrAge that is a pointer to an integer value and explain?
In how many different ways can they sit at the table : 1. Six persons a, b, c, d, e, and f want to sit at a dining table with six chairs. Answer the following questions using the Product Rule.
Discuss the relationship between classes and objects : Discuss the relationship between classes and objects. Give a real-world analogy that depicts the relationship between classes and objects.
How many coins each of the remaining pirates receives : The solution should indicate which pirates die, and how many coins each of the remaining pirates receives.
Design and develop a small console calculator : design and develop a small console application in any Object Oriented Programming Language. Completion of this assignment requires an understanding
Firewalls have the capability to block both ingress : Firewalls have the capability to block both ingress (inbound) and egress (outbound) traffic. Many organisations (and also true for my home NBN router)
Find 7 non-isomorphic graphs : 1. Find 7 non-isomorphic graphs with three vertices and three edges. 2. Prove that the complete bipartite graph K4,6 has a Euler circuit.
Information system experts or development : As a computer becomes faster and cheaper and the Internet becomes more widely used, most of the problems we have with information systems
Approaches to the systems development life cycle : The protypical (using a prototype), Agile and Incremental approaches to the systems development life cycle are three ways to implement

Reviews

len2298026

5/2/2019 4:02:28 AM

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) o A written report comprising: ? Use Cases summarizing the requirements ? UML Diagrams, created in Enterprise Architect, comprising: ? a Use Case Diagram for processing the calculation ? a Class Diagram of the intended system ? 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.

Write a Review

Other Subject Questions & Answers

  Explain the purposes of clinical trials

Explain the purposes of Clinical Trials and how they are affected by Health Care Regulations. Make sure to list any governing agencies and their roles in Clinical Trials

  Discuss about occupational safety and health implementation

How do you differentiate about occupational safety and health implementation and practice of developed and developing countries? The response must be typed.

  Evolution of national incident management system

Discuss the evolution of the National Incident Management System (NIMS) and its effectiveness today? What role does (should ) the private security industry, and the public at large, play in the Global War on Terrorism?

  Security authentication in todays business world

Security authentication is a hot topic in today's business world. However, many people may have differing ideas when it comes to what security authentication actually is. This paper will address those perceptions in a straightforward and easy to u..

  Interpret the significant impact of new public management

Interpret the significant impact of New Public Management on Non-Profit Reform. Next, infer two challenges that are associated with implementing the reform in non-profits.

  Watch the video-the art of the steal

Watch "The Art of the Steal." This is the 2009 documentary about the Barnes Museum, NOT the 2013 movie of the same title, which stars Kurt Russell. The role that media plays in the story. An example of structure and agency.What is the objective re..

  What techniques you might use to address selection bias

Explain how you will select treatment and control groups if the design is a field experiment. Explain what techniques you might use to address selection bias if the design is a quasi experiment.

  Primary task response within the discussion board area

primary task response within the discussion board area write 400-600 words that respond to the following questions with

  Write a comment about the given post

Leanet, I enjoyed reading your post. You listed many risk factors that adolescents face that may lead to pregnancy. I would also like to point out that teen pregnancies also happen to children from healthy, stable upbringing. At times kids feel..

  State the differences in an adolescent

Select a mood disorder that you would like to know more about. State the differences that are found in an adolescent, adult and in the elderly.

  Discuss the new perspectives you may have gained

HS6016 What has changed and why? Discuss the new perspectives you may have gained as a result of the observations and the introduction of new content.

  Six sigma focuses on the maximization of roi

Six sigma focuses on the maximization of ROI while addressing the question of "what does the investor want in terms of returns."

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd