Question: Python Setting up the Python Project This lab assignment will be completed by pairs of students. Submissions by individual students will not be accepted under
Python



Setting up the Python Project This lab assignment will be completed by pairs of students. Submissions by individual students will not be accepted under normal circumstances. The intent is that the two students to work together. Create a new Python Application project. Name the project Lab3_GroupN but replace N with your actual group number. Create two python projects - app and test. Create your coding file as Lab3_firstname1_firstname2.py and test file as test_Lab3_firstname1_firstname2.py. Failure to follow this naming format makes it more difficult for me to download and grade your solution, so attention to this detail is appreciated. Program Requirements: An inexperienced coder was working on a project of finding the areas of different shapes. He started with finding the area of a circular shape and wrote the following code: Ifrom math import pi def circle_area (r): return pi (rk2) \# Test function radii =[2,0,3,2+5j, True, "radius"] message = "Area of circles with r= \{radius\} is \{area\}. for r in radii: A circle_area(r) print(message.format(radius=r, area=A)) He got weird outputs which were not anticipated. You are required to analyze the output with your partner to understand the mistakes of the coder. The project manager got annoyed with him and requested you to complete the project along with best test cases without any failure. Design an application and its test cases file along with fixtures which calculates the areas of four shapes: Circle, Trapezium, Ellipse, and Rhombus. You are required to create a test case document (description of test cases and test case design table- same as ICE2 and Lab2) and submit it along with your project. Your project should execute the test cases of only the concerned shape. The shape option should be selected by the user. The option of selection should work for both uppercase and lowercase. [Hint: Create a test suite which contains a menu-driven options, and individual test cases are added to the suite depending upon the option selection] For e.g., it could look like this: Please enter one of the follouing options: for testing area of circle t. for testing area of trapezium e' for testing area of ellipse for testing area of rhonbus " "at to quit Expected Output: The faculty would discuss few of the test cases for you to start-up during discussion of Lab 3 requirements. Please check the program requirements for test case design and its instructions. Things to Explore: You are welcome to explore beyond the mandatory requirements if you wish. General Requirements - Include an opening comment with your full name, the full names on the student(s) you are working with, the name of the program, the date, and a short description. - Follow the course style guide! Use descriptive names for variables, constants, arrays, functions, etc. that follow our naming conventions. - Attach the zipped project to the assignment folder. The zipped project should have all packages along with coding file, test case file with fixtures and test suite file. A separate document containing description of test cases for all shapes and test case design table should also be submitted. - Each of the lab partners should submit a video recording (sharing screen) explaining the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
