Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN
Pages: 4
Words: 971

Given staff idwhen displaying information pertaining badger

Introduction

_,-='=- =- -`"--.__,,.._ ,-;// / - - - -= - "=.

,'/// - - - = - ==-=\`.

`>>>

The park is overseen by Jonny Zookeeper who knows every badger by name. However, Jonny has been asked to rehome two hundred extra badgers next month. He is worried that he will not be able to keep track of all the new badgers and extra staff he will need in addition to the badgers he already has.

Specification

Requirements

Your system must be able to store the following information about badgers in the zoo:

  • Badger ID

  • Sex (M or F)

  • Month of birth

  • First Name

  • Staff ID

Your system must allow the following operations:

  • Add/delete user

  • Search for and display a staff member, given a Staff ID

When displaying information pertaining to a badger, the age and stripiness of that badger should also be displayed. The stripiness of a badger is calculated by:

When displaying information pertaining to a member of staff, the number of years of service and the current annual salary should also be displayed.

All staff members’ salaries increase by £200 per year for each year of service.

  • All name fields have a maximum size of 64 chars.

  • Fields representing months are whole numbers in the range 1 to 12. (1=January…12=December).

Other notes and hints:

  • Input and output should be to/from the terminal console.

  • Think about how big values can be. Think about how much storage you may need to store the various pieces of information in the staff and badger records. Make sure you allocate enough memory but try not to be wasteful in the memory that you allocate.

  • In the badger records, the “Staff ID of assigned park keeper” is for reference only. It does not need to reference the list of staff currently in the system. However, it does need to be of the correct format (pXXXXXXX).

Submission

  • For each function (“add”, “delete”, “search” and “list”) highlight the test results in your report.

Marking scheme

The specification for the assignment gives you lots of freedom to choose which aspect to focus on. In particular, we aim to give comparative results similar marks.

  • (d) Good test results (10%).

Learning Outcomes

Copyright © 2009-2023 UrgentHomework.com, All right reserved.