Question
In C# Create a program to find the area of a rectangle. Rectangle Area: The program will ask the user to enter the length and
In C# Create a program to find the area of a rectangle. Rectangle Area: The program will ask the user to enter the length and width of a rectangle, and then display the rectangles length, width and area on the screen. The program cannot accept input values less than 0. The programs Main function must call the following four function: getLength This function should ask the user to enter the rectangles length, validate it, and then return that value as a double to the main function. getWidth - This function should ask the user to enter the rectangles width, validate it, and then return that value as a double to the main function. getArea This function should accept the rectangles length and width as arguments, compute the rectangles area with these arguments and return the rectangles area to the main function. The area is calculated by multiplying the length by the width. displayData This function should accept the rectangles length, width, and area as arguments, and display them in an appropriate message on the computer screen.
Thank you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started