Write a Python program
- Your programs shou'ld be user-frlendly Ensure that your programs e provide clear and descriptive prompts for user input and specm', error messages to guide the user in case of invalid input; use docstrings to all functions and methods to explain their purpose and parameters and descriptive function and variable names for better readability; handle errorsIby using error messages to clearly indicate the nature of the error and guide the user to correct their input; e structure the output to be clear and user-friendly, presenting the results in a readable format. While writing the code, make sure you use comments. The identifier names must follow the naming convention of the chosen programming language. Upload your sources using appropriate file names. Program 1: Write a program that that prompts the user for the width and height of a rectangle, calculates the area and perimeter of a rectangle base! on the user-provided side lengths and outputs an appropriate message witk the results. Program 2: Modify the program in 1. to use functions for computing the are: and the perimeter of a rectangle. Program 3: Create a basic implementation of a Rectangle class encapsulating the properties and behaviors of the rectangle with methods to calculate the area and perimeter, and to display the results. This approach makes the code more organized and reusable. ~ Program 4: Enhance the programs with improved input handling that _ensures that user inputs are positive and numeric. Integrate the lnput giaatlon directly into the programs. Your programs should be user-friendly. Ensure that your programs provide clear and descriptive prompts for user input and specific error messages to guide the user in case of invalid input; use docstrings to all functions and methods to explain their purpose and parameters and descriptive function and variable names for better readability; handle errorsIby using error messages to clearly indicate the nature of the error and guide the user to correct their input; structure the output to be clear and user-friendly, presenting the results in a readable format. While writing the code, make sure you use comments. The identifier names must follow the naming convention of the chosen programming language. Upload your sources using appropriate file names. Program 1: Write a program that that prompts the user for the width and height of a rectangle, calculates the area and perimeter of a rectangle based on the user-provided side lengths and outputs an appropriate message with the results. Program 2: Modify the program in 1. to use functions for computing the area and the perimeter of a rectangle. Program 3: Create a basic implementation of a Rectangle class encapsulating the properties and behaviors of the rectangle with methods to calculate the area and perimeter, and to display. 7...__- the results. This approach makes the code more organized and reusable.-r L Program 4: Enhance the programs with improved input handling that | ensures that user inputs are positive and numerlc lntegrat the inpu validation directly into the programs