program to write a code claculate grade of student using switch statement in C language or gives an invalid message
This is a discussion on C programming within the C Programming forums, part of the General Programming Boards category; program to write a code claculate grade of student using switch statement in C language or gives an invalid message...
program to write a code claculate grade of student using switch statement in C language or gives an invalid message
What about it? Is it something that you are supposed to write?
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
well i have to write the code can someone help me out using the switch case
Post your current code.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
This site has a tutorial on that subject here: Switch Case in C and C++ - Cprogramming.com. Beyond that you definitely need to actually ask us a question, post your code, and tell us specifically what problems you're having. You might also want a more descriptive subject: every post in this board is related to C programming![]()
TBH a switch / case in this instance is so simple and rudimentary it's hardly more work to copy / paste someone's answer from here than to just look at a tutorial and do it. But if you want a shot at someone helping you, at least post the data types, meaning post the grades and how they average (are certain grades weghted more than others?) otherwise it's just simple number averaging and labeling it "Persons x's grade" which makes it even simpler!