” 辅导CPT109编程、 写作Software程序语言CPT109 C Programming and Software Engineering 1 ASSESSMENT 2Assessment Number 2Contribution to Overall Marks 50%Issue Date 02/11/2020Submission Deadline 14/12/2020 at 0600 (6am)Assessment OverviewThis assessment aims to test your ability to design a modular program which makes use offiles and structures. Application of the software development process (SDP) is also underassessment; the five main steps of the software development process are:1. Problem statement: Formulate the problem.2. Analysis: determine the inputs, outputs, variables, etc3. Design: define the list of steps (the algorithm) needed to solve the problem.4. Implementation: the C code has to be submitted as a separate file. Just indicate here thename of the file.5. Testing: explain how you have tested and verified your C program.EXERCISEAn entertainment company Would like you to develop a version of the popular memory gameFind the Pairs. In this game, a player is shown a grid of randomised pairs of symbols tomemorise in a short time. The player then selects pairs of objects to uncover, which remainuncovered if they match. The aim is to turn over all pairs in the smallest number of attemptspossible. The program Will allow the user to create an account so that their game history canbe recorded and viewed each time they login.Program Requirements1. Your program should provide users with the ability to create an account. An accountshould be a structure type variable containing at least: a username, a password anddetails of their game playing history.2. All of the accounts should be stored in a data file and accessed by the program.3. Once a user is logged on to the game they should be able to:(i) Start a new game(ii) Review their game history(iii) Clear their game history4. Logout5. Normally, the use of global variables is not allowed. Any use of global variables mustbe fully justified in your report.6. The randomised pair grid must be a minimum size of 4 x 4 (i.e. 8 pairs).7. The grid should initially be displayed to the player for a short time.8. The player should be able to select pairs of objects to uncover. These remainuncovered if they match and are re-covered if they do not match after a short delay.9. The total number of guesses it takes to uncover all pairs should be recorded.10. The game Should allow the player to exit to the main menu at any time.IdeasNote: the following are only to provide you with ideas of how to implement the requiredfunctionality. They do not represent the best or only ways to implement the functions.All player accounts are structure variables and will be stored in a file. The login process canbe achieved using a single structure variable, into which each account can be read from thefile one by one, each time checking the username until you find the correct players account.The gaming operations can then be performed using that single structure variable. When theplayer logs out only this one structure needs to be written back to the file for saving in thecorrect position.Alternatively, you can create an array of structures in the program and read the whole fileinto the array, then search the array for the correct users structure. The game can be playedusing the correct element in the array of structures. When the player finishes, the whole arraycan be written to the file.The randomised grid of symbols can be created using a 2D array.Try to create your own functions to simplify the programming task.Consider how your program should function when there is an invalid input.To make your program more interesting for the user think about the playability. Use yourown experience of playing games, for example you might allow different difficulty settingsrelated to the size of the grid which could be changeable, you may record the time it takes tocomplete the grid, Some statistical data about their game history may be of interest.What should be submitted?1) A short report (up to a few pages of text plus C source codes) detailing for each question:a) SDP steps 1 to 3 in the report (Problem statement(10%) + Analysis(10%) +Algorithm Design(10%) + Report Quality(10%)) (40%)b) SDP step 4 (Implementation + Robustness): C source code including comments.(40%). Do not paste the code into your report just submit the .c source code file andwrite the file name in your report under the implementation section. This MUSTcompile and run in Visual Studio 2013.c) SDP step 5 (testing): explain your testing methodology including: what you wantedto test, how you have tested it and the outcome of your tests. (15%). Note: you donot need to include screenshots of all testing results. You can include some to showcorrect operation and or failures, avoid including pages and pages of screenshots forevery test you perform.Please refer to the file CPT109 Marking Guidelines Assignment 2 for thedetailed marking Scheme.2) The report in Microsoft Word or pdf format and C source code of your implementationshould be zipped into a single file, i.e. the zip file will contain 2 files, one document andone source code.The naming of Report (.docx or .pdf), Source Code (.c) and Compressed file (.zip or .rar) StudentID_LastName_FirstName_AssignmentNumber.docx or .pdf StudentID_ AssignmentNumber.c StudentID_LastName_FirstName_AssignmentNumber.zip or .rarFor example 123456789_Einstein_Albert_2.docx 123456789_2.cZipped together into: 123456789_Einstein_Albert_2.zipHow the work should be submitted?Should be submitted electronically through the Learning Mall so that the marker can run yourprograms during marking. Feedback and your grade will also be given through the LearningMall.Remember that You are responsible for ensuring that your C code will run in Visual Studio2013 and to C90 standard and that if it does not without documentary explanation you mayget a 0 mark for your implementation.如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。