122 lab week 5


What You Will Do In Your Lab

Look at page 144, programming problem #10. We'll be adapting this problem in the following ways:
  1. Don't worry about table formatting.
  2. write a function to get each employee's information. This function should do all the prompting and reading information for a single employee, and be called from main 3 times.
  3. Then print out the data in the format shown (except spacing). This can be done from inside the main function.
Hints: What kind of parameters will your function use? Also, don't forget you may want to use the String input controls discussed in class today. Finally, you can write the code for the function from within main, initially, and later move it to a function if you like.