Task 1 - Software Engineering Task: Code Changes
Task 1 - Software Engineering Task: Code Changes
Disclaimer
● This guide is only for those who did the setup locally on their machines.
● For those using REPL, see the REPL guide in the Instructions file of your
REPL environment
Setting up your dev environment for the program!
Prerequisite
● Set up should have been done. This means,your server and client
applications should have been running with no problems without introducing
any changes to the code yet. You can verify this if you get a similar result to
any of the following slides that include a picture of the server and client app
running together
Setting up your dev environment for the program!
Prerequisite
Mac OS (left side server, right side client)
Setting up your dev environment for the program!
Prerequisite
Windows OS (left side server, right side client)
Setting up your dev environment for the program!
Prerequisite
Linux OS (left side server, right side client)
Setting up your dev environment for the program!
Objectives
● If you closely inspect the output of the client applications in the previous
slides, there are two incorrect things…
● Don’t worry we’ll walk you through how to get these things done
Setting up your dev environment for the program!
● To do this, you can use any text editor your machine has and just open the
files in the repository that must be changed (the guide will instruct you in the
following slides which files these will be)
● The changes you need to make will be in the following methods of the file
○ getDataPoint
○ getRatio
○ Main
● The changes for each method will be dissected for each method on the next
slide
Setting up your dev environment for the program!
note: that we’ve also added the condition of the case where in price_b could be zero, i.e. division by zero,
in the rare chance that it might happen...
Setting up your dev environment for the program!
● We then used this prices dictionary at the end to pass in the right values in
the getRatio function.
Setting up your dev environment for the program!
Next step
● You’re done with the main task. You can either create your patch file now by
following this guide, or try and do the bonus task first