ASSESSMENT DESCRIPTION:The NSW service is conducting a survey about Opal Card weekly usage. They have collected surveysfrom 4 Opal card users about their daily fare in one week so far. The daily fare...

1 answer below »
ASSESSMENT DESCRIPTION:The NSW service is conducting a survey about Opal Card weekly usage. They have collected surveysfrom 4 Opal card users about their daily fare in one week so far. The daily fare of each user is asfollows:UserMon Tue Wedn Thur Fri Sat Sun1 8.84 10.2 7.9 8.8 6.7 2.472 10.1 8.8 5 8.58 4.94 03 5.04 5.04 4.28 4.28 5.04 3.524 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 generatesome 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 capc) 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 java2) read it from a file3) enter it every time you run and test your program (hint… option 3 is not a good idea)ASSESSMENT SUBMISSION:Week 9MARKING GUIDE:There’s a total of 20 marks availableRequirements MarksDesign + test data 3 marksCode:program runs and works i.e. output is correct 4 marksstyle (e.g. naming standards, tidy) 1 markmodular (use appropriate methods) 3 marksarrays (for data) 2 marks for 1D, 3 for 2D 2 or 3 marksloops 2 marksconditions 2 markscomments 2 marksSUBMISSION:A one or two page design + test data document, your .java and .class files (and if you read data froma file… your data file)
Answered Same DayMay 07, 2021

Answer To: ASSESSMENT DESCRIPTION:The NSW service is conducting a survey about Opal Card weekly usage. They...

Mohd answered on May 15 2021
137 Votes
completed solution/a.JPG
completed solution/data.txt
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
completed solution/Driver.class
public synchronized class Driver {
static double[][] dataArray;
static void ();
public void Driver();
public static void main(String[]);
public void loadData();
}
completed solution/Driver.java
completed...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here