C
C#13mo ago
Ryan Farrell

✅ Need some help (super beginner)

Hey im really new to coding and im confused on what to do here, im trying to make a student grader that can convert the mark to high distinction, distinction, credit and so on.
7 Replies
Ryan Farrell
Ryan Farrell13mo ago
it simply runs the code asking for an input then finishes after that.
ero
ero13mo ago
i mean, if there's nothing else after that, then it finishes what else is it supposed to do?
Feast
Feast13mo ago
you can use while(condition){} to make a loop
Pobiega
Pobiega13mo ago
Look at your cases thou. switch(grade) will actually look at the value, its not just 5 if statements so either you remove the switch and use ifs, or you use the switch and have proper case patterns that match your grade intervals
Moods
Moods13mo ago
There’s also the Convert.ToInt32 method being used which shouldn’t really be used
Ryan Farrell
Ryan Farrell13mo ago
thank youuu i got it working now
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.