▲ 4 r/ukeducation+1 crossposts

Unconditional offer from Southampton (Foundation Year, Comp Eng) vs already-confirmed Brunel Year 1 CS — which one?

Trying to decide between two offers. Brunel: BSc Computer Science, confirmed place, straight into Year 1, no foundation year. Southampton: originally Computer Engineering with a Foundation Year (mismatch from my CS application), I've emailed asking to switch to direct-entry CS — waiting to hear back. I might transfer to a US university after Year 1 down the line due to family issues, but that's just a possibility , not a fixed plan. For now, which setup makes more sense as a starting point?

reddit.com
u/Pitiful_Scientist636 — 12 hours ago
▲ 2 r/cs50

Cash problem week-1

So I asked helped about this before and I watched the operator short and section 1 on operators and I managed to get correct output for 1-24 and 70,113, but few numbers like 25,99,26 and maybe many other, outputs a number higher. I do understand the problem why it's happening because of the '+' before '%' but I don't know how to fix it.

#include <cs50.h>
#include <stdio.h>


int main(void)
{
    int cash_owed = get_int("cash owed: ");


  cash_owed = cash_owed / 25 + (cash_owed % 25) / 10 + (cash_owed % 10) / 5 + (cash_owed % 5) / 1;


    printf("%i\n", cash_owed);
}
reddit.com
u/Pitiful_Scientist636 — 23 days ago
▲ 1 r/cs50

week-1 cash problem

It is what it is I'm stuck in the cash problem I don't know how to proceed I sat with it for 1.30 hour straight asked the AI duck for assistance but nothing seems to work. I know there won't be multiple printf but I donno where to put the printf for it to work. Also, if it would be divided or remaindered.

   for (int i = changeOwed; i >= 25; i--)
    {
     printf("%i\n", changeOwed / 25);
        break;
    }
   for (int i = changeOwed; i >= 10; i--)
    {
     printf("%i\n", changeOwed / 10);
        break;
    }
     for (int i = changeOwed; i >= 5; i--)
    {


        printf("%i\n", changeOwed / 5);
        break;
    }
     for (int i = changeOwed; i >= 1; i--)
    {


        printf("%i\n", changeOwed / 1);
        break;



    }   for (int i = changeOwed; i >= 25; i--)
    {
     printf("%i\n", changeOwed / 25);
        break;
    }
   for (int i = changeOwed; i >= 10; i--)
    {
     printf("%i\n", changeOwed / 10);
        break;
    }
     for (int i = changeOwed; i >= 5; i--)
    {


        printf("%i\n", changeOwed / 5);
        break;
    }
     for (int i = changeOwed; i >= 1; i--)
    {


        printf("%i\n", changeOwed / 1);
        break;



    }
reddit.com
u/Pitiful_Scientist636 — 23 days ago
▲ 0 r/ukeducation+1 crossposts

visa interview

People who have already passed the visa interview can you guys give me some unique ace points for “why uk not other countries?” for undergraduate education

reddit.com
u/Pitiful_Scientist636 — 1 month ago