I recently missed 2 class periods in my computer programming course and now I am far behind and I need someones help, don't worry the following programs are examples and are not for a grade in any way or form - need to know how to do these so I can get my hw done.
1) Write a switch statement that, for two given integers A and B, and a give character operation, computes and displays A + B, A - B, A * B, or A / B according to whether operations is +, -, *, /, and display displays and illegal-operator message if it is not one of these.
2) I will post example 2 on a more later date
Anyway there you have it and I would appreciate any remarks, hints, and advice you have on this matter. Just so its clear this program is just an example and doesn't count for a grade, just needs to be made known to me so I know how to do my hw programs and tests.
Please / Thank you.
2007-03-08
04:52:36
·
5 answers
·
asked by
gatz1000
4
in
Computers & Internet
➔ Programming & Design