Building a car in python [on hold]











up vote
-4
down vote

favorite












This assignment will give you more experience on the use of:




  1. Classes


  2. Class methods



In this project, you will work with one or two classmates to use a library package called turtle graphics to draw a car. You will create at least 5 classes. You will then write a function that creates instances of your classes in order to draw a car that includes: a body, wheels, windows and an antenna. You can certainly provide more than 5 (taillights, headlights, windshield, wipers, grill, etc.) but 5 is a minimum. Remember to design by writing down the nouns you want to describe. Remember you will have mutator and accessor methods for each attribute.



PROJECT DESCRIPTION / SPECIFICATION



Define 5 classes (at least)




  1. Each class will have an init and a draw() method at the minimum.


  2. Each class will have a color that is a string for example, ‘blue’ – If the string is “”, then it is empty and the shape will not be filled.


  3. The draw method needs to accept at least x and y coordinates arguments (indicating where the figure is drawn) and a turtle.Turtle() object to use for drawing the shape.


  4. Function main (pen, bodycolor) where pen is a turtle.Turtle() object with which to draw the car and body color is the color of the car.


  5. Your car must, at a minimum, include the following classes:



a. Body



b. Wheels



c. Windows



d. An antenna



e. At least one other (your own design)




  1. All classes, methods and functions require a docstring for a general description of the object/method/function.


DELIVERABLES



Present the project to your class with all the function definitions and the main function.




  1. Specify the file as “yourinitials_car.py”


  2. You will upload this file to OpenLMS


  3. You will present your project to the class on the final day of class.



ASSIGNMENT NOTES



The idea is to make classes for objects in your map that have to be drawn and are not just a circle or a square/rectangle.










share|improve this question







New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 3




    Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in writing your code in the first place. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Graipher
    2 days ago

















up vote
-4
down vote

favorite












This assignment will give you more experience on the use of:




  1. Classes


  2. Class methods



In this project, you will work with one or two classmates to use a library package called turtle graphics to draw a car. You will create at least 5 classes. You will then write a function that creates instances of your classes in order to draw a car that includes: a body, wheels, windows and an antenna. You can certainly provide more than 5 (taillights, headlights, windshield, wipers, grill, etc.) but 5 is a minimum. Remember to design by writing down the nouns you want to describe. Remember you will have mutator and accessor methods for each attribute.



PROJECT DESCRIPTION / SPECIFICATION



Define 5 classes (at least)




  1. Each class will have an init and a draw() method at the minimum.


  2. Each class will have a color that is a string for example, ‘blue’ – If the string is “”, then it is empty and the shape will not be filled.


  3. The draw method needs to accept at least x and y coordinates arguments (indicating where the figure is drawn) and a turtle.Turtle() object to use for drawing the shape.


  4. Function main (pen, bodycolor) where pen is a turtle.Turtle() object with which to draw the car and body color is the color of the car.


  5. Your car must, at a minimum, include the following classes:



a. Body



b. Wheels



c. Windows



d. An antenna



e. At least one other (your own design)




  1. All classes, methods and functions require a docstring for a general description of the object/method/function.


DELIVERABLES



Present the project to your class with all the function definitions and the main function.




  1. Specify the file as “yourinitials_car.py”


  2. You will upload this file to OpenLMS


  3. You will present your project to the class on the final day of class.



ASSIGNMENT NOTES



The idea is to make classes for objects in your map that have to be drawn and are not just a circle or a square/rectangle.










share|improve this question







New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 3




    Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in writing your code in the first place. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Graipher
    2 days ago















up vote
-4
down vote

favorite









up vote
-4
down vote

favorite











This assignment will give you more experience on the use of:




  1. Classes


  2. Class methods



In this project, you will work with one or two classmates to use a library package called turtle graphics to draw a car. You will create at least 5 classes. You will then write a function that creates instances of your classes in order to draw a car that includes: a body, wheels, windows and an antenna. You can certainly provide more than 5 (taillights, headlights, windshield, wipers, grill, etc.) but 5 is a minimum. Remember to design by writing down the nouns you want to describe. Remember you will have mutator and accessor methods for each attribute.



PROJECT DESCRIPTION / SPECIFICATION



Define 5 classes (at least)




  1. Each class will have an init and a draw() method at the minimum.


  2. Each class will have a color that is a string for example, ‘blue’ – If the string is “”, then it is empty and the shape will not be filled.


  3. The draw method needs to accept at least x and y coordinates arguments (indicating where the figure is drawn) and a turtle.Turtle() object to use for drawing the shape.


  4. Function main (pen, bodycolor) where pen is a turtle.Turtle() object with which to draw the car and body color is the color of the car.


  5. Your car must, at a minimum, include the following classes:



a. Body



b. Wheels



c. Windows



d. An antenna



e. At least one other (your own design)




  1. All classes, methods and functions require a docstring for a general description of the object/method/function.


DELIVERABLES



Present the project to your class with all the function definitions and the main function.




  1. Specify the file as “yourinitials_car.py”


  2. You will upload this file to OpenLMS


  3. You will present your project to the class on the final day of class.



ASSIGNMENT NOTES



The idea is to make classes for objects in your map that have to be drawn and are not just a circle or a square/rectangle.










share|improve this question







New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











This assignment will give you more experience on the use of:




  1. Classes


  2. Class methods



In this project, you will work with one or two classmates to use a library package called turtle graphics to draw a car. You will create at least 5 classes. You will then write a function that creates instances of your classes in order to draw a car that includes: a body, wheels, windows and an antenna. You can certainly provide more than 5 (taillights, headlights, windshield, wipers, grill, etc.) but 5 is a minimum. Remember to design by writing down the nouns you want to describe. Remember you will have mutator and accessor methods for each attribute.



PROJECT DESCRIPTION / SPECIFICATION



Define 5 classes (at least)




  1. Each class will have an init and a draw() method at the minimum.


  2. Each class will have a color that is a string for example, ‘blue’ – If the string is “”, then it is empty and the shape will not be filled.


  3. The draw method needs to accept at least x and y coordinates arguments (indicating where the figure is drawn) and a turtle.Turtle() object to use for drawing the shape.


  4. Function main (pen, bodycolor) where pen is a turtle.Turtle() object with which to draw the car and body color is the color of the car.


  5. Your car must, at a minimum, include the following classes:



a. Body



b. Wheels



c. Windows



d. An antenna



e. At least one other (your own design)




  1. All classes, methods and functions require a docstring for a general description of the object/method/function.


DELIVERABLES



Present the project to your class with all the function definitions and the main function.




  1. Specify the file as “yourinitials_car.py”


  2. You will upload this file to OpenLMS


  3. You will present your project to the class on the final day of class.



ASSIGNMENT NOTES



The idea is to make classes for objects in your map that have to be drawn and are not just a circle or a square/rectangle.







python turtle-graphics






share|improve this question







New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Waldo

1




1




New contributor




Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Waldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, Toby Speight, Heslacher, Sᴀᴍ Onᴇᴌᴀ, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 3




    Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in writing your code in the first place. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Graipher
    2 days ago
















  • 3




    Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in writing your code in the first place. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Graipher
    2 days ago










3




3




Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in writing your code in the first place. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
2 days ago






Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in writing your code in the first place. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
2 days ago

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Morgemoulin

Scott Moir

Souastre