Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Hello there! I noticed you were helping someone (their username: theclip2000) with the lab 9 of their computing science course homework. The title of...

Hello there! I noticed you were helping someone (their username: theclip2000) with the lab 9 of their computing science course homework. The title of the post "Hi, I need this lab finished soon. I've included all the files" You are very close to supplying the right code, but there was a single error for each task with the final copy of code you posted for tasks 3, 4, and 5. (The code you posted Nov. 30, 11:58pm) For each task, the code passed 26 tests and failed the last in each. This is what the error messages say:

For task 3:

Ship at (x: 0.41, y: 0.04, a: 0.09 thrust: 0) has 65536 pixels correct and 0 pixels wrong.Ship at (x: 0.03, y: 0.60, a: -0.56 thrust: 1) has 65530 pixels correct and 6 pixels wrong.Look at the files ship_user.png (your drawing) and ship_ref.png (reference drawing) to see what's wrong.Task 3 detected one or more errors.Total number of errors: 1FAIL

For task 4:

Roid at (x: 0.84, y: 0.92, width: 0.16 height: 0.10) has 65536 pixels correct and 0 pixels wrong.Roid at (x: 0.07, y: 1.00, width: 0.16 height: 0.10) has 65523 pixels correct and 13 pixels wrong.Look at the files roid_user.png (your drawing) and roid_ref.png (reference drawing) to see what's wrong.Task 4 detected one or more errors.Total number of errors: 1FAIL

task 5:

Shot at (x: 1.00, y: 1.00) roid at (x:0.00, y:0.00, width:0.16, height:0.10) is a MISS and should be a HITTask 5 detected one or more errors.Look at the files shot_user.png (your drawing) and shot_ref.png (reference drawing) to see what's wrong.Total number of errors: 1FAIL

You're so close! But there are those 3 errors (one for each task). If you can fix the code to not get these final three, the code will be good! I don't know if I need to pay you additionally for asking this question, since I already unlocked the document/answer/page, but yeah. Thought I would help the customer as well as yourself figure this all out more quickly.

Thanks.

/* roids.c (c) Richard Vaughan 2015An Asteroids variant with a Mondrian flavour for artistic destruction. */ #include#include#include#include#include#include#include <assert.h>...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question