✅ 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 FarrellOP2y ago
it simply runs the code asking for an input then finishes after that.
ero
ero2y ago
i mean, if there's nothing else after that, then it finishes what else is it supposed to do?
Feast
Feast2y ago
you can use while(condition){} to make a loop
Pobiega
Pobiega2y 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
Moods2y ago
There’s also the Convert.ToInt32 method being used which shouldn’t really be used
Ryan Farrell
Ryan FarrellOP2y ago
thank youuu i got it working now
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server