![]() |
Need Algorithm to C++ Code Conversion Assistance, Please!!
Hello and thanks for reading my post. I need help converting the fallowing Algorithm into working C++ code, and below is what i have come up with so far, what do i need to do to make this compile?
Algorithm: PayCalc 1. CaseOf PayCode = "H" Pay = Rate * Hours Paycode = "P" Pay = Rate Paycode = "C" Pay = Commission * Sales Paycode = "S" Pay = Salary EndOfCase 2. Exit Code: Code:
#include <iostream> |
Re: Need Algorithm to C++ Code Conversion Assistance, Please!!
Have you tried compiling it? Did you get any errors?
You need a break at the end of each case (unless you mean for it to run into the next one, and a good tip is that if you really mean it to do that then you should put a comment in to that effect). But it will compile and run without that. |
| All times are GMT +5.5. The time now is 18:32. |