I need a program that interviews the users about their name


I need a program that interviews the users about their name, how many houses they have and what the purchase price was for each of their houses. The program should then display back to the user the following items:

  1. Their first name
  2. How many houses the user has owned
  3. What the most expensive house is
  4. What the least expensive house is
  5. What the average price for all X number of houses is

The example shown here represents what the user types in green and what the program displays in red.

What is your first name? David

How many houses have you owned? 3

Enter price of house #1: 10000

Enter price of house #2: 30000

Enter price of house #3: 50000

Hello, David. You have owned 3 houses. The most expensive house is $50000. The least expensive house is $10000. The average price for the 3 houses entered is $30000.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: I need a program that interviews the users about their name
Reference No:- TGS02850637

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)