Write a program that asks the user to input his/ her name, age and address then appends them on a text file named “employee.txt”.
Validation:
(First run)
Enter your name: James Bugrot
Enter your age: 16
Enter your address: Purok Tumpok Sitio Pahu, La Carlota City
Content of employee.txt
James Bugrot^16^Purok Tumpok Sitio Pahu, La Carlota City
------------------------------------------------------------------------------------------------------
(Second run)
Enter your name: Juan Dela Ugly
Enter your age: 18
Enter your address: Bangga Mayor, San Enrique
Content of employee.txt
James Bugrot^16^Purok Tumpok Sitio Pahu, La Carlota City
Juan Dela Ugly^18^ Bangga Mayor, San Enrique
------------------------------------------------------------------------------------------------------
(Third run)
Enter your name: Mr. Yuso
Enter your age: 20
Enter your address: Unknown
Content of employee.txt
James Bugrot^16^Purok Tumpok Sitio Pahu, La Carlota City
Juan Dela Ugly^18^ Bangga Mayor, San Enrique
Mr. Yuso^20^Unknown
Well said. If you have an error somewhere in your program, and you post that, people can help you. The way you have it written now makes it sound like you want someone to write a program for you, not give you pointers. Having someone else write code for you won't get you very far in anything.