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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!