Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. Assignment Pseudocode
  2. Print Main Menu
  3. Promt user to select options
  4. If option “A” selected
  5. Function set variable PoR == request input user
  6. Print “Is it a pet? (Yes)/(No) if wild animal”
  7. If PoR == “Yes”
  8. Open csv file ‘NEW A DATA PETS’ store data
  9. If PoR == “No”
  10. Open csv file ‘NEW A Wild Animals’ store data
  11.  
  12. If option “B” selected
  13. Function set variable Number == request user input
  14. Print ‘Enter the animals sanctuary identification’
  15. Then open csv file ‘A DATA PETS’
  16. Print “Task2-B”
  17. If “Sanctuary Identification” == Number
  18. Read csv file to view data
  19.  
  20. If option ”C” selected
  21. read csv file ‘CWK A TREATMENT’
  22.  
  23. if option “I” selected
  24. read csv file ‘CWK A DATA PETS’
  25. set variable ID = request user input
  26. Print “Enter the Sanctuary Identification of animal which you want to change”
  27. Print “Enter the Microchip Number”
  28. For row List
  29. If ID == row [0]
  30. Row[5] = num
  31. Open csv file ‘CWK DATA PETS’
  32. Write new data to csv
  33. Set variable Typeofanimal = request user input
  34. Print “Is it a pet? (1),or a wild animal? (2)”
  35. If Typeofanimal == “1”
  36. Read csv file
  37. ID = request user input
  38. Date = request user input
  39. Store data to csv file
  40.  
  41. If option “J” selected
  42. While option != “J”
  43. Exit program.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement