Question: Python 4Design a class by using the UML class diagram8 points Okay can you do it hurry within short time The get methods for these

Python

4Design a class by using the UML class diagram8 points

Python 4Design a class by using the UML class diagram8 points Okay

can you do it hurry within short time The get methods for

these data fields are provided in the class, but are omitted in

Okay can you do it hurry within short time

The get methods for these data fields are provided in the class, but are omitted in the UML diagram for brevity. BMI -name: str -age: int -weight: float -height: float The name of the person. The age of the person. The weight of the person in pounds, The height of the person in inches. BMI (name: str, age: int, weight: Creates a BMI object with the specified float, height: float) name, age (the default is 20), weight, and height. getBMI(): float Returns the BMI. getStatus(): str Returns the BMI status (e.g., Normal, Overweight, etc.). 5, Prompt the user to enter two integers as the number of rows num_r and the number of columns num_c. Generate a two-dimensional list with num_r row and num_c column, the elements in the list are random non-negative integers and are not exceeding 9. Finally calculate and print the sum of all elements. (8 points) 6, Randomly generate a positive integer num that is no more than 10. Write a program, and write num lines strings into the file 'abc.txt'. The string may contain letters, numbers, spaces, and other symbols. Reopen the document, and print the number of lines, characters, and words of the string. (9 points) Note: 1. Words can only be composed of letters; 2. If abc.txt exists, print "the file already exists" and exit program. 7. Use recursion to calculate the Fibonacci number. The Fibonacci number sequence is as follows. (5 points) The series: 0 1 1 2 3 5 8 13 21 34 55 89 indexes: 0 1 2 3 4 5 6 7 8 9 10 11

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!