Question: 1. Write a program that takes a person's details (name, age and a city), and writes to a file (persons_txt) using a loop repeatedly. The

1. Write a program that takes a person's details (name, age and a city), and writes to a file (persons_txt) using a loop repeatedly. The program terminates on entering any key by the user, except on (Y or y) key. Sample output of the first run of the program is shown below: Enter name: John Enter age: 20 Enter city: Sydney Data saved: John 20 Sydney Press (Y or y) to add another person, or any key to exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
