Object Oriented Design and Programming







ASSESSMENT BRIEF








COURSE : Bachelor of IT


Unit:

Object Oriented Design and Programming







Unit Code:

OODP101







Type of Assessment:

Assessment Task 3 - Individual Programming Solution to a Problem







Length/Duration:

N/A







Assessment Task:

Individual Programming Solution to a Problem







Total Mark:

20







Weighting:

20% of the unit total marks







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:


U
Mon
Tue
Wedn
Thur
Fri
Sat
Sun
s







e







r







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)    Get the above data (4 users, 6 days)


b)    Calculate the partial sum for 6 days to see whether it is reaching weekly cap

c)  Prompt the user to enter new data for Sunday (4 users, Sunday)

d)    Calculate and display the average fare for each user.

For a) above you have some options, you can:

1)   hard code the data in java

2)   read it from a file

3)   enter it every time you run and test your program (hint option 3 is not a good idea)


To get solution visit our website www.sourceessay.com

Comments

Popular posts from this blog

Assignment Help: Add Valuable Factors In Your Learning Skills

Language Techniques Every Student Must Know

The Helpful Essay Writing Guide: Structure, Outline, Tips And Format