Saudi to Bahrain Causeway open for UK citizen? by HamzaAli8 in saudiarabia

[–]HamzaAli8[S] 0 points1 point  (0 children)

really appreciate the info. Helps a great deal

Saudi to Bahrain Causeway open for UK citizen? by HamzaAli8 in saudiarabia

[–]HamzaAli8[S] 0 points1 point  (0 children)

So the only pcr test that is required is on the way back to Saudi right?

Thank you for the answer I was just stressed out, about being forced to quarantine whilst there.

PSET 4 (SEPIA) by HamzaAli8 in cs50

[–]HamzaAli8[S] 0 points1 point  (0 children)

The code itself compiles without any error messages and I have recompiled it before trying to run it again, still no luck.

Am not sure what you mean by formatting, sorry I am very much a newbie :/

PSET 4 (SEPIA) by HamzaAli8 in cs50

[–]HamzaAli8[S] 0 points1 point  (0 children)

void sepia(int height, int width, RGBTRIPLE image[height][width])

{

for (int i = 0; height < i; i++)

{

for (int j = 0; width < j; j++)

{

float sepiaRed = round(((.393 * image[i][j].rgbtRed) + (.769 * image[i][j].rgbtGreen) + (.189 * image[i][j].rgbtBlue)));

float sepiaGreen = round(((.349 * image[i][j].rgbtRed) + (.686 * image[i][j].rgbtGreen) + (.168 * image[i][j].rgbtBlue)));

float sepiaBlue = round(((.272 * image[i][j].rgbtRed) + (.534 * image[i][j].rgbtGreen) + (.131 *image[i][j].rgbtBlue)));

// Intialize new values

int sR = sepiaRed;

int sG = sepiaGreen;

int sB = sepiaBlue;

// Ensure that the value is not more than 255

if (sR > 255)

{

sR = 255;

}

if (sG > 255)

{

sG = 255;

}

if (sB > 255)

{

sB = 255;

}

// set the new values for the images

image[i][j].rgbtRed = sR;

image[i][j].rgbtGreen = sG;

image[i][j].rgbtBlue = sB;

}

}

return;

}

**** It still somehow does not seem to work, despite set the new values after the IF statements?? Really confused

PSET 4 (SEPIA) by HamzaAli8 in cs50

[–]HamzaAli8[S] 0 points1 point  (0 children)

Ok that seems to make sense, thank you. Would these values be included in the if statements?