Best Houses Company sells houses to their customers and needs a program to facilitate the selling process. Write a JAVA program that asks the user to enter house number (int), house size in square meters (double), and house price (double) and store them in three parallel arrays. The number of houses is 10. Then, the program should ask the user to enter the price range of the required house which is the start price and the last price in the range and should do the following: Print all the information of the houses within that range. Print the number of houses in the specified range.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

 

Best Houses Company sells houses to their customers and needs a program to facilitate the selling process. Write a JAVA program that asks the user to enter house number (int), house size in square meters (double), and house price (double) and store them in three parallel arrays. The number of houses is 10. Then, the program should ask the user to enter the price range of the required house which is the start price and the last price in the range and should do the following:

  • Print all the information of the houses within that range.
  • Print the number of houses in the specified range.
ITCS113 Computer Programming 1
LAB Assignment #5
Chapter 7
Best Houses Company sells houses to their customers and needs a
program to facilitate the selling process. Write a JAVA program that
asks the user to enter house number (int), house size in square meters
(double), and house price (double) and store them in three parallel
arrays. The number of houses is 10. Then, the program should ask the
user to enter the price range of the required house which is the start
price and the last price in the range and should do the following:
(a)Print all the information of the houses within that range.
(b)
Print the number of houses in the specified range.
Sample Input/Output
Enter house number, size, and price for 10 houses:
23
210.00
90000.90
35
240.00
11000.25
91
225.00
135000.00
320.0
64
Enter the price range: 100000.0 140000.0
House Information for this range:
House
Price
180000.75
Size
240.00
225.00
35
110000.25
91
135000.00
The number of houses found was 2
Transcribed Image Text:ITCS113 Computer Programming 1 LAB Assignment #5 Chapter 7 Best Houses Company sells houses to their customers and needs a program to facilitate the selling process. Write a JAVA program that asks the user to enter house number (int), house size in square meters (double), and house price (double) and store them in three parallel arrays. The number of houses is 10. Then, the program should ask the user to enter the price range of the required house which is the start price and the last price in the range and should do the following: (a)Print all the information of the houses within that range. (b) Print the number of houses in the specified range. Sample Input/Output Enter house number, size, and price for 10 houses: 23 210.00 90000.90 35 240.00 11000.25 91 225.00 135000.00 320.0 64 Enter the price range: 100000.0 140000.0 House Information for this range: House Price 180000.75 Size 240.00 225.00 35 110000.25 91 135000.00 The number of houses found was 2
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Passing Array as Argument
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,