Create an application that calculates the area and perimeter of a rectangle and validates the user input.
Be sure to test your program logic completely to be sure all program decisions work correctly.
Example Console Display (use this given test data for your application.)
Welcome to the My Calculator Application
Enter length: ten
Error! Invalid decimal value. Try again.
Enter length: -10
Error! Number must be greater than 0.0
Enter length: 100000000000000000000000
Error! Number must be less than 1000000.0
Enter length: 100
Enter width: what?
Error! Invalid decimal value. Try again.
Enter width: 0
Error! Number must be greater than 0.0
Enter width: 10000000000000000000000
Error! Number must be less than 1000000.0
Enter width: 100
Area: 10000.0
Perimeter: 400.0
Continue? (y/n): Note: no value was entered by the user at this prompt
Error! This entry is required. Try again.
Continue? (y/n): x
Error! Entry must be ‘y’ or ‘n’. Try again.
Continue? (y/n): n
Specifications
Use proper statement indentation and meaningful variable names in the code.
Add a multi-line description of this application (to include your name and the date written) at the beginning of the code for other programmers to read.
Add a comment to each code statement explaining why the statement is in the code.
If the application requires a numeric value, the application should continue prompting the user until the user enters a valid number.
If the application requires a string value, it should continue prompting the user until the user enters a valid string value.
If the user enters without typing in any value, the application should continue prompting the user until the user enters a value.
The code that’s used to validate data must be written in separate methods.
The project will consist of one class with several methods in addition to the main method to receive full credit.