Write a java program that generate some statistics

Assignment Help JAVA Programming
Reference no: EM132314517

Object Oriented Design and Programming Assignment - Programming Solution

Course Learning Outcomes addressed:

Systems development and User experience -

a) To act as an ethical practitioner while demonstrating skills in data analysis, and software development & testing.

Teamwork and self-management skills -

b) To take responsibility for their own time management delivering quality required material on time in dynamically changing technological and communication contexts whether as an individual or member of a small team.

Unit Learning Outcomes addressed: Upon successful completion of this unit students should be able to -

a. Analyse and dissect simple design and programming problems.

b. Demonstrate basic knowledge of object oriented programming concepts and syntax.

c. Implement a well-designed modularised solution to small programming problems.

d. Develop and/or implement testing schedules.

Assessment Task: Individual Programming Solution to a Problem

ASSESSMENT DESCRIPTION: The NSW service is conducting a survey about Opal Card weekly usage. They have collected surveys from 4 Opal card users about their daily fare in one week so far. The daily fare of each user is as follows:

User

Mon

Tue

Wedn

Thur

Fri

Sat

Sun

1

8.84

10.2

7.9

8.8

6.7

2.47

 

2

10.1

8.8

5

8.58

4.94

0

 

3

5.04

5.04

4.28

4.28

5.04

3.52

 

4

15.15

13.63

15.8

6.62

7.06

4.94

 

Note: 1) The Sunday fare has a daily limit of $2.7 (e.g. the maximum Sunday amount is $2.7).

2) The weekly fare has a cap of $63.2 (e.g. the maximum weekly amount is $63.2).

Write a Java program that will use the above values and other similar data then generate some statistics, thus:

a) You will use a text file to read the user data (User, Mon to Sat fares).

b) You will have to create a Commuter Class with the data members and methods.

c) You will then need to store the data from the above using a file in an array of object of the commuter class.

d) You will need to add Sunday fares as input to your program.

e) Calculate total fares for each commuter and sort in descending order.

f) Save all the data to a different output text file or output the result on the screen.

OUTPUT FILE HEADER:

User Mon Tue Wedn Thur Fri Sat Sun Total

Your program must not crash. You have several options to prevent crashes:

a) use try/catch

b) use regex (regular expressions)

c) use both

Design & Test & User Documentation: Submit a Word document (3 pages) containing the following:

1. Your program design, you can use flowchart, IPO, pseudocode (not code).

2. Your test data and expected results (this means do the maths on paper first) and a test report. You should have at least three test cases.

3. A user guide, include any assumptions you make (e.g. max marks), any errors/bugs, any suggestions for future improvements.

Assignment must be submitted -

  • Create a ZIP file using your ID and Name includes the following (eg. K1234567-Name.zip)
  • Your class(.java) file for the class program.
  • Both Java Class(.class) File (eg. Main and Class)
  • Input File (.txt)
  • If output to a file, then Output File (.txt)
  • Word Document file (.docx).

Reference no: EM132314517

Questions Cloud

How organizations can instill the same ethical standards : Decide how organizations can instill the same ethical standards in overseas suppliers, especially Asian suppliers.
Introduction of the companies act 2012 : With the introduction of the Companies Act 2012, spending 2% of net profit on CSR has become conditionally applicable to listed
Description of theory including definitions of concepts : Description of theory including definitions of concepts/variables. Report briefly on the findings associated with the theory from your selected research study
Strategic partner by the mannat foundation : Why was Tata Business Support Service identified as a strategic partner by the Mannat Foundation?
Write a java program that generate some statistics : OODP101 Object Oriented Design and Programming Assignment - Programming Solution, Kent Institute, Australia. Write a Java program that generate some statistics
Entrepreneur reevaluate her compensation package : As a rule of thumb, how often should an entrepreneur reevaluate her compensation package?
What external factors play into human resource decisions : What do you think are the current concerns HR has to address today? What are some ways you think these factors could be handled.
Attractive salary and benefits package : If you were offered an expatriate position with an attractive salary and benefits package, would you take it?
Necessary for strategic innovation for businesses : What would you consider are the conditions necessary for strategic innovation for businesses targeting customers at the bottom of the pyramid?

Reviews

len2314517

5/31/2019 12:35:37 AM

SUBMISSION: Ensure assignment is submitted to the proper submission link. Assignment must be submitted by the date specified in the moodle. Assignment must be submitted - Create a ZIP file using your ID and Name includes the following (eg. K1234567-Name.zip) Your class(.java) file for the class program. Both Java Class(.class) File (eg. Main and Class) Input File (.txt) If output to a file, then Output File (.txt) Word Document file (.docx).

len2314517

5/31/2019 12:35:30 AM

MARKING GUIDE (RUBRIC): There’s a total of 30 marks available. Design + testing + user documentation - 6 marks. Code: program runs and works, correct output, does not crash 5 marks, style (e.g. naming standards, tidy) 2 marks, modular (use appropriate methods) 3 marks, Read initial data from file 2 marks, Use class/objects 3 marks, Loop and conditions 2 marks, comments 2 marks, sort 1 marks, save data to file 2 marks and usability (easy to use, output is tidy) 2 marks.

len2314517

5/31/2019 12:35:23 AM

GENERAL NOTES FOR ASSIGNMENTS - Assignments should usually incorporate a formal introduction, main points and conclusion, and will be fully referenced including a reference list. The work must be fully referenced with in-text citations and a reference list at the end. We strongly recommend you to refer to the Academic Learning Skills materials available in the Moodle. We recommend a minimum of FIVE references, unless instructed differently by your lecturer. Unless specifically instructed otherwise by your lecturer, any paper with less than FIVE references may be failed. Work that includes sources that are not properly referenced according to the “Harvard Referencing Workbook” will be penalised. GENERAL NOTES FOR REFERENCING - High quality work must be fully referenced with in-text citations and a reference list at the end.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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