Skip to content

Conversation

@EricLee9208
Copy link
Owner

No description provided.

this.maxX = 0;
return this;
}
forward(step) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try if and else if for the conditional block

a = new Turtle(0, 0);
}
for (let i = 0; i < inputArr.length; i++) {
if (inputArr[i][0] == "f") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try if and else if for the conditional block

// Function to split the script input into an array
// and run the script using the values
function runTurtleScript(input) {
let inputArr = input.split("-");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let -> const

//and run scripts accordingly
function scriptWithOption(input) {
// If there are no input
if (input == undefined) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!input

return;
}
// If the proper option were passed in
else if (input.slice(0, 9) == "--output=") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a suggestion if you don't want to rely on the position: input.includes("--output=")


return fs.writeFile(input.slice(9), data, (err) => {
if (err) {
console.log(err);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.error

@CodeCoreTA
Copy link

TURTLE GRAPHICS HOMEWORK 2

SCORESHEET FOR STUDENT Eric

Create a simple drawing program inspired by Turtle Graphics.

It will be a much simpler implementation that will only accept

right angles (90 degrees).

GRADING CRITERIA:

Course Value: 5%

Assignment Value: 100%

GRADE:

Total Grade: 100
Score 100 /100
Deductions 00 /20

LATE ASSIGNMENTS WILL BE DEDUCTED 5% OFF PER 24 HOURS, FOR A MAX OF 20% DEDUCTION OVERALL.
YOUR ASSIGNMENT IS CONSIDERED LATE 5 MINUTES AFTER THE DUE DATE AND TIME, UNLESS OTHERWISE DISCUSSED WITH YOUR INSTRUCTOR.



Part 1: Submitted and on Time

Was the assignment complete and on time?

Feature Checkmark Notes
Complete and submitted on time. All good!
On time, but incomplete.
Complete, but submitted late.
Incomplete and submitted late.
Very late submission
No submission

Part 2: Features

Was everything in assignment attempted?

Feature Mark Notes
Turtle Class created.
Constructor created with two arguments for coordinates.
Created forward method.
Created right method.
Created left method.
Created allPoints method.
Created print method.
Everything works as intended.

Part 3: Stretches

Were Stretches attempted?

Feature Mark Notes
Attempted Stretch 1.
Attempted Stretch 2.


ASSIGNMENT RUBRIC

A+ A A- B+ B B- C+ C-F
90%-100% 85%-89% 80%-84% 76%-79% 72%-75% 68%-71% 64%-67% 0%-63%
Assignment handed in on time and complete. All instructions were followed perfectly. All required features were created and works correctly. All Stretches or Challenges were completed. Styling and design of front end meets requirements, and extra creative effort has been applied to this assignment overall. Assignment handed in on time and complete. All instructions were followed perfectly. All required features were created and works correctly. Stretches or Challenges were attempted. Styling and design of front end meets requirements, and looks presentable. OR Stretches or Challenges not attempted, but creative effort has been applied to the assignment overall. Assignment handed in on time and complete. All instructions were followed. All required features were created and works correctly or mostly works. No Stretches or Challenges were attempted. Styling and design of front end meets requirements, and looks presentable. Assignment handed in on time and complete. All instructions were followed. All required features were created or attempted. No Stretches or Challenges were attempted. Styling and design of front end meets requirements, and looks presentable. Assignment handed in on time, but handed in as incomplete. Most instructions were followed. Most required features were created or attempted. No Stretches or Challenges were attempted. Styling and design of front end meets requirements. Assignment handed in on time, but handed in as incomplete. Instructions were somewhat followed. Most required features were created or attempted. No Stretches or Challenges were attempted. Minimal effort in styling and design of front end. Assignment handed in on time, but handed in as incomplete. Instructions were somewhat followed. Some required features were created or attempted. No Stretches or Challenges were attempted. Minimal effort in styling and design of front end. Minimal or no effort.Incomplete/ missing components/insufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants