Create the logic for a program that prompts the user


Carlisle Carpets wants a program to compute carpet costs. Create the logic for a program that prompts the user for two numeric values that represent room dimensions in feet. The program then displays the room area in square feet and the carpet price, which is $15 per square foot. If the user enters two positive numbers, call a method that accepts two parameters and multiplies them to computer the room's area. If just one of the entered values is positive, pass the positive value to an overloaded version of the method that accepts one parameter and squares it to calculate the area. If neither of the entered values is positive, then display an error message.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create the logic for a program that prompts the user
Reference No:- TGS0537161

Expected delivery within 24 Hours