Hey this is my first post and was wondering if anyone could help me.
I'm writing a code that's suppose to do a payroll for my intro cs class.
At first it was working fine until I had to add the part that made sure a user couldn't enter a wage value below $6.00 and now it stops the loop right after that part for some reason. Any help would be appreciated.
while (grossPay = wages[count]); // I don't understand what you wanna do here but
// this is an infinite loop (that's where your program "stops")
grossPay = payrate[count] * wages[count]; // wages[count] is uninitialized btw. don't know if intended
What I was trying to do was implement the output of payrate*wages into the wages[count] array. I wanted to put the input for each variable that pertained to it and now that you mention it was a infinite loop it kind of makes sense because for some reason the program wouldn't end or anything. Btw ty for the help Glandy :D