jadders
jadders
CC#
Created by jadders on 3/15/2024 in #help
✅ Anyone recommend a book, or online course?
@TeBeCo ?
9 replies
CC#
Created by jadders on 3/15/2024 in #help
✅ Anyone recommend a book, or online course?
Yeah, it was all just a bit overwhelming, so was kind of looking for a tutorial for it. Or should I just read everything from top to bottom say?
9 replies
CC#
Created by jadders on 3/8/2024 in #help
Official .NET tutorial errors without me changing anything?
thanks though dude
5 replies
CC#
Created by jadders on 3/8/2024 in #help
Official .NET tutorial errors without me changing anything?
I restarted visual studio, and it ran
5 replies
CC#
Created by jadders on 10/27/2023 in #help
❔ microsoft certs/exams?
Thanks dude, I'll look into this now
4 replies
CC#
Created by jadders on 10/22/2023 in #help
❔ Coin sorting issue
It happened when I converted it all to doubles too
15 replies
CC#
Created by jadders on 10/22/2023 in #help
❔ Coin sorting issue
ahh, okay, so I should use Floor, or Ceil?
15 replies
CC#
Created by jadders on 10/22/2023 in #help
❔ Coin sorting issue
15 replies
CC#
Created by jadders on 10/22/2023 in #help
❔ Coin sorting issue
else if (amountOfChange > 0.10f)
{
amountOfChange -= 0.10f;
coinCount++;
Console.WriteLine("taken 0.10");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.05f)
{
amountOfChange -= 0.05f;
coinCount++;
Console.WriteLine("taken 0.05");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.02f)
{
amountOfChange -= 0.02f;
coinCount++;
Console.WriteLine("taken 0.02");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.01f)
{
amountOfChange -= 0.01f;
coinCount++;
Console.WriteLine("taken 0.01");
Console.WriteLine(amountOfChange);
}
}

Console.WriteLine("The minimum amount of coins is: ", coinCount);

}
}
}
else if (amountOfChange > 0.10f)
{
amountOfChange -= 0.10f;
coinCount++;
Console.WriteLine("taken 0.10");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.05f)
{
amountOfChange -= 0.05f;
coinCount++;
Console.WriteLine("taken 0.05");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.02f)
{
amountOfChange -= 0.02f;
coinCount++;
Console.WriteLine("taken 0.02");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.01f)
{
amountOfChange -= 0.01f;
coinCount++;
Console.WriteLine("taken 0.01");
Console.WriteLine(amountOfChange);
}
}

Console.WriteLine("The minimum amount of coins is: ", coinCount);

}
}
}
15 replies
CC#
Created by jadders on 10/22/2023 in #help
❔ Coin sorting issue
namespace Coin_Sorter
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please input an amount of change");
float amountOfChange = float.Parse(Console.ReadLine());
int coinCount = 0;

while (amountOfChange > 0)
{
if (amountOfChange > 5)
{
amountOfChange -= 5;
coinCount++;
Console.WriteLine("taken 5");
Console.WriteLine(amountOfChange);
}
else if(amountOfChange > 2)
{
amountOfChange -= 2;
coinCount++;
Console.WriteLine("taken 2");
Console.WriteLine(amountOfChange);
}
else if(amountOfChange > 1)
{
amountOfChange -= 1;
coinCount++;
Console.WriteLine("taken 1");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.50f)
{
amountOfChange -= 0.50f;
coinCount++;
Console.WriteLine("taken 0.50");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.20f)
{
amountOfChange -= 0.20f;
coinCount++;
Console.WriteLine("taken 0.20");
Console.WriteLine(amountOfChange);
}


namespace Coin_Sorter
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please input an amount of change");
float amountOfChange = float.Parse(Console.ReadLine());
int coinCount = 0;

while (amountOfChange > 0)
{
if (amountOfChange > 5)
{
amountOfChange -= 5;
coinCount++;
Console.WriteLine("taken 5");
Console.WriteLine(amountOfChange);
}
else if(amountOfChange > 2)
{
amountOfChange -= 2;
coinCount++;
Console.WriteLine("taken 2");
Console.WriteLine(amountOfChange);
}
else if(amountOfChange > 1)
{
amountOfChange -= 1;
coinCount++;
Console.WriteLine("taken 1");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.50f)
{
amountOfChange -= 0.50f;
coinCount++;
Console.WriteLine("taken 0.50");
Console.WriteLine(amountOfChange);
}
else if (amountOfChange > 0.20f)
{
amountOfChange -= 0.20f;
coinCount++;
Console.WriteLine("taken 0.20");
Console.WriteLine(amountOfChange);
}


15 replies