4COSC005/W代写、代做java语言、java程序调试、代写Computer Science代写Web开发|代写Web开发

University of WestminsterSchool of Electronics and Computer Science4COSC005/W Programming Principles 2 – Coursework/Test - Arrays – Booking ProgramModule leader Artie BasukoskiUnit Coding Assignment with in-class test (Coursework/Test item 1)Weighting: 50% of the moduleQualifying mark You must get an average of 40% in assessments 1 and 2.Description Airplane seating program using Methods and Arrays.Learning Outcomes Covered in thisAssignment:LO1, LO3, LO4, LO5.Handed Out: 11th Feb 2019Due Date Code due on Blackboard coursework upload Monday 11th March 2019 1pm.In-class test during your Workshop Tutorial Session week commencing 11th March 2019.Expected deliverables Java program code upload as text files, plus in-class test answers.Method of Submission: Blackboard + In-class testType of Feedback and Due Date: Your in-class test mark (worth 80%) and java code mark (worth 20%) should appear on BlackboardGradecentre within 3 weeks of the test.Individual written feedback will be available via the Blackboard Gradecentre. If you would like extrafeedback please speak to the tutor where you did your in-class test.All marks will remain provisional until formally agreed by an Assessment Board.Assessment regulationsRefer to section 4 of the “How you study” guide for undergraduate students for a clarification of how you are assessed, penalties and latesubmissions, what constitutes plagiarism etc.Penalty for Late SubmissionIf you submit your coursework late but within 24 hours or one working day of the specified deadline, 10 marks will be deducted from thefinal mark, as a penalty for late submission, except for work which obtains a mark in the range 40 – 49%, in which case the mark will becapped at the pass mark (40%). If you submit your coursework more than 24 hours or more than one working day after the specifieddeadline you will be given a mark of zero for the work in question unless a claim of Mitigating Circumstances has been submitted andaccepted as valid.It is recognised that on occasion, illness or a personal crisis can mean that you fail to submit a piece of work on time. In such cases youmust inform the Campus Office in writing on a mitigating circumstances form, giving the reason for your late or non-submission. You mustprovide relevant documentary evidence with the form. This information will be reported to the relevant Assessment Board that will decidewhether the mark of zero shall stand. For more detailed information regarding University Assessment Regulations, please refer to thefollowing website:http://www.westminster.ac.uk/study/current-students/resources/academic-regulationsAll coursework code on this module is submitted via Blackboard. It may be automatically scanned through a text matching system(designed to check for possible plagiarism). You DO NOT need to attach a copy of the CA1 form;To submit your assignment:? Log on to Blackboard at http://learning.westminster.ac.uk; and follow the instructions below.If you are unable to submit your work on Blackboard due to a finance hold you must email your work to [email protected] the same deadline, putting on the subject line the module code, assessment number, and your name. This shows that you havecompleted your work by the deadline. After the finance hold is lifted you must then submit the same work as normal on Blackboard,otherwise it will not be marked and you will get a fail for that part of the assessment.Airplane seat booking - Coursework and In-Class TestYou are to be assessed on how well you know methods, arrays, and array manipulation code. Mostof the marks will come from your in-class test result. Please refrain from copying other student’scode. It is OK to discuss how to implement the solution, but the code you write must be your own. Agood way to test your understanding of the code is to make sure that you can write the codeyourself without needing to look at your friend’s code, or follow a Youtube video. Concentrate ondeveloping the code step by step and make sure you always have a running version of your program.That way, if you add code and it causes problems you will know that the problem was caused byyour new code. Write your test cases as you are developing each method and thoroughly test yourcode before implementing additional methods.Airplane seat booking program.Task 1. Design and implement a program for booking seats on an Airplane with 12 seats. You willneed to adhere to good programming style and conventions, for example, avoid magic numbers inyour code by declaring a global constant (final) to represent the number of seats for your airplane.static final int SEATING_CAPACITY = 12;All other4COSC005/W作业代写、代做java语言作业、java程序作业调试、代写Computer Science作业 代写 variables must be local. Pass variables as parameters if they are needed in other methods.The Airplane’s seating will be represented by an array of strings.String [] airplane = new String[SEATING_CAPACITY];In this representation, airplane[4] = “e”, means that seat 4 of the airplane is empty, airplane[0] =“Pilot” means that seat 0 is occupied by the pilot of the airplane, and, airplane[1] = “Mary Drew”means that Mary is occupying seat 1. You must not allow a passenger to book the pilot seat. (Hint.You may start by using code which is similar to the hotel code given in your notes)Once the basic code runs then add code to ‘Views All seats’ and ‘Add passenger to seat’ intoseparate methods, and test it works. You can build up your test cases as you develop your program(see 2 below).Then add a menu system which will allow the user to choose what they want to select. Enter an ‘A’to add a passenger to a seat, and a ‘V’ to view all seats. Ensure that all menu options call a separatemethod to execute the option. When an ‘A’ is pressed it should call the Add method, a ‘V’ should callthe View method.One by one, add extra methods to do each of the following. The user should be able to choose fromthe menu what the program does, until they enter ‘Q’ which should quit the program. E: Display Empty seats D: Delete passenger from seat F: Find the seat for a given passengers name S: Store program data in to file L: Load program data from file O: View seats Ordered alphabetically by name. (Using the bubble sort algorithm in the notes)Task 2. Create a table of test cases showing how you tested your program (see below). Write abrief (no more than one page) discussion of how and why you chose your test cases and commenton your test coverage. Also discuss whether you would “sign off” to having your program usedcommercially, and if not, what still needs to be done so that you can confidently “sign off”.Test Case Expected Result Actual Result Pass/Fail(Seats Initialised correctly)After program starts, Press ‘E’Displays ‘e’ for all seats Displays ‘e’ for all seats Pass(Add passenger “Bob” to seat 5)Press ‘A’, enter “Bob”Press ‘V’ Displays “Bob” forseat 5Displays “Bob” for seat 4 Fail….etc…. ….. ….. …..Submission Instructions:1. Java Program code to be submitted as a single text file by the date shown above on Blackboard4COSC005 ‘Submit Coursework’ link. For this submission you should copy and paste your programinto a text file, type the filename at the top of each piece of pasted code, and at the very top of thetext file type your name and ID number. Call this saved file by your ID number (e.g. . w123456.txt )and ensure it is saved as plain text (not .doc or .zip). Do not change your code after it has beensubmitted.2. Submit your test table and report separately as a pdf or word document.3. Submit your self assessment form as a separate word document.Tutorial in-class test.There will be a short in-class test in the Workshop tutorial session following the submission of thecoursework. We need to know that you fully understand the code you use, and have not juststumbled on a solution, or copied it from elsewhere. For the test you will be assessed on how wellyou know arrays, array manipulation code, and methods, so look at the examples in the notes aswell as understanding your Airplane program.Do not attempt to go to the wrong tutorial group without the tutor’s permission. If you miss the testthere will be no other opportunity to redo the work in a later week unless you have approvedmitigating circumstances. Sign-in on the class list during the test.Marking Criteria80% of the marks will come from the in-class test result. If you score 30% or less in the in-class testthen your code solution mark will be limited to a maximum of 50% as the test will have proved youdid not really understand the code.20% of the marks will come from your ‘Airplane’ code solution.Code marking (see self assessment form):20% - A basic menu loop which prompts for input until Q is pressed.+25% A reasonable attempt at (A V E D F) options (5% each).+20% For options (S L) Save and Load of the Airplane seating configuration (10% each)+20% For option ‘O’ – bubble sort implementation and not library sorting routines.+10% Test cases and test coverage report.+5% Self assessment and demonstration.Warning: All code must be done by yourself to ensure you can answer questions during the test anddemonstration. You will be capped at 50% if you cannot explain the code or received less than 30%in the in-class test.Pass grade: A basic code solution and 40% in the in-class test.Distinction grade (>=70%).转自:http://www.7daixie.com/2019030729243729.html

你可能感兴趣的:(4COSC005/W代写、代做java语言、java程序调试、代写Computer Science代写Web开发|代写Web开发)