java programming   A lot of people have been in the real estate market this year and 2 measurements are used to measure land, acres and hectares.   You are writing a program to convert acres to hectares for lots of land given in acres. You begin by asking the user how many conversions that they want to make for lots of land. Once you have a response, a for loop is entered for processing the lots of land.   You will input the lot# and the acres for the lot and this information will be stored in parallel arrays. Use a value returning method to validate the value of the acres to make sure that it is not <1 acre. Print the lot#, and the acres within a 2nd for loop. Find the lot with the smallest acreage. Use a void method convertHectares that converts the sum of the acres of land processed by a factor of 2.471052, and then displays the Hectares.    The following methods are required in this program: A value returning method to validate the acres to make sure that it is at least 1. A void method to convert the sum of the acres to hectares and display the result.    Below is the output of the program with some test data. Remember your program must run for any number of years and bushels of tomatoes and not just these years and bushels. Other reminders: Use camelCase correctly Indent correctly Comment at the top of each program and within each program Use print formatting to show 1 decimal place in the output for the total Bushels of Tomatoes and total Cubic Feet. Use the test data given for testing. Do not use object oriented classes and methods in this program that you may find on the Internet. This program must use a procedural approach.   Here is how the program will run. Test data input is italicized and bolded.   Let's analyze lot acreage for several lots.    Please enter the number of lots:  3   Please enter the lot#. Abc123 Please enter the acreage for lot Abc123. 1   Please enter the lot#. Bcd234 Please enter the acreage for lot Bcd234. 2   Please enter the lot#. Cde345 Please enter the acreage for lot Cde345. 0   Invalid. Please enter a value that is at least 1. 7     ------Acreage Conversions------ Abc123 1 Bcd234 2 Cde345 7   The lot with the smallest acreage is Abc123 with 1 acre. The total hectares converted from acres is 24.71052.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

java programming

 

A lot of people have been in the real estate market this year and 2 measurements are used to measure land, acres and hectares.

 

You are writing a program to convert acres to hectares for lots of land given in acres. You begin by asking the user how many conversions that they want to make for lots of land. Once you have a response, a for loop is entered for processing the lots of land.

 

You will input the lot# and the acres for the lot and this information will be stored in parallel arrays. Use a value returning method to validate the value of the acres to make sure that it is not <1 acre. Print the lot#, and the acres within a 2nd for loop. Find the lot with the smallest acreage. Use a void method convertHectares that converts the sum of the acres of land processed by a factor of 2.471052, and then displays the Hectares. 

 

The following methods are required in this program:

A value returning method to validate the acres to make sure that it is at least 1.

A void method to convert the sum of the acres to hectares and display the result. 

 

Below is the output of the program with some test data. Remember your program must run for any number of years and bushels of tomatoes and not just these years and bushels.

Other reminders:

Use camelCase correctly

Indent correctly

Comment at the top of each program and within each program

Use print formatting to show 1 decimal place in the output for the total Bushels of Tomatoes and total Cubic Feet.

Use the test data given for testing.

Do not use object oriented classes and methods in this program that you may find on the Internet. This program must use a procedural approach.

 

Here is how the program will run. Test data input is italicized and bolded.

 

Let's analyze lot acreage for several lots. 

 

Please enter the number of lots: 

3

 

Please enter the lot#.

Abc123

Please enter the acreage for lot Abc123.

1


 

Please enter the lot#.

Bcd234

Please enter the acreage for lot Bcd234.

2


 

Please enter the lot#.

Cde345

Please enter the acreage for lot Cde345.

0


 

Invalid. Please enter a value that is at least 1.

7


 


 

------Acreage Conversions------

Abc123 1

Bcd234 2

Cde345 7

 

The lot with the smallest acreage is Abc123 with 1 acre.

The total hectares converted from acres is 24.71052.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY