Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assignment Pseudocode
- Print Main Menu
- Promt user to select options
- If option “A” selected
- Function set variable PoR == request input user
- Print “Is it a pet? (Yes)/(No) if wild animal”
- If PoR == “Yes”
- Open csv file ‘NEW A DATA PETS’ store data
- If PoR == “No”
- Open csv file ‘NEW A Wild Animals’ store data
- If option “B” selected
- Function set variable Number == request user input
- Print ‘Enter the animals sanctuary identification’
- Then open csv file ‘A DATA PETS’
- Print “Task2-B”
- If “Sanctuary Identification” == Number
- Read csv file to view data
- If option ”C” selected
- read csv file ‘CWK A TREATMENT’
- if option “I” selected
- read csv file ‘CWK A DATA PETS’
- set variable ID = request user input
- Print “Enter the Sanctuary Identification of animal which you want to change”
- Print “Enter the Microchip Number”
- For row List
- If ID == row [0]
- Row[5] = num
- Open csv file ‘CWK DATA PETS’
- Write new data to csv
- Set variable Typeofanimal = request user input
- Print “Is it a pet? (1),or a wild animal? (2)”
- If Typeofanimal == “1”
- Read csv file
- ID = request user input
- Date = request user input
- Store data to csv file
- If option “J” selected
- While option != “J”
- Exit program.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement