Find Jobs
Hire Freelancers

Need someone to help with my Java homework.

$30-250 USD

In Progress
Posted over 6 years ago

$30-250 USD

Paid on delivery
Hi. I need to hire someone to help me with my Java homework. It's due in two days from today, Nov. 16, 2017. I'm not a great programmer and I'm stuck on a deadline for my other classes. Here is the prompt: Overview: The purpose of this assignment is to get some practice sorting objects in an array. The data you are sorting will consist of the approval ratings of congress members of California over the last five months. The numbers in this data were randomly generated; another words, it is not real data, only meant to be used for the purposes of this assignment. Disclaimer: You will not be allowed to use the Arrays or ArrayList classes for this assignment. Details: You will be creating a class for congress members, called CongressMembers. Instance variables must be private, and will consist of the congress member’s name, and the last five months of approval ratings. Instance methods will be public, and will consist of all necessary “getter” and “setter” methods, as well as a method to return the average of the congress member’s approval ratings. In a separate class called CongressMembersTest (which will contain your main method), you will create an array of CongressMember objects and do a few specific things with this array. Read in data from a file called [login to view URL] (from course webpage - Examples/Program4), initialize each object in the array with the data from each line of text from the data file. Each line in the file consists of the congress member’s first and last name, as well as five floating-point values (the approval ratings for the last 5 months). You’ll need to read through the file once to determine how many members of congress are in the file, in order to initialize the array with the correct number of elements. ***Please make sure the File object in the program you submit has a path of only the file name. Still in CongressMembersTest, create a method called sortByFirstName that sorts the array of CongressMembers by first name. It should both accept and return an array of CongressMembers. You can use bubble sort. Create another method called sortByApprovalRating that sorts the array of CongressMembers by average approval rating. It should also both accept and return an array of CongressMembers. Finally, your program needs to write to a text file called [login to view URL] the contents of CongressMembers array sorted by first name, and sorted by approval rating. Write to a file using FileWriter and PrintWriter objects. The very first line of the file should be how many congress members there are total. Separate the two sorted lists with two blank lines, and a print statement stating which list is which. The format of the file you write should be name and five approval months approval rating all on the same line separated by a space.
Project ID: 15654999

About the project

5 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $171 USD for this job
User Avatar
Hey there, Greeting of the day, We have gone through with your initial requirements and analyzed that our skills best suits with your project requirements. Relevant Skills and Experience We have 7+ year of experience in web development and mobile development. We are having very much expertise in responsive web/ application development using PHP, Wordpress,, ajax, , codeigniter etc. Proposed Milestones $444 USD - Will Discuss Please provide your complete details so I can provide you my best estimates regarding the project.
$444 USD in 4 days
4.9 (21 reviews)
5.5
5.5
User Avatar
Hello sir. I have good java expertise and i would like to work on your project. Feel free to contact me. Thanks Relevant Skills and Experience Java Proposed Milestones $50 USD - Project
$50 USD in 1 day
5.0 (8 reviews)
3.5
3.5
User Avatar
Hi i have read your above details and i understand it. i also have a solution for it. i have done this type of work many times. i assure you that you will like my work. Relevant Skills and Experience Relevant Skills and Experience * Professionalism in ALL computer languages. * I am a Computer Scientist as well as a Forex Trader . * Awesome sound knowledge of JAVA C MUCH MORE Proposed Milestones $111 USD - JAVA HOMEWORK
$50 USD in 2 days
5.0 (2 reviews)
0.4
0.4

About the client

Flag of UNITED STATES
United States
0.0
0
Payment method verified
Member since Nov 16, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.