Question: Exceptions And Automated Testing Assignment For this assignment, you are going to pretend that you are writing a variable sorter application that stores inputted variables

Exceptions And Automated Testing Assignment

For this assignment, you are going to pretend that you are writing a variable sorter application that stores inputted variables into lists based on their type.

In order to do this, you are going to create a VariableSort class that contains the following lists as properties on it:

  • A list of string values
  • A list of float values
  • A list of integer values

In addition, if a value is a string, it must only have upper- and lower-case values on it. No other values should make it onto your lists. In order to make this work, you are going to create methods to validate your data and place them into the proper lists based on their data type.

Your program must also have a main program loop that leverages your class and keeps asking the user for values until it's told to stop.

The rest of the implementation details are up to your discretion, applying the things you have learned about Python so far. Please note, however, that you must organize your class into a module and produce documentation (using Pydoc) for your work using the principles discussed earlier in the class. You must also include exception handling in your code according to the principles discussed this week.

You must also create a comprehensive set of test cases for your application applying the principles discussed this week. As well, your test cases must be stored according to the methods discussed this week in the lecture.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!