logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
635 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Gabriel WalkerHistory
(5/5)

913 Answers

Hire Me
expert
Lakshay AggarwalEngineering
(5/5)

944 Answers

Hire Me
expert
Avinash KumaarData mining
(/5)

689 Answers

Hire Me
expert
Earl BarwinAccounting
(5/5)

960 Answers

Hire Me
Others
(5/5)

you will download a publicly available data set and develop some classes that will be useful in working with the data.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Overview

In this assignment, you will download a publicly available data set and develop some classes that will be useful in working with the data. The data set contains information about fuel efficiency for some different automobiles.

Please follow the steps outlined below.

Preparation

Review the links below that describe the AutoMPG data set that is part of the UCI Machine Learning Repository. This data set consists of 398 records each having nine attributes. Please download the data and save it in a file called auto-mpg.data.txt.

https://archive.ics.uci.edu/ml/datasets/Auto+MPG

https://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data https://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.names

Please create a new Python module in a file autompg.py, taking care to set it up to be useful both as a module and as a program. Also create a unittestt testcase skeleton in test_autompg.py.

Step 1: AutoMPG class

In autompg.py implement a class that represents these attributes that are available for each record in the data set:

⚫ make - String. Automobile manufacturer. First token in the "car name" field of the data set.

⚫ model - String. Automobile model. All the other tokens in the "car name" field of the data set except the first.

⚫ year - Integer. Automobile year of manufacturer. This is the four-digit year that corresponds to the "model year" field of the data set.

⚫ mpg - Floag. Miles per gallon. This is a floating point value that corresponds to the "mpg" field of the data set.

This class should implement the following methods:

__init__ - Constructor that takes four parameters after self and initializes the attributes described above.

__repr___ and ___str___- Returns the string representation of the object. One of these can call the other one.

 

(5/5)
Attachments:

Expert's Answer

635 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme