Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 4 ] - It All Comes Together ( 3 0 % ) You are allowed to use try / except blocks in Task 4

Task 4]- It All Comes Together (30%)
You are allowed to use try/except blocks in Task 4.
You have worked over the last three tasks to create the runner's assertion with various classes.
Now, you must create a command line interface that ties it all together.
You have been given a (minimal) scaffold in this task. There are no automated tests in this task and the markers will manually check this.
Your task is as follows:
Create the code for the main method in the scaffold.
i) The user should be able to create a runner from scratch (i.e., enter the name, age, country, speeds, etc.). The input should be just one string that contains the name/age/country/speeds. Please see the example below.
ii) The user should be able to choose how many rounds the competition should run for, as well as the distances for the short races and marathons in the competition. The input should be the same (i.e., comma-separated). Please see the example below.
Document the methods given in the scaffold.
Ensure that your code will not break under (most) circumstances by using try and except blocks to handle the custom errors we have defined in this assignment.
Write a testing harness under the file test_task4.py that runs basic checks.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions