Question

Respond to both of the following scenarios for Python programming. Scenario #1: A car dealership has...

Respond to both of the following scenarios for Python programming.

Scenario #1: A car dealership has hired your software development firm to create a new car inventory program. You first need to develop a class that represents the inventory of the dealership. What components and attributes will need to be included in your automobile class? Why?

Scenario #2: A national builder has hired your software development firm to create a home inventory program. You first need to develop a class that represents the inventory of the homes in the nation. What components and attributes will need to be included in your home class? Why?

Provide at least one reference to support your findings.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

This is the python program for the above scenarios.....

Scenario#1..

class Automobile:
    def __init__(self, name, color, model, mileage, cost):
        self.name=name
        self.color=color
        self.model=model
        self.mileage=mileage
        self.cost=cost
    def get_name(self):
        return self.name
    def get_color(self):
        return self.color
    def get_model(self):
        return self.model
    def get_mileage(self):
        return self.mileage
    def get_cost(self):
        return self.color
    def set_name(self, value):
        self.name=value
    def set_color(self, value):
        self.color=value
    def set_model(self, value):
        self.model=value
    def set_mileage(self, value):
        self.mileage=value
    def set_cost(self, value):
        self.cost=value

#Scenario #2

class Home:
    def __init__(self, location, size, rooms, stories, make):
        self.location=location
        self.size=size
        self.rooms=rooms
        self.stories=stories
        self.make=make
    def get_location(self):
        return self.location
    def get_size(self):
        return self.size
    def get_rooms(self):
        return self.rooms
    def get_stories(self):
        return self.stories
    def get_make(self):
        return self.make
    def set_location(self, value):
        self.location=value
    def set_size(self, value):
        self.size=value
    def set_rooms(self, value):
        self.rooms=value
    def set_stories(self, value):
        self.stories=value
    def set_make(self, value):
        self.make=value
Add a comment
Know the answer?
Add Answer to:
Respond to both of the following scenarios for Python programming. Scenario #1: A car dealership has...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Provide answers for both scenarios. Scenario #1: A car dealership has hired your software development firm...

    Provide answers for both scenarios. Scenario #1: A car dealership has hired your software development firm to create a new car inventory program. You first need to develop a class that represents the inventory of the dealership. What components and attributes will need to be included in your automobile class? Why? Scenario #2: A national builder has hired your software development firm to create a home inventory program. You first need to develop a class that represents the inventory of...

  • Problem You work for a dealership that deals in all kinds of vehicles. Cars, Trucks, Boats,...

    Problem You work for a dealership that deals in all kinds of vehicles. Cars, Trucks, Boats, and so forth need to be inventoried in the system. The inventory must be detailed so that it could be searched based on number of doors, engine type, color, and so on. This program will demonstrate the following: How to create a base class How to extend a based class to create new classes How to use derived classes Solving the Problem Step 1...

  • Use your Car class from the previous Programming Assignment. For this assignment, create a new class...

    Use your Car class from the previous Programming Assignment. For this assignment, create a new class that represents a Used Car Dealership. Your Java program will simulate an inventory system for the dealership, where the employees can manage the car information. Start by creating an array of 10 cars, with an "ID" of 0 through 9, and use the default constructor to create each car. For example, the third car in an array called cars would have ID 2. You...

  • Consider the following scenario. You have recently delivered the first phase of a mission-critical software intensive...

    Consider the following scenario. You have recently delivered the first phase of a mission-critical software intensive system. All of your customers and stakeholders are very happy, and you proceed with the second phase of development. This phase will add another set of highly desired features and will take about a year to develop and deliver. You are doing incremental development, so multiple internal versions will be built and tested prior to delivery. You currently use a configuration management system, with...

  • Question 1. For each of the following five scenarios, identify (a) the individuals, (b) the type...

    Question 1. For each of the following five scenarios, identify (a) the individuals, (b) the type of each variable according to its measurement, (c) the response and explanatory variables and (d) and whether the study is an experiment or an observational study. There is no need to explain your answers. Scenario A. It is posited that babies born at different times of the year may develop the ability to crawl at different ages. Thirty two babies born in January crawled...

  • CIT 149 Java 1 programming question Use DrJava to compile the following try-catch program ? The...

    CIT 149 Java 1 programming question Use DrJava to compile the following try-catch program ? The Assignment ? Specifications General Structure your file name and class name on the following pattern: The first three letters of your last name (begin with upper case.). Then the first two letters of your first name (begin with upper case.). Follow this with the name of the program: TryCatch. For a student called ’John Doe,’ the class name and file name would be: DoeJoTryCatch...

  • Assignment Requirements I have also attached a Class Diagram that describes the hierarchy of the inheritance...

    Assignment Requirements I have also attached a Class Diagram that describes the hierarchy of the inheritance and interface behaviors . The link to the PDF of the diagram is below MotorVehical.pdf Minimize File Preview User Define Object Assignment: Create a Intellij Project. The Intellij project will contain three user defined classes. The project will test two of the User Define Classes by using the invoking each of their methods and printing the results. You are required to create three UML...

  • Scenario You have recently joined the team at A&L, an engineering firm with a broad portfolio....

    Scenario You have recently joined the team at A&L, an engineering firm with a broad portfolio. A&L has recently been hired to help plan a supply drop following a natural disaster. Due to conditions on the ground, the supply drop will be done from the air. Your supervisor has asked you to use that information, as well as your knowledge of kinematics, to c.r.e.a.t.e. a. supply drop plan detailing how far the payload should be from the drop site when...

  • Programming Project #5 Project Outcomes: Develop a Java program that Uses selection constructs (if, and if...

    Programming Project #5 Project Outcomes: Develop a Java program that Uses selection constructs (if, and if else). Uses the Java iteration constructs (while, do, for). Uses static variables. Ensure integer variables input are within a range that will not cause integer overflow. Uses proper design techniques including reading UML Class Diagrams Background Information: The Unified Modeling Language (UML) provides a useful notation for designing and developing object-oriented software systems. One of the basic components of the UML is a class...

  • Java 2 Final Project A young entrepreneur has decided to start an online exotic car sales...

    Java 2 Final Project A young entrepreneur has decided to start an online exotic car sales company named Exotic Moves and he’s contacted you to build the company’s website.  You have been given the following requirements and will need to create a prototype with JavaFX: The company sells 5 brands of exotic cars (Aston Martin, Ferrari, Lamborghini, McLaren, and Maserati).   The website should allow a user to see the total inventory of cars or filter their view based on certain...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT