yes, it gives correct result... now both statement are not always true, depending on the total of credits "totalCred"... have you try it?
Type: Posts; User: mia_tech
yes, it gives correct result... now both statement are not always true, depending on the total of credits "totalCred"... have you try it?
like this? or could be better?
public static void numOfClasses(int totalCred)
{
int numOfClass = 0;
if(totalCred >= 3)
{
numOfClass =...
guys, this code calculate the amount of classes that a student needs to take lets say for 17 credits. It will be 5 three credits classes and 2 one credit classes, but I think the loop is kind of...