” ELEC362语言编程 写作、 辅导programme设计程序Department of Electrical Engineering and ElectronicsELEC362AssignmentScientific data analysis programmeModule ELEC362Coursework name AssignmentComponent weight 10%Semester 1HE Level 5Lab location Library or personal computers/laptopsWork Individually*Estimated time to finish 8-10 hours (code only)Assessment Method Individual, formal word-processed reportSubmission format Online via VITALSubmission deadline 11.59 pm on the 15th November, 2020Late submission Standard university penalty appliesResit opportunity None except for extenuating circumstanceMarking policy Marked and moderated independentlyAnonymous marking No (the marker needs to link the code to the report)Feedback via VITAL GradeMark / Turnitin Feedback StudioExpected release of marks date 15 business days from the deadlineLearning outcomes LO1: Using C++ to implement a console-based application.*Note: This estimate may vary based on the need to debug your code. Make sure you startworking on the assignment as soon as possible.Page 2 of 4The assignmentDesign and implement a console-based C++ programme that reads data from multiple filesin the same folder, processes and writes the processed data into a new file.The input files will be named Experiment followed by a number. The following figureshows a folder containing 5 files. The number of files is not known in advance. The files arenumbered consecutively (if file 6 does not exist then files 7 and above do not exist).The content of one of these files is similar to that shown in the following figure, the numberof rows in the files is not known in advance.All files have the same format. All start from time = 0, and the time difference between anytwo points in any file is 0.1 s. The files differ from one another by the temperature at a giventime, and by the number of data points (i.e. the last data point in one file can be 0.7 s whilein another it can be 1.5 seconds).The programme must Calculate the average temperature from all the data read from thefiles at a given time. The output file should have three columns, namely the time, theaveraged temperature, and number of data points used in that average. For example, if 3out of 5 files have data points at 1.5 s, the third column for t = 1.5 s should have the number3, while for t = 0 s the third column should have 5.You should write a C++ programme that implements the tasks described above. Whendeveloping your code, you should: test your code for Different cases with test files of your own, maximise the use of functions in your code, consider potential run-time errors and how to handle them, look at C++ documentation to see if there are any commands that can make yourcode easier to implement. Design the programme such that it is capable of processing large number of files withlarge number of datapoints.Page 3 of 4Finally, you should make the programme as professional as possible. Make sure your worktakes into account the practical notes given in the lectures.The deliverablesEvery submission should consist of source file + an executable file + brief report. It musthave the students name and the student ID on the cover. The report does not need anintroduction or a conclusion, it must have the following sections: How the programme works (explain the idea of the algorithm, use a block diagram) User instructions (how should the user use it) Testing and verification Attempts Appendix: source code (must be in machine readable format).Mapping the assignment to modules material:Aspect Where it is coveredCreating an executable file Lecture 1Reading and Writing to a file Lecture 2, Lab session 2Mathematical operations Lecture 3Control structures Lecture 4Working with functions Lecture 5, lab session 3Memory management Lecture 5, lab session 3Dealing with run-time errors Lecture 5Handling arrays, variable sizedarrays, or vectorsLecture 3, Lecture 5, or Lecture 10Further reading/tutorials https://www.cplusplus.com/reference/fstream/fstream/ https://www.cplusplus.com/doc/tutorial/files/Page 4 of 4Marking CriteriaCriteria(weight %) What does it mean?Indicative CharacteristicsAdequate / pass(40%)Very good / ExcellentAlgorithm anddesign of theprogramme(25%)Does the programmedo what it is designedto do? Does theprogramme handlememory efficiently?Does the programmemake a good use ofcontrol structures? The programme doeswhat it designed to dowith clearshortcoming. The use of memory iscompletely inefficientbut is working. Control structures arebarely used. The code runs for along time to processfew lines in the datafile. The programme does what itdesigned to do without anyflaws. The memory management isvery efficient. The Code runs relatively fast.Code andimplementation(25%)Is the code wellorganised? Are thevariables namedproperly? Is the codewell commented?Does it use the mostsuitable datatypes forthe variables? The code shows thesteps but is difficult tounderstand what itdoes. Poorly commentedcode. The naming of thevariables is arbitraryand does not give anyidea on what thevariables are used for. The code is written in veryorganised way that is easy tofollow. The code is very welldocumented. The variable naming isappropriate and followsProfessional naming roles.Verification andError-Handling(25%)Has the code beentested? What doesthe programme do ifthere is a run-timeerror? What does thecode do if the inputfile template isincorrect? The code was testedfor one case only. The code containsminimal errorhandling. No evidence forverification or errorhandling is given inthe report. The code has beenthoroughly tested. Error handling has been doneprofessionally for a numberOf potential run-time errorsand user input errors as well.Report(25%)Is the report clear anddescriptive? Is itconcise? Does it haveall sections? Are theuser instructionsgiven clear? The report isunderstandable butcontains many errors. The length of somesections isinappropriate eithertoo short or too long. The source code isGiven in the appendixbut is not machinereadable. The report is well written,and all the relevantInformation it should containare clearly stated. The report is concise.如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。