IFB104编程 写作、Python编程调试

” IFB104编程 写作、Python编程调试IFB104 Building IT SystemsSemester 1, 20212021-03-29 1Assessement Task 1: Clients Briefing #2 TranscriptHello, its your client again. Thanks for your submission to meet our first set of requirements.Ive forwarded it to our back-room boffins for their appraisal and youll receive anappropriate reward as soon as possible, proportional, of course, to how precisely youve metour specific requirements.Im now authorised to entrust you with the data sets we need visualised. Time is of the essencebecause we need your finished program by the end of Week 7.Our company is Engaged in a new business called contact tracing, which requires us to understandhow entities move through the community and evolve into different variants as theydo so. This is why it was so important that you provided us with four copies of exactly thesame imagenot four different imagesand with each variant clearly distinguishable fromthe others by two or more significant additions.Associated with this briefing is a Python module that generates the data sets of interest to ouranalysts. Youre welcome to study this code but do not change any of it.[Displays data_generator module]As you can see, it contains a single function which will be imported automatically by theprogram template we gave you earlier. All you need to do is put the data_generatormodule in the same folder as the Python program you have already developed. When you doso the programs behaviour will change as follows.[Runs the Demonstration solution with the data_generator module in place]Our sample solution displays the same symbols on the right as before. But now the programalso displays the data set to be visualised in the programming environments shell window.[Shows the data set displayed in the shell]As you can see, the data set is a list of steps, each describing the way the entity of interest behaves.There are three different kinds of steps:1. The first is always a start step which gives us the grid coordinates where the entity ofinterest was first observed. It also tells us which variant, A to D, was seen.2. The second form of step is a change, which means the entity has evolved into a differentvariation, which can be any of A to D, matching your four symbols.3. All the other steps tell us which way the entity moves geographically, either North,South, East or West, and by how many grid spaces. (Sometimes the number of spacesis zero, in which case the entity remains stationary for that step.)Each time you run the program a new data set is generated, so your code must be able towork Correctly for any possible data set of this form.[Runs the program again]This time we get a different data set, but it still begins with a start step and then contains variousmoves and changes.As you can imagine, trying to understand the behaviour of the entities were trying to tracejust by looking at this list of steps is very difficult for our data analysts. This is why we wantyou to display it in a visual form.IFB104 Building IT SystemsSemester 1, 20212021-03-29 2Given any such data set your task is to draw symbols in the grid accordingly. Your programmust:1. Start the entity in the given grid cell, using the given variant;2. Change the image to the corresponding variant for each change step; and3. Draw copies of the current variant moving the appropriate number of cells, in the givendirection, for each of the four kinds of move step.To help you, each data set generated is printed to the shell window, as you have just seen.More importantly, however, the data set is also returned as a list by function data_set,which makes it Available to your visualise function.[Shows the call to data_set in the templates main program]This function call returns the same list that is printed in the shell window, so you will use thevalue returned by this function as the basis for your visualisation.To help you understand whats required our boffins have extended their sample solution. Illrun their program a few times to show how it responds to different data sets.[Runs several examples while pointing out the correspondencesbetween the steps in the data sets and the images displayed]Your solution needs to do an equivalent job, using the symbols you created for us previously.For your own purposes, please feel free to continue to improve your images if you like, but inour appraisal of your work we wont consider any changes made after the submission youhave just completed. Make sure your images fit exactly in the 100 by 100 pixel cells in thegrid as per our example. If you used differently sized images in the previous task you mayneed to adjust them to fit.We fully appreciate how difficult it is to work with such large data sets that keep changing.To help you develop your program with some unchanging data sets, our boffins have thereforeincorporated a feature into the Python template that allows the data sets to be constrained.If you add an integer argument to the call to function data_set in the main programit will always generate the same data set. In the data_generator module weve listedsome such numbers you may find helpful because they produce very short data sets. Letshave a look at some examples.[Shows the seed values documented in the data_generator module][Demonstrates how to use such values to cause the samedata set to be produced each time the program runs]For instance, using seed value 139 or 174 produces a data set with no move or change steps atall, so you can use it to test your ability to start in the right cell. Seed 49 produces a data setwith only one variant, so you could use this to test your program before you have implementedthe change feature. Seed 57 produces a short sequence of steps involving two variants only,and so on. Feel free to try other seed values during development of your solution. (Ourboffins havent Been able to find one that fills the entire grid yet, so let us know if you do.)Of course, when you submit your finished program it must work for any random list that canbe generated by function data_set and you must not have any argument in the call to thefunction.[Shows the call to data_set with no argument]IFB104 Building IT SystemsSemester 1, 20212021-03-29 3When youve finished your program, please upload it to our companys IT system as you didbefore. We only need the single Python file. Dont send us a copy of the data_generatormodule; we already have it! Also, we welcome receiving, and encourage you to submit,multiple drafts as you Develop your code, as insurance against technical issues, naturaldisasters, pandemics, and so on in Week 7.Thats all for this set of requirements. Hmmm, but Ive just noticed theres a big empty spaceon the left-hand side of the drawing canvas. Ill check with our data analysts to see if theywant some Extra information about the data set displayed there. Ill let you know at the beginningof Week 7.请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp

添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导