Java program Assignment

computer science

Description

In this lab, you will complete a Java program that uses an array to store data for the village of Marengo. The village of Marengo conducted a census and collected records that contain household data, including the number of occupants in each household. The exact number of household records has not yet been determined, but you know that Marengo has fewer than 300 households. The program is described in Chapter 8, Exercise 5, in Programming Logic and Design. The program should allow the user to enter each household size and determine the mean and median household size in Marengo. The program should output the mean and median household size in Marengo.

1. Open the source code file named Householdsize.java using notepad or the editor of your choice.

2. Write the bubble sort.

3. Output the median household size in Marengo.

4. Save the source code file in the directory of your choice, and then make that directory your working directory. 

5. Compile the source code file. Householdsize.java. 

6. Execute the program with the following input, and output the household sizes: 4, 1, 2, 4, 3, 3, 2, 2, 2, 4, 5, 6. 

Basically looking for help the bubble sort code. I have written the pseudocode but having trouble getting my compiler to work properly on this. This is my second to last assignment in this class. Looking for an A to help me get the rest of the way. 

Instruction Files

Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.