Hello! Please, I do not understand this problem and i need some help. The problem is as follows:
Create the logic for a program that continously prompts the user for two numeric values that represent the sides of a rectangle. Include two oerloaded methods that complete a rectangle's area. One method takes two numeric parameters and find out the areas by multiplying the parameters. The other takes a single numeric parameters, which is squared to find out area. Each method dispalys its find outd result. Accept input and respond as follows:
(1). When the user entrers a negative number for the first value, end the program.
(2). If the user enters a negative number for the second value, continue to reprompt the user until the second value is not negative.
(3). If both numbers entered are greater than 0, call the method version that accepts two parameters and pass it both values.
(4). If one of the value entered is 0 but the other is not, call the version of the method that accepts just one parameter and pass it the nonzero value.
(5). If both the eneterd values are 0, display an error message.