” 辅导KXO151留学生程序、 写作Programming程序KXO151 Programming Problem SolvingAIEN-SOU – 2020Assignment 3Due Date Time: 10pm (Shanghai) Friday, Week 14, 5 June, 2020Maximum Weight: 30% (of the total assessment for KXO151)Submission: Via MyLONOTE: All assignments will be checked for plagiarism by a specialist Javaprogram that checks your assignment against other students assignments aswell as the Internet (including help sites). For more information see:www.ics.heacademy.ac.uk/resources/assessment/plagiarism/demo_jplag.htmlAssignment Type: Group: 2 students in each group. Students are free to choose who they joinwith. A group sign-up sheet is available on the KXO151 MyLO site.NOTE: Students who have not signed into a group by Friday, 22 May, 2020,will be assigned into a group without consultation.NOTE: Each contributing student within the group will receive the samemark, however, active participation and equal contribution is required fromeach member of the group. Students who are found to have not participatedand / or equally contributed to the assignment work will not be included inthe groups mark. If there is an issue with a student not participating and / orcontributing to your group, please contact your lecturer.Cover Sheet: The School requires that a group cover sheet listing the members of yourgroup be submitted with your assignment.The Programming TaskThe code you are to write is to complete an implementation of the activity Call Or Text.Beware – the version that you implement must match the specifications given below and usethe resources provided (even if you prefer some other variant of the task). Otherimplementations will score poorly. 辅导KXO151留学生作业、 写作Programming作业、Java语言作业 辅导、Java程序作业调试The user is interacting with a simulated mobile phone. The program starts with the user scrollingthrough their contacts. The details of the current contact are displayed and the user is presentedwith a choice: move to the next contact, move to the previous contact, select the current contact, orquit. When they select a contact they are offered three choices: call that person (a phone call issimulated but the contacts phone is off and takes a message), text that person (only if a mobilenumber is known for that person), edit details for the contact, or return to the previous menu. Eachcontact is known by a contact number, their name, gender, home phone number, mobile phonenumber, and birth date in DD-MMM-YY format (eg, 10-JUN-1990).When the user quits he/she is shown a list of contacts that calls or messages have been made/sentto.The completed implementation will consist of 3 files, only one of which must be written byyou. These files (available from the unit MyLO site, under Assessment) are:AssignThree2020.java – This is the driver program (with a main() method). The code of thisis complete and it MUST NOT be changed. The code in this file is very simple – it declares andinstantiates an object of the CallOrText class (see below).KXO151 – AIEN-SOU Assignment 3 – 2020Page 2 of 7MobileFacilities.java – This file contains resources that you are to use in developing yourimplementation of the task. The code is complete and MUST NOT be changed.CallOrText.java – This is the file that you are to write. There will be no main() method inthe class, it will contain methods that organise the task. This will include all the interactions withthe user.You should make sure that you do the following in CallOrText.java: Create and use object(s) of the MobileFacilities class. You will LOSE MARKS ifyou write code in CallOrText.java that duplicates things that could be done usingmethods of the MobileFacilities class. Use the trace() method (provided in the skeleton) to include tracing messages in yourprogram – switch the messages off before submission. Use separate methods to implement the separate activities within the task. Use instance variables to store data that is used or changed by more than one method. Use local variables to store the data that is used by just one method.This program (like all programs) should be developed in stages, with each stage fully implementedand tested before the next stage is attempted. To provide you with some guidance about this, thedetailed specification below is divided into two stages, you should aim to submit a program thatimplements at least stage 1.Details – Stage 1(Note: even within stage 1, you should plan, implement, and test you program in sub-stages. It ispart of your task to work these sub-stages out yourself.)Write code in CallOrText.java to do the following: Housekeeping taskso Switch off the debugging/tracing messages in MobileFacilities objects and theCallOrText class.o Whenever a MobileFacilities object is created make a call to its setUp()method with the parameter value 0. Introductiono Provide the user with the number of contacts stored on their phone. Use the phone – the user is prompted to undertake actions until they choose to stop.o Before each choice the user is provided with the following information: The current contact number. The current contacts name. The current contacts gender. The current contacts home phone number (if known). The current contacts mobile phone number (if known). The current contacts birthdate (in DD-MMM-YY format).o The user is asked for their action. The options are: Move to the next contact (moving forward to the first contact if currently atthe last contact). The contacts details are displayed as above and the user invited tomake another choice. Move to the previous contact (moving back to the last contact if currently atthe first contact). The contacts details are displayed as above and the user invited tomake another choice. Select the current contact (see below for follow-up actions). Quit (turn off the phone). The program will end.o If the user has selected a contact they can now:KXO151 – AIEN-SOU Assignment 3 – 2020Page 3 of 7 Call the number (and be asked to leave a one-line typed message). Text the number (and be asked to leave a multiple-line typed message). Edit the contact details (indicate which part of the contact details need to beedited and enter a new value for that part). Return to the previous menu.Details – Stage 2 Remembero You should only consider implementing this if you have completed and tested stage1 and have time to spare.o You must state in the header comments of your source code that you haveimplemented stage 2. Extra functionality at this stage:o Before using their phone, the user is asked whether or not they wish to turn on theirmobile phone and if not, then the program simply exits. This simulates a key-lockcheck.o After the user has finished using their mobile phone they are asked to confirm thatthey wish to turn it off.o If the user has used their phone to examine contacts, then when they elect to stopand turn off their phone they are shown a list of: The contacts called and texted in order. (It is safe to assume there will not bemore than 50 of each of these.)PlanningThe first thing that you need to do is to understand what uses can be made of objects of theMobileFacilities class. To do this: Read the code carefully, making sure that you can identifyo instance variableso methods – read the header comments and the code of these and work out what theydo. Write a driver program to instantiate an object of the MobileFacilities class and callits methods (to check that they behave the way that you think they do). Plan how to write code to organise the Call Or Text activity (using object(s) of theMobileFacilities class)o Work out the subtasks that will be needed (each of these should be implemented asa method).o Work out the data that will need to be shared by more than one method. Thesewill usually be implemented with instance variables.o For each method work out: the data it will need to have passed in (parameters) the data it will need to pass out (return value) the algorithm for doing the subtask Implement each step after you have planned it – a little bit at a time – compile and test theimplementation as you go.DocumentationYour program files should be fully documented, at least to the same standard as demonstrated inthe textbook. This includes in-code comments, descriptions, and where appropriate, explanationsfor each new constructor, method and variable. Documentation also includes the layout of the Javacode and the data printed out to the screen, which should both be in a clear and professionalformat.KXO151 – AIEN-SOU Assignment 3 – 2020Page 4 of 7Important Notes:PLEASE NOTE: This assignment is to be completed by students in groups of 2. If you need help,please look at the textbook or ask your lecturer. Students who have been working through thetutorial exercises should have no difficulty in completing this assignment.PLEASE NOTE: The submitted Java code must be able to be compiled from the command line usingJavac the Java programming language compiler command, or from a basic editor such as jGrasp. Beaware that development programs such as Eclipse often use features only available when run usingtheir system, meaning that their code may not run on a system without their development program.Programs that do not run from the command line using javac (to compile) and java (to run) becauseof a missing development program feature will fail the assignment. Changing a few variable names, adding different data and / or adding your name to the topof someone elses code does not make it your own work. See the section on Plagiarismbelow. Before you submit your assignment through the KXO151 MyLO website, it is suggested thatyou make sure the final version of your Java program file compiles and runs as expected do not change the names of the java file submit it exactly as you last compiled and ran it.PROGRAMS THAT DO NOT COMPILE AND / OR RUN WILL FAIL THE ASSIGNMENT. If in doubt, you canclick on the submitted files, download them from MyLO, and check that they are the filesyou think they should be. Only one complete submission is required from each group. It is up to the members of the group to make sure their assignment files have beensubmitted correctly.Program StyleYour program should follow the coding conventions introduced in this unit and shown in thetextbook, especially: Variable identifiers should start with a lower case letter Final variable identifiers should be written all in upper case and should be declared beforeall other variables Every if-else statement should have a block of code for both the if part and the else part (ifused) Every loop should have a block of code (if used) The program should use final variables as much as possible The keyword continue should not be used The keyword break should only be used as part of a switch statement (if required) Opening and closing braces of a block should be aligned All code within a block should be aligned and indented 1 tab stop (approximately 4 spaces)from the braces marking this blockCommenting: There should be a block of header comment which includes at least file name your name (in pinyin) student UTas id number a statement of the purpose of the programKXO151 – AIEN-SOU Assignment 3 – 2020Page 5 of 7 Each variable declaration should be commented. There should be a comment identifying groups of statements that do various parts of thetask. There should not be a comment stating what every (or nearly every) line of the codedoes – as in:num1 = num1 + 1; // add 1 to num1Guide to Assessment and Expectations:The assessment of Assignment 3 is based on the following criteria:Criteria High Distinction Distinction Credit Pass FailWorking JavaClasses /ProgramProvided a completeworking set of Javaclasses that fullysatisfy therequirements statedin the assignmentrequirements,including easy to useinterface, usingArrays, and correctuse of namesProvided a completeworking set of Javaclasses that satisfy therequirements statedin the assignmentrequirements,including easy to useinterface, usingArrays, and correctuse of namesProvided a completeworking set of Javaclasses that satisfy themajor requirementsstated in theassignmentrequirements,including a relativelyeasy to use interface,using at least 1 Array,and correct use ofnamesProvided a completeworking set of Javaclasses that satisfymost of the major therequirements statedin the assignmentrequirements,including a usableinterfaceFailed to provide acomplete working setof Java classes thatsatisfy therequirements statedin the assignmentrequirements / orfail to compile / orrunDocumentationProvided completedocumentation of allsignificant relevantaspects of the Javaclasses.Submission of correct correctly namedfiles, coversheetProvided reasonablycompletedocumentation ofsignificant relevantaspects of the Javaclasses.Submission of correctfiles coversheetProvided gooddocumentation ofsignificant relevantaspects of the Javaclasses.Submission of correctfiles coversheetProvided somedocumentation ofsignificant relevantaspects of the Javaclasses.Submission of correctfiles coversheetFailed to providedocumentation ofsignificant relevantaspects of the Javaclasses, / or failedto submit coversheetOverallProgramDesign(Understanding ofJava)Demonstratedexcellent clear andlogical design skills shows considerableevidence of planningat a very professionallevel. Design is logical,and is a completesolution to theprogrammingproblem. Showsevidence of thoroughtesting of the solutionDemonstrated verygood design skills shows evidence ofbeing planned in alogically way.Program is a verygood solution to theprogrammingproblem, and is athoroughly testedsolutionDemonstrated gooddesign skills – showsevidence of beinglogically designed anda good solution to theprogrammingproblem. Is anadequately testedsolutionDemonstrated basicdesign skills showssome evidence ofbeing a logicallydesigned solution tothe programmingproblem, and most ofthe methods returnthe correct valuesFailure todemonstrateadequateunderstanding of thenature of Java.Little or no evidenceof any planned design little or no form orstructure.NoteThe High Distinction grade is reserved for solutions that fully meet the requirements are highly distinguished fromother assignments by their high quality work, their attention to detail, by demonstrating a high-level an understandingand ability to program Using the Java language (usually only 10% of students).KXO151 – AIEN-SOU Assignment 3 – 2020Page 6 of 7Submitting Your AssignmentOnly one complete submission is required from each group.You need to submit your assignment package containing the following 3 files to the unitMyLO site:AssignThree2020.java, MobileFacilities.java, CallOrText.javaFollow these steps to create a package for your assignment files and then submit your package file:1. Ensure that you add the names and the UTAS ID numbers of both students of your group into theclass header of each of the 3 files, as comments.2. On your computer desktop, create a new folder using your name and UTAS ID number. Forexample, if your name is Jianwen CHEN and your UTAS ID number is 111222, then the new foldermust be named Chen_Jianwen_111222;3. Copy your 3 assignment files Into the new folder;4. Compress the new folder and name it as a RAR file (or ZIP file). For example, Jianwen CHEN couldname it as Chen_Jianwen_111222.rar.5. Submit your RAR file (or ZIP file) to the unit MyLO site. While submitting, include the names andUTAS ID numbers of both students as comments.You must also submit a signed group coversheet to your local lecturer by the assignment duedate. The group coversheet is also on the unit MyLO site, under Assessment.In submitting your assignment you are agreeing that you have read the Plagiarism and AcademicIntegrity section below, and that your assignment submission complies with the assignmentrequirement that it is your Groups own work.Students who believe that this method of submission is unsuitable given their personalcircumstances must make alternative arrangements with their Lecturer prior to the submissiondate.Extensions will only be granted under exceptional conditions, and must be requested withadequate notice on the Request for Extension forms.KXO151 – AIEN-SOU Assignment 3 – 2020Page 7 of 7Plagiarism and Academic IntegrityWhile students are encouraged to discuss the assignments in this unit and to engage in activelearning from each other, it is important that they are also aware of the Universitys policy onplagiarism. Plagiarism is taking and using someone elses thoughts, writings or inventions andrepresenting them as your own; for example downloading an essay wholly or in part from theinternet, copying another students work or using an authors words or ideas without citing thesource.It is important that you understand this statement on plagiarism. Should you require clarificationplease see your unit coordinator Or lecturer. Useful resources on academic integrity, includingwhat it is and how to maintain it, are also available at: www.academicintegrity.utas.edu.au/.AcknowledgementThis assignment has been adapted from a programming project developed by Dr Julian Dermoudy. The assignment templatewas written by Dr Dean Steer. Both authors are members of School of Technology, Environments and Design, University ofTasmania, Australia.(The End)Plagiarism is a form of cheating. It is taking and using someone elses thoughts, writings orinventions and representing them as your own; for example, using an authors wordswithout putting them in quotation marks and citing the source, using an authors ideaswithout proper acknowledgment and citation or copying another students work.If you have any doubts about how to refer to the work of others in your assignments, pleaseconsult your lecturer or tutor for relevant referencing guidelines, and the academic integrityresources on the web at: www.academicintegrity.utas.edu.au/.The intentional Copying of someone elses work as ones own is a serious offence punishableby penalties that may range from A fine or deduction/cancellation of marks and, in the mostserious of cases, to exclusion from a unit, a course or the University. Details of penalties thatcan be imposed are available in the Ordinance of Student Discipline Part 3 AcademicMisconduct, see: www.utas.edu.au/universitycouncil/legislation/The University reserves the right to submit assignments to plagiarism detectionsoftware, and might then retain a copy of the assignment on its database for thepurpose of future plagiarism checking.如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。