Purchase Solution

Program test data and fields for library items records

Not what you're looking for?

Ask Custom Question

[a] 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.

[b] 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.

Attachments
Purchase this Solution

Solution Summary

Solution briefly explains the process of finding a good set of test data in the given case. For addressing the second question, it considers two cases - "keeping track of loaned items" and "records of items that can be loaned".

Solution Preview

[a] 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 ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.