Calculate the traveling cost

Assignment Help Other Subject
Reference no: EM132300080

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:
CRICOS Provider No. 00103D Page 1 of 5

Table 1 Move Money Daily Fare
"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
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
Fare Type
Weekdays (Daily)
Weekends (Daily)
Full fare
$8.80
$6.40
Concession
$4.40
$3.20
Fare Type
Weekly rate (7 days pass)
Daily rate for 28-365 days
Full fare
$44.00
$5.30
Concession
$22.00
$2.65
CRICOS Provider No. 00103D

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 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

Reference no: EM132300080

Questions Cloud

Find out why Finland scores so high in the Pisa : Find out why Finland scores so high in the Pisa and Sweden so low. The main question is why finland score higher than finland
Customer not satisfy before advance metering infrastructure : Customer not satisfy before advance metering infrastructure - how this will help to fix the problem to fix problem and make them satisfy)
How does social class shape religious affiliation : REL332 Religion and Society - Excelsior College - Take and defend a position in the debate around Weber's Protestant Ethic Thesis - How does social class shape
Estimate the effect of DST on fatal accidents : Use this data to estimate the effect of DST on fatal accidents, measured as ln(accidents), using the Regression Discontinuity Design model
Calculate the traveling cost : 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
Describe the contemporary situation in your community : Any of the theories presented in this unit have made an a priori (a presumption determination about the situation) decision to accept either a consensus model.
Identify differences between structural and process theory : Identify the main differences between structural and process theory explanations of delinquent behavior. Make sure that your explanation includes the social.
Prepare a project management plan : BN205 - Project Management - Melbourne Institute of technology - Demonstrate project leadership skills identify and assess risk in designing and executing
Should the given be integrated into the adult system : Consider the features of a program response that are most effective in identifying the juveniles who are most at risk of joining a gang in your area.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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