Home / Expert Answers / Computer Science / create-a-file-in-your-project-named-employees-txt-with-the-following-data-make-sure-to-include-a-ne-pa142

(Solved): Create a file in your project named employees.txt with the following data (make sure to include a ne ...



Create a file in your project named employees.txt with the following data (make sure to include a newline after the final entry): 123 Bob Smith 345 Anne Jones 256 Carol Lee 845 Steve Anderson 132 Jill Thompson . Your main function should have three options: Lookup an employee, add employee, or quit. o If the user chooses to lookup an employee, call a function named lookupEmployee. This function should ask the user to enter an id number. If the file contains an employee with the given id number, print out their name. Otherwise, print "Employee not found" . If the user chooses to add an employee, call a function named addEmployee. This function should ask the user for a new id, first name, and last name. Append this data to the end of the file (hint: Make sure to add a newline!) If the user decides to quit, print the whole file out and end the program. 0



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe