Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

Discuss and suggest a good set of test data for a program that gives an employee a $50

Computer Science Sep 15, 2020

Discuss and suggest a good set of test data for a program that gives an employee a $50.00 bonus cheque if the employee has produced more than 1,000 items in a week.

Assume that a library keeps a file with data about its collection, one record for each item the library loans out. Name at least eight(8) fields that might be stored for each record.

Expert Solution

 Number of items produced by employee in a week could be less than, equal to, or more than 1000. We need to give bonus only when it is more than 1000. We can express this in our program as --

if (itemsproduced > 1000)
bonus = 50;
else
bonus = 0;

So, we need to partition our input (number of items produced) into two sets : "> 1000" and "<= 1000". One value from each set would be sufficient to check the working of above logic - for example 1000 and 1001.

[b] As far as keeping track of loaned items is concerned, minimal information identifying the loaned item, loan duration, to whom it has been loaned - is sufficient.

If our focus is records of items that can be loaned - we need to keep all the relevant item information that can be queried. In case we consider that library allows queries on - to whom item has been issued, when it will be back, then aforementioned loaned items information will also be useful from these records point of view. One possible record could contain fields like -

1. Type of item : book, journal, CD/DVD etc.
2. Title/Name of item
3. Author(s)/Editor(s) of item
4. Publisher of item
5. Edition / Version information
6. Identification code of item (as per library coding scheme)
7. Identity (rollo no of student, employee number of staff, id of institute etc.) of loan taker.
8. Name of person/institute getting the item is loaned out/issued.
9. Date when it is issued
10. Date when item is expected back in library.

Archived Solution
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment