Create a class named TESLA Demonstrate through a program - .create four public member variables: numerOf Doors, engineSize, modelName, msrpPrice and two private member variables: chassiNumber, vinNumber for this class • Demonstrate creation of three objects of this class by instantiating the objects with constructors Object 1: public variables: 4 door, 300kW, Tesla model 3, $46000 to $70000; private variables: abc123; 12345 • Object 2: public variables: 4 door, 600kW, Tesla model S, $99000 to 111000; private variables: xyz123; 45678 Object 3: public variables: 2 door, 1000kW, Tesla model Roadster, $200000; private variables: jfk123; 001 Create get and set functions for all the member variables • Create two additional functions for this class: . . . • A function that asks user input for a price range and based on that prints all four public variables: numer Of Doors, engineSize, modelName, msrpPrice Example: input: $100000 should print details of Tesla Model 3 and Model S. Example: input: $250000, should print details of all three models: Model 3, Model S, and Model Roadster Example input $40000 should print " There are no cars available in this price range. Please try a higher price range" Do not hard code the above values. What I given is examples. It should work for any price given by user • A function that asks user input in terms of engine size and prints chassiNumber, vinNumber . When you print values, print label for each of the values. Ex: number Of Doors: 4 door, engine Size: 400kW, model Name: Tesla Model 3, msrp Price: $46000 to $70000 • Create a default destructor function • Provide comments for each function. One line comment is sufficient .

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Create a class named TESLA Demonstrate through a program - .create four public member variables: numerOf Doors, engineSize, modelName, msrpPrice and two private member variables: chassiNumber, vinNumber for this class • Demonstrate creation of three objects of this class by instantiating the objects with constructors Object 1: public variables: 4 door, 300kW, Tesla model 3, $46000 to $70000; private variables: abc123; 12345 • Object 2: public variables: 4 door, 600kW, Tesla model S, $99000 to 111000; private variables: xyz123; 45678 Object 3: public variables: 2 door, 1000kW, Tesla model Roadster, $200000; private variables: jfk123; 001 Create get and set functions for all the member variables • Create two additional functions for this class: . . . • A function that asks user input for a price range and based on that prints all four public variables: numer Of Doors, engineSize, modelName, msrpPrice Example: input: $100000 should print details of Tesla Model 3 and Model S. Example: input: $250000, should print details of all three models: Model 3, Model S, and Model Roadster Example input $40000 should print " There are no cars available in this price range. Please try a higher price range" Do not hard code the above values. What I given is examples. It should work for any price given by user • A function that asks user input in terms of engine size and prints chassiNumber, vinNumber . When you print values, print label for each of the values. Ex: number Of Doors: 4 door, engine Size: 400kW, model Name: Tesla Model 3, msrp Price: $46000 to $70000 • Create a default destructor function • Provide comments for each function. One line comment is sufficient .

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Hello, can you help me debug this?  

 

 

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY