Question: # Import standard Python modules needed to complete this assignment. # You should not need to use any other modules for your solution. # In
# Import standard Python modules needed to complete this assignment.
# You should not need to use any other modules for your solution.
# In particular, your solution must NOT rely on any nonstandard
# Python modules that need to be downloaded and installed separately,
# because the markers will not have access to such modules.
from turtle import
from math import
from random import
from sys import exit as abort
from ospath import isfile
# Confirm that the student has declared their authorship
if not isinstancestudentnumber, int:
print
Unable to run: No student number supplied',
must be an integer aborting!
abort
if not isinstancestudentname, str:
print
Unable to run: No student name supplied',
must be a character string aborting!
abort
# Import the functions for setting up the drawing canvas
configfile 'assignmentconfig.py
if isfileconfigfile:
print
Configuration module found
from assignmentconfig import
else:
printf
Cannot find file configfile aborting!
abort
# Define the function for generating data sets in Task B
# using the imported raw data generation function if available,
# but otherwise creating a dummy function that just returns an
# empty list
datafile 'assignmentdata.py
if isfiledatafile:
printData generation module found
from assignmentdata import rawdata
def datasetnewseed randint:
return rawdatanewseed # return the random data set
else:
printNo data generation module available
def datasetdummyparameter None:
return
#
##
#Student's Solution#
#
# Complete the assignment by replacing the dummy function below with
# your own function and any other functions needed to support it
# All of your solution code must appear in this section. Do NOT put
# any of your code in any other sections and do NOT change any of
# the provided code except as allowed by the comments in the next
# section.
#
# All of your code goes in or is called from, this function.
# In Task B ensure that your code does NOT call functions dataset
# or rawdata because they're already called in the main program
# below.
def visualisedatarenamemeintaskb:
pass # Replace this statement with your solution
#
##
#Main Program to Run Student's Solution#
#
# This main program configures the drawing canvas, calls the student's
# function and closes the canvas. Do NOT change any of this code
# except as allowed by the comments below. Do NOT put any of
# your solution code in this section.
#
# Configure the drawing canvas
#
# You can add arguments to this function call to modify
# features of the drawing canvas such as the background
# and line colours, etc
createdrawingcanvas
# Create the data set and pass it to the student's function
#
# While developing your Task B code you can call the
# "dataset" function with a fixed seed below for the
# random number generator, but your final solution must
# work with "dataset as the function call,
# ie for any random data set that can be returned by
# the function when called with no seed
visualisedatadataset # no argument for "dataset" when assessed
# Exit gracefully
#
# Do not change this function call
releasedrawingcanvasstudentname
#
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
