Sleuth 101 didn't like my final code and won't let me retry. | Coursera Community

Sleuth 101 didn't like my final code and won't let me retry.

  • 2 October 2020
  • 7 replies
  • 180 views

  • Anonymous
  • 0 replies

Hi Guys

 

I was just doing the Sleuth 101 assessment and I got to the “docks” part. It was very annoying because Sleuth was nit-picking about the specific size of the rectangle I had covering Lina. She was in front of what looked like a box that blended in with her hat (does she wear a hat?). Anyway, it has locked me out of trying again. I know I can do it because I got the other 2 boxes correct and Sleuth is just being obtuse about the specific size of the box.

 

Anyway, how long do I have to wait to be able to attempt it again? (I used all of my attempts and am currently suspended).


7 replies

I just had another go with a new image and the response got worse. Now it says I haven’t drawn any rectangles at all, even though you can clearly see 3 on the picture. Can someone help?

 

Thanks

 

Userlevel 7
Badge +12

Esteemed @HenryS, cordial greetings welcome to the community,

 

Really nice to see that you are doing Introduction to Computer Science and Programming specialization, what you show us is the assignment of the first course.

Graded with 0% because you are missing something, and is the alpha (transparency) of the colors, in the instruction say that you have to set alpha equals 100 for some opacity, then the code will be something like this, fill(0,255,0,100), respectively with the others.

Feel comfortable to check the week forums and also post  there your issues or doubts, it help more because in the community we can’t write the answer about any course.

 

Kind regards and happy learning!

@Luis Gerardo Ayala B.  Hi Luis, thanks for the generous welcome, it’s really great to be here. And thank you so much for your help, it worked! It’s always some small thing that you forget to read or miss read!

 

Much appreciated.

Badge +1

Hi Henry!

I am trying to pass Sleuth 101 but I keep getting this message:

Improvements:The outline for the rectangle identifying the woman with the hat and the cigarette is incorrectly set.

here’s my code:

 

var img;
var createCanvas;
var loadImage;
var noFill;
var strokeWeight;
var stroke;
var rect;
var image;

function preload()
{
img = loadImage('img.jpg');
}

function setup()
{
createCanvas(img.width,img.height);
noFill();
strokeWeight(2);
}

function draw()
{
image(img,0,0);

//Write your code below here ...
stroke(0,255,255);
rect(1551,369, 310, 625);
stroke(255,204,0);
rect(52,589,330,568);
}

can you please point how you did it?

 

Much appreciated!

Badge +3

Hi Henry!

I am trying to pass Sleuth 101 but I keep getting this message:

Improvements:The outline for the rectangle identifying the woman with the hat and the cigarette is incorrectly set.

here’s my code:

 

var img;
var createCanvas;
var loadImage;
var noFill;
var strokeWeight;
var stroke;
var rect;
var image;

function preload()
{
img = loadImage('img.jpg');
}

function setup()
{
createCanvas(img.width,img.height);
noFill();
strokeWeight(2);
}

function draw()
{
image(img,0,0);

//Write your code below here ...
stroke(0,255,255);
rect(1551,369, 310, 625);
stroke(255,204,0);
rect(52,589,330,568);
}

can you please point how you did it?

 

Much appreciated!

please help me out with this problem if it has been solved

Badge +3

@Luis Gerardo Ayala B.  Hi Luis, thanks for the generous welcome, it’s really great to be here. And thank you so much for your help, it worked! It’s always some small thing that you forget to read or miss read!

 

Much appreciated.

???? 

Badge +3

Hi Henry!

I am trying to pass Sleuth 101 but I keep getting this message:

Improvements:The outline for the rectangle identifying the woman with the hat and the cigarette is incorrectly set.

here’s my code:

 

var img;
var createCanvas;
var loadImage;
var noFill;
var strokeWeight;
var stroke;
var rect;
var image;

function preload()
{
img = loadImage('img.jpg');
}

function setup()
{
createCanvas(img.width,img.height);
noFill();
strokeWeight(2);
}

function draw()
{
image(img,0,0);

//Write your code below here ...
stroke(0,255,255);
rect(1551,369, 310, 625);
stroke(255,204,0);
rect(52,589,330,568);
}

can you please point how you did it?

 

Much appreciated!

please help me out with this problem if it has been solved

how ?

Reply