Building a car in python [on hold]
up vote
-4
down vote
favorite
This assignment will give you more experience on the use of:
Classes
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)
Each class will have an init and a draw() method at the minimum.
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.
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.
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.
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)
- 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.
Specify the file as “yourinitials_car.py”
You will upload this file to OpenLMS
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
New contributor
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.
add a comment |
up vote
-4
down vote
favorite
This assignment will give you more experience on the use of:
Classes
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)
Each class will have an init and a draw() method at the minimum.
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.
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.
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.
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)
- 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.
Specify the file as “yourinitials_car.py”
You will upload this file to OpenLMS
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
New contributor
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
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
This assignment will give you more experience on the use of:
Classes
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)
Each class will have an init and a draw() method at the minimum.
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.
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.
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.
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)
- 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.
Specify the file as “yourinitials_car.py”
You will upload this file to OpenLMS
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
New contributor
This assignment will give you more experience on the use of:
Classes
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)
Each class will have an init and a draw() method at the minimum.
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.
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.
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.
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)
- 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.
Specify the file as “yourinitials_car.py”
You will upload this file to OpenLMS
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
python turtle-graphics
New contributor
New contributor
New contributor
asked 2 days ago
Waldo
1
1
New contributor
New contributor
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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