Question: Use python write Thank you so much! pets.txt dog alyson 5.5 cat chester 1.5 cat felice 16 dog jesse 14 cat merlin 5 cat percy
Use python write
Thank you so much!

pets.txt dog alyson 5.5 cat chester 1.5 cat felice 16 dog jesse 14 cat merlin 5 cat percy 12 cat puppet 18
to_transfer.txt
cat merlin 5 cat percy 12
intake.txt
bird joe 3 cat sylvester 4.5
the website is https://www2.cs.arizona.edu/classes/cs110/spring17/homework.shtml
Welcome to animal shelter management software version 1.0 Type one of the following options adopt a pet adopt intake add more animals to the shelter list. display all adoptable pets quit exit the program save the current data transfer transfer pets to another shelter option? list animal type? all alyson dog') chester 1.5 cat') felice 16.0 cat') 14.0 dog') merlin cat') 12.0 cat') Percy, 18.0 cat') Type one of the following options adopt adopt a pet intake add more animals to the shelter list. display all adoptable pets quit exit the program save the current data transfer transfer pets to another shelter option? transfer file name to transfer. txt one of the following options adopt dopt a pet intake add more animals to the shelter list. display all adoptable pets quit exit the program save the current data transfer transfer pets to another shelter option? list s or all? cat cats chester cat') felice 16.0 cat') merlin 5.0 cat') 12.0 cat') percy 18.0 puppet cat') one of the following options adopt dopt a pet intake add more animals to the shelter list display all adoptable pets quit exit the program. save the current data Save transfer transfer pets to another shelter option? quit 5 pets currently in the shelter adopted O transferred This program focuses on using lists that change size and also demonstrates a type of program that maintains data in manner useful in supporting typical volunteer organizations. Turn in a file named anima shelter .py on the Homework section of the course web site. Program dog alyson 5.5 Description: cat Chester 1.5 cat felice 16 In this assignment you will DOG j esse 14 write a program that keeps cat merLIN 5 track of animals at an cat percy 12 animal shelter. at PUPPET 18 parrot sue 2.3 The hope is that all an at a shelter will be adopted soon after entering. However, quick adoptions don't always happen. To speed up adoption and to avoid overcrowding, a shelter may transfer animals to another shelter. When your program starts, it will read from three input files. Each file contains information about pets in the format of the file shown above. The file pets.txt contains the pets currently at the shelter, transferred txt contains the pets that have been transferred from this shelter to another and adopted.txt contains the pets that have been adopted from this shelter. The contents of the files will be in alphabetical order by pet name. Specification of options: adopt: When the user types this option, the program should prompt for the type of pet and then prompt for the pet's name as shown in the sample output. This pet should then be removed from the shelter and added to the list of pets that have been adopted. If a pet of this type and name does not exist, the program should print out a not found message as shown in the sample output. intake: When the user types this option, the program should prompt the user for a file name as shown in the sample output. This file will be in the same format as the files read in at the beginning of the program an also be alphabetized by name. Your program should add all of the pets from this file to the shelter list, making sure to maintain the sorted order of the shelter list. list: When the user types this option, the program should prompt the user for a type of pet (cat, dog, hamster, etc). The program should then display a list of all pets at the shelter of that type. If the user enters "all" instead of a specific type, all pets should be displayed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
