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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education