I want to how I can put the char array and the int array together in a for loop?
This is what I got:
I type this in are the variables were intialized:
do
for(workers = 0; workers <= NUM_NAME; workers++)
{
cout << "NAME " << workers + 1 << ":" << name[workers] << "\n";
for(hours = 0; hours <= NUM_HOURS; hours++)
cin >> workers_info[workers][hours];
}
break;
The output:
Welcome to the Work Hours Tracking System
=========================================
A - Enter work hours for individual worker
B - Display report for individual worker
C - Display report for all workers
E - Exit
Please make a selection:
c
Work Hours Report:
NAME 1:Mary Johnson
c
NAME 2:Jason Garcia
NAME 3:Roy Williams
NAME 4:Jane Rose
NAME 5:╠╠╠╠╠╠╠╠♦
Press any key to continue . . .
and I need a code or a psuedo code to make the output look like this:
Welcome to the Work Hours Tracking System
=========================================
A - Enter work hours for individual worker
B - Display report for individual worker
C - Display report for all workers
E - Exit
Please enter your selection : C
Work Hours Report:
NAME Mon Tue Wed Thu Fri
Mary Johnson 4 3 4 4 0
Jason Garcia 5 5 5 4 0
Roy Williams 5 5 5 5 0
Jane Rose 4 0 4 3 0
Any questions of what is written let me know
Thanks