DPIT121 – Assignment I Due: Week 4 and 5 lab In Assignment I, you will continue on another iteration for the same scenario from lab 1, 2, and 3. If you have not finished those labs, you have time to...

1 answer below »
In Assignment I, you will continue on another iteration for the same scenario from lab 1, 2, and 3 this is assignment of subject object oriented design and programming I want you to do this for me as because I told you before that this is continue part of labs so I want same expert for this assignment who did my lab 1,2,and 3 you might need my name and ID and I want you to do it carefully and do it on timeSTUDENT NAME: AHMER NASIRSTUDENT ID: 6880101STUDENT EMAIL: [email protected]


DPIT121 – Assignment I Due: Week 4 and 5 lab In Assignment I, you will continue on another iteration for the same scenario from lab 1, 2, and 3. If you have not finished those labs, you have time to work on them and finalize your assignment I. We can consider lab 1 to 3 as internal iterations or Scrum Sprints inside the company and Assignment I as a phase of project delivery to the customer. Assignment I has three levels of completion: Core, Standard, and Advanced. You should completely finish a level before attempting the following level. Core Level: 6 marks to be marked in Week 4 or Week 5 Standard Level: 9 marks to be marked in Week 4 or Week 5 Advanced Level: 12 marks to be marked in Week 4 or Week 5 Core Level: You need to finish all the requirements of lab 1 to 3 including all the classes, methods and the test code. In addition, you need to do the following tasks: 1) Comment out the scanner and user input from your test code that was required in lab 2 and 3. You need to write a proper Test Case (refer to Lectures) and modify your test code to implement the test case. Test code should call all the methods across all classes. To validate your program, write your output expectations in the test case (You may use excel) and compare the output of the test code with your expectation. Include the test case in your submission. You need to justify and convince me as your customer that the output is correct based on your test case and expectations. Note that the test case should not include any user interaction (Scanner) and has to follow a proper story. 1 mark 2) Draw a UML class diagram for your program by using UMLet or any other tools. 1 mark 3) Draw a UML Sequence Diagram for ArrayList filterByExpiryDate (int userID, MyDate date) in MobileCompany class. 1 mark 4) Design and implement a basic command based console User Interface. (See the sample code in week 3). The program asks company admin to enter the username and password to log in to the system. After successful log in the program shows 9 options: 3 marks Option 1: Test code: To run the test code based on your test case Option 2: Create User: To get the information from admin and creates a user Option 3: Create Personal Plan: To get the information of a plan and a user id from admin and creates a PersonalPlan for the given user. Prints an error message if not successful. Option 4: Create Business Plan: To get the information of a plan and a user id from admin and creates a BusinessPlan for the given user. Prints an error message if not successful. Option 5: Print User Information: To get a user ID from user and prints the user information (including all user plans). Prints an error message if user ID is not found. Option 6: Filter by Mobile Model: To get a mobile model from admin and filters and prints all the plans in the system with that mobile model as well as the total monthly payments for the filtered plans. Option 7: Filter by Expiry Date: To get a date and a user id from admin and filters and prints all the plans belong to that user and expiring by the given date. Option 8: Update Address: To get a user id and address information and updates the address of the given suer Option 9: Log Out Play with your UI to be sure that all options are working properly. Remember that you already created few users and plans in your test code. Standard Level: 1- You need to add new methods to your class MobileCompany for a data aggregation report. The report is the total monthly payments of all users per city (from User.address). · ArrayList populateDistinctCityNames() //goes through all the users and populate a list of distinct city names for all users and returns it as a list. · double getTotalPaymentForCity(String city) // returns the total monthly payments for the given city across all users. · ArrayList getTotalPaymentPerCity(ArrayList cities) // aggregates the total payments for each city in the list and returns it as a double list with the same order as city names. This method calls getTotalPaymentForCity (String city) · reportPaymentPerCity( ArrayList cities, ArrayList payments, // generates the report as follow: City Name Total Monthly Payment Wollongong $10,500.00 Sydney $45,980.00 … Assuming that there are 110 users with the city=”Wollongong” and the total of monthly payments for all of their plans is $10,500 * Update your test code to test these extra methods. 2- Update the text based menu as below: The Main Menu has 3 options: Option 1: Admin Login. Then it prompts to get admin username and password and if login is successful it shows the Admin Menu if not it shows an error message and shows the main menu again. Option 2: User Login. It shows the User Menu Option 3: exit the program Admin Menu has all 9 options the same as core. Add options to do the data aggregation reports. User Menu has options for the methods inside User class such as Add a Plan, print a Plan, change the address, etc Note: Each menu is displayed again after each report/task till user enters the option to log out and returns to the main menu. After each task a message “please press any key to continue” will be displayed and after the user presses a key the menu will be displayed again. Advanced Level: Add these functionalities to your code as well as UI: 1- User and admin to be able to remove a plan from a user 2- User ID to be automatically generated (incrementally). Hint: have a static int count in the class and increment it 3- Admin to be able to remove a user by providing the user ID. 4- Admin to be able to change the admin password 5- You need to add new methods to your class User and MobileCompany for another data aggregation report. The report is the count, total and average of monthly payments per MobileModel across all the plans a user holds and across all the users in the company Add these methods to User: · ArrayList populateDistinctMobileModels() // goes through all the plans for a user and populates a list of distinct mobile model names · double getTotalCountForMobileModel(String mobileModel) // returns the number of plans this user owns for the given mobileModel · double getTotalPaymentForMobileModel(String mobileModel) // returns the total monthly payments for the given mobileModel across all the plans this user owns · ArrayList getTotalCountPerMobileModel (ArrayList mobileModels) // returns the count for each model in the mobileModels as a list of integers. Call getTotalCountForMobileModel(String mobileModel) in a loop for each mobileModel in the list · ArrayList getTotalPaymentPerMobileModel (ArrayList mobileModels) // returns the Total Payment for each model in the mobileModels as a list of doubles. Call getTotalPaymentForMobileModel(String mobileModel) in a loop for each mobileModel in the list · reportPaymentsPerMobileModel (ArrayList mobileModels, ArrayListcounts, ArrayList monthlyPayments) // generates the report such as below: Mobile ModelTotal Monthly Payment Average Monthly Payment Iphone X $1,050.00 $105.00 Samsung Galaxy 10 $425.00 $85.00 (Assume this user has ten plans with the Mobile Model of “Iphone X” and five with Samsung Galaxy 10) Add these methods to MobileCompany: · ArrayList populateDistinctMobileModels() // goes through all the users within the MobileCompany and populates a list of distinct mobile models. You need to call the corresponding method inside the User and aggregate them for all the users · ArrayList getTotalCountPerMobileModel (ArrayList mobileModels) // returns the count for each model across all the users. You need to call the corresponding method inside the User and aggregate them for all the users · ArrayList getTotalPaymentPerMobileModel (ArrayList mobileModels) // the same as the previous one but across all users in the company · reportPaymentsPerMobileModel (ArrayList mobileModels, ArrayListcounts, ArrayList monthlyPayments) // to generate the same report as before but across all users in the system 6- Modify your test code to test all of these methods for User and MobileCompany. 7- Update your UI to include all of these changes for User and MobileCompany.
Answered 4 days AfterApr 07, 2021

Answer To: DPIT121 – Assignment I Due: Week 4 and 5 lab In Assignment I, you will continue on another iteration...

Prasun Kumar answered on Apr 12 2021
165 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here