Paul Dyer wrote:I have a java book which i am going through for a University course. Im in the 1st year so my programming is not brilliant. I have spent way to long on this question which is to design and build a program which will input the number of workers followed by their name, hours worked, hourly rate of pay, overtime rate of pay, status married or single for each. The main program must use seperate methods and appropriate parimeters. Ok so im stuck on the first part. I would like to put the number of workers in, then ask for the names of that number of workers. I know that i need to implement some sort of counter in there maybe using a for loop but it will not compile. I have only used a for loop with a number it will work towards and not a number to count off another input. I hope you get me and any help would be appreciated. Thanks. Here is my terrible work so far.
Paul Dyer wrote:Ty i will make sure i do this in the future. You peeps are really helpful
luck, db
There are no new questions, but there may be new answers.
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|