LP8 Assignments Average

User Generated




This assignment will assess Competency; 8. Demonstrate basic knowledge of Object-Oriented Programming.

Directions: For this assignment, you will complete exercise 2 on page 577 which involves creating a project with a specific class (Class State) in it. Be sure to read the bold print just BEFORE the exercise description. Complete this exercise and submit a .zip file of the completed Project – the whole Project and not just the code.

Submit your assignment to your instructor via the dropbox “LP8.2 Assignment: Average.” This assignment is worth 45 points and will be graded according to the following scoring guide.

The file UnitedStates.txt provides data on the 50 states. (This file is used in Exercises 2 through 5.) Each record contains five pieces of information about a single state: name, abbreviation, date it entered the union, land area (in square miles), and popu- lation in the year 2015. The records are ordered by the date of entry into the union. The first three lines of the file are

Delaware,DE,12/7/1787,1954,941875 Pennsylvania,PA,12/12/1787,44817,12856989 New Jersey,NJ,12/18/1787,7417,8969545

2. U.S. States Create a class State with five properties to hold the information about a single state and a method that calculates the density (people per square mile) of the state.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hey I am through. I have attached the z...

Nice! Really impressed with the quality.


Related Tags