Hit The Order Button To Order A **Custom Paper**

>> CLICK HERE TO ORDER 100% ORIGINAL PAPERS FROM AustralianExpertWriters.com <<

5 Feb
2020

Interactive programs AssignmentTutorOnline | Good Grade Guarantee!

Prepared by: David Chisanga Moderated by: Dr Javed Ali Baloch November, 2017Assessment Details and Submission GuidelinesTrimesterT1 2018Unit CodeBN108/BN108DUnit TitleProgramming for NetworkingAssessment TypeIndividualAssessment TitleInteractive programsPurpose of the assessment (with ULO Mapping)This assignment assesses the basic concepts of programming; students should be able to demonstrate their achievements in the following unit learning outcomes:a. describe the fundamental principles of object-oriented programming;b. interpret a user’s needs while dealing with simple program specifications;c. design a simple class using UML notation;d. create a simple application based on UML design and the incremental development process of coding, debugging, andtesting;e. apply basic control structures – sequence, repetition, and selection – to program development;f. produce simple interactive applications.Weight25%Total Marks50 marksWord limitNot applicableDue Date30/05/2018 5:00PMSubmission Guidelines All work must be submitted on Moodle by the due date along with a completed Assignment Cover Page. The assignment must be in MS Word format, 1.5 spacing, 11-pt Calibri (Body) font and 2 cm margins on all four sides of your page with appropriate section headings. Reference sources must be cited in the text of the report, and listed appropriately at the end in a reference list using IEEE referencing style.Extension If an extension of time to submit work is required, a Special Consideration Application must be submitted directly on AMS. You must submit this application three working days prior to the due date of the assignment. Further information is available at:http://www.mit.edu.au/about-mit/institute-publications/policies-procedures-and-guidelines/specialconsiderationdefermentAcademic Misconduct Academic Misconduct is a serious offence. Depending on the seriousness of the case, penalties can vary from a written warning or zero marks to exclusion from the course or rescinding the degree. Students should make themselves familiar with the full policy and procedure available at: http://www.mit.edu.au/about-mit/institute-publications/policies-procedures-and-guidelines/Plagiarism-Academic-Misconduct-Policy-Procedure. For further information, please refer to the Academic Integrity Section in your Unit Description.BN108D/BN108 Programming for Networking P a g e | 2Prepared by: Umesh Poudel Moderated by: Dr Javed Ali Baloch May 2018Assignment DescriptionThis assignment will give you practice with interactive programs, if/else statements, arrays, loops and methods.Problem DescriptionA small car yard dealing in second hand cars needs an application to keep records of cars in stock. Details of each car shall include id (unique for each car), model, year of manufacturing, price paid for the car (i.e. purchase price) and selling price.Selling price is calculated as old price plus mark-up of 30%. For example, Ford Transit bought for $20,000 will have the selling price of 20000 * (1 + 0.3) = 26000.The car yard does not buy cars manufactured before 2009.Task RequirementsImagine you have been invited to develop a menu driven java application to manage records of cars in stock. Familiarise yourself with the problem description provided above and complete the following tasks.
Develop a UML class diagram based on the problem description. The name of the class must be Cara. Identify all the required attributes (includes id and selling price) for the Car class.b. Identify a constructor for the class. Attributes id and selling price are calculated fields and should not be included as constructor parameters.c. Identify all the set and get methods for each of the attributes identified in 1.a
Write a Java implementation of the UML diagram defined in 1. In your class, include comments describing the function of the class, the name of the programmer and the date of implementation.
Write a Java program (driver class) named CarYardMITnnnnn (nnnnn is your MIT ID) with a main method. Within the main method, design and implement the menu driven program functions of buying, selling, displaying and terminating the program as described below. Include comments describing the function of the program, the name of the programmer and the date of implementation.a. Declare all required variables including the list of cars (arrays/ArrayList) as static variables.b. Include static methods to implement buy, sell, and display functionsBN108D/BN108 Programming for Networking P a g e | 3Prepared by: Umesh Poudel Moderated by: Dr Javed Ali Baloch May 2018c. Populate the list of cars (arrays) on start-up with three car objects of your choice which should be displayed when user selects option three (3) from program Menu.d. Program displays a main menu on execution and allows user to interact with the program until the user selects menu option four (4) which terminates the program.Description of Program functionsProgram displays a menu on execution. Four menu options are available to allow the user to buy a car, sell a car, display all cars, and exit program respectively. Program functionality and screen output for each of the menu option when selected by the user follows:Program menu on execution:~ Main Menu ~
Buy Car
Sell Car
Display all cars
ExitEnter menu choice (1-4):Invalid menu choice: User enters 5~ Main Menu ~
Buy Car
Sell Car
Display all cars
ExitEnter menu choice(1-4): 5Invalid menu choice: 5Buy a car (option 1): User enters 1. Note the error message for year before 2009~ Main Menu ~
Buy Car
Sell CarBN108D/BN108 Programming for Networking P a g e | 4Prepared by: Umesh Poudel Moderated by: Dr Javed Ali Baloch May 2018
Display all cars
ExitEnter menu choice(1-4): 1— Buy Car —Enter model name:MazdaEnter Year:2008Error! The car yard does not buy cars manufactured before 2009.Enter Year:2009Enter price: $10000New car added: Mazda (2009)Sell a car (option 2): User enters 2. Note the error message for invalid car id~ Main Menu ~
Buy Car
Sell Car
Display all cars
ExitEnter menu choice (1-4): 2— Car Details—Enter Car id:101Model: HondaYear: 2012Purchase Price: $20000.0Selling Price: $26000.0— Car Details—Enter Car id:BN108D/BN108 Programming for Networking P a g e | 5Prepared by: Umesh Poudel Moderated by: Dr Javed Ali Baloch May 201899No match found for car ID:99Display all cars (option 3): User enters 3~ Main Menu ~
Buy Car
Sell Car
Display all cars
ExitEnter menu choice (1-4): 3— Car List —1:ID: 100Model: ToyotaYear: 2009Price: $10000.02:ID: 101Model: HondaYear: 2012Price: $20000.03:ID: 102Model: SubaruYear: 2015Price: $30000.0Exit Program (option 4): User enters 4~ Main Menu ~
Buy Car
Sell Car
Display all cars
ExitEnter menu choice (1-4): 4Terminating…BN108D/BN108 Programming for Networking P a g e | 6Prepared by: Umesh Poudel Moderated by: Dr Javed Ali Baloch May 2018Marking criteria:Marking criteria is shown in following table. Marks are allocated as follows:Description of criteriaMarksTask 1: Develop a UML class diagram [5 marks]Identify all the required attributes2Identify a constructor for the class1Identify all the set and get methods2Task 2: Write a Java implementation of the UML class diagram [10 marks]Java class implementation consistent with the UML class model10Task 3: Write a Java program (driver class) [25 marks]Declare all required variables as static variables3Include static methods to implement buy (4), sell (4), and display (4) functions. Screen outputs consistent with the samples provided12Program displays a main menu and is interactive.5Implements a loop to allow the program to continue running until the user quits5Others [10 marks]Use whitespace properly to make program more readable, such as between operators and their operands, between parameters, and blank lines between groups of statements or methods.2Give meaningful names to methods and variables in your code.2Your program compiles successfully without any errors4Includes comments described in the program description2Total50BN108D/BN108 Programming for Networking P a g e | 7Prepared by: Umesh Poudel Moderated by: Dr Javed Ali Baloch May 2018Marking Rubric for Assignment #: Total Marks 50GradeMarkHD40-50DI35-44CR30-34P25-29Fail<25ExcellentVery GoodGoodSatisfactoryUnsatisfactoryTask1/5UML class diagram is well done and is consistent with the requirements.UML class diagram is consistent with the requirementsGenerally consistent with the requirements but can improveUML class diagram misses some requirementsNot attempted or design effort is incorrectTask 2/10Java implementation of the UML class diagram is well done and consistent with the UML modelJava implementation of the UML class diagram is mostly well done.Java implementation of the UML class diagram is good and mostly consistent with the UML modelJava implementation of the UML class diagram misses some design elements from the UML modelNot attempted or implementation is incorrectTask 3/25Driver class: design and implementation is well done and consistent with the task requirements.Driver class: design and implementation is consistent with the task requirements.Driver class: design and implementation is mostly consistent with the task requirementsDriver class: design and implementation misses some task requirementsNo attempted or implementation is incorrectOthers/10Code layout, comments, meaningful variable names & compilation: well done and consistent with the requirementsCode layout, comments, meaningful variable names & compilation: very good and consistent with the requirementsCode layout, comments, meaningful variable names & compilation:generally consistent but can improveCode layout, comments, meaningful variable names & compilation:Some inconsistencies with the requirementsCode layout, comments, meaningful variable names & compilation: poor effort and program fails to compile
AssignmentTutorOnline

READ ALSO  Demand for a company’s drug AssignmentTutorOnline | Good Grade Guarantee!

QUALITY: 100% ORIGINAL – NO PLAGIARISM.

  • **REMEMBER TO PRECISE PAGE NUMBER**
  • Hit The Order Button To Order A **Custom Paper**

>> 100% ORIGINAL PAPERS FROM AustralianExpertWriters.com <<