Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-27-2005, 01:46 PM   #1 (permalink)
ibexpiotr's Avatar
 
True Techie

Join Date: Nov 2003

Posts: 197

ibexpiotr is on a distinguished road

Send a message via AIM to ibexpiotr
Default loop

hi.
as a part of my hw, i am to write a program, allowing a user to input employees name and salery.
i was provided with 2 classes to use. ccc_time and ccc_empl

.program needs to create an employee object for each employee.
and i cant ask the user at the beginning how many employees there will be
ibexpiotr is offline  
Old 01-28-2005, 02:59 AM   #2 (permalink)
 
True Techie

Join Date: Sep 2004

Posts: 156

ZoneFire

Default

maybe you can try using a questions at the beginning.
then you prompt the user to key in options for adding employee details or other stuff.
i think this might work but maybe someone can give better solutions.
__________________
The important thing is not to stop questioning...
Albert Einstein
ZoneFire is offline  
Old 01-28-2005, 11:17 AM   #3 (permalink)
 
Ultra Techie

Join Date: Sep 2003

Location: Bamberg, Germany

Posts: 549

Iron_Cross

Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

What language does this need to be done in? Because if it's something like C# or Java then it would be a sinch...it'd also be pretty easy in C++ as well...So let us know which language.
__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline  
Old 01-28-2005, 12:51 PM   #4 (permalink)
ibexpiotr's Avatar
 
True Techie

Join Date: Nov 2003

Posts: 197

ibexpiotr is on a distinguished road

Send a message via AIM to ibexpiotr
Default

its aight.. i got it..
i didnt fully understand the task i was given..

i had to use a simple loop..that at the end asks the user if he wants to continue or not.. and within the loop i had to ask the user for their name. salary time in time out..calculate the difference. and output the results..and all over again..
ibexpiotr is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On