Suggest a good set of test data to use for a program that gives an employee $50 bonus check if the employee has produced more than 1,000 items in a week.

Posted on 2004-09-04
Last Modified: 2012-08-13
I am learning about programming and do not quite understand it fully yet.  I would appreciated it you could explain it to me how to set a test data for the question above.  Once I see how this is done I should be on the right track,  
Question by:pj1959
  • 4
  • 4

Author Comment

ID: 11979775
this is for Programming Logic and Design and need to set up a test data.......

I have read most of the viewing questions....I am really amazed what all is involved in programming....I am taking programming because it is one of my requirement.  I was told it will get easier but it looks so hard!  :)  As I said before maybe once I see how to set test data for the question above, I will be able to understand it better.
LVL 100

Expert Comment

ID: 11985894
Is this perhaps a homework assignment?  If so EE experts cannot do it for you.  Please show what you have come up with thus far and we can help you complete it.

Consider boundary conditions, illogical values, no values, etc.


Author Comment

ID: 11991960

Bonus $50 if Items are >1000

This is what I came up with but I know it doesn't seem much.  Like I said, I needed an example to have a better understanding about test data.  All I know is about variable name, 6 logic steps, flowchart and pseudocode.  It would have been easier if I had one example from the question and be able to see exactly how it is set up.  

By the way, I wasn't asking for an answer or help with my homework.  I wanted a general idea exactly what I was suppose to be looking for or exactly what they mean by suggest a good set of test data for this problem.  What I was asking if you could show me another problem similar like this to be able to know what they mean by a good set of test data for any problems.  I understand that you can't do it for me which I have no problem with that.  :)  I understand if you do not want to help, I will cancel this question and figure it out somehow.  Thx for your time and help!
LVL 100

Accepted Solution

mlmcc earned 125 total points
ID: 11992777
I tried to help with my suggestions on types of data to look at
Since this isn't homework I will be happy to help.

There are 2 basic ways to find good test data.
First is to look at the requirements and develop a set of data.
Second is to know something about the code and choose data baed on the code.

Data to test with
Boundary conditions
   Emp1  999  - result NO BONUS
   Emp2 1000 - result NO BONUS
   Emp3 1001 - result $50 BONUS

Illogical or possibly illegal values
   Emp4  -1      - result  Warning for bad data
   Emp5  -999  - result  Warning for bad data
   Emp6 -1000 - result  Warning for bad data
   Emp7 -1001 - result  Warning for bad data

No values
   Emp8          - result Waiting for sales
   100             - result - May accept as the name

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails


Author Comment

ID: 11993039
Thx for replying back....if I understand correctly in what you are trying to say is....

Emp1-3 -  employee numbers which you used is to identify each employee name

999-1001 - is a employees code or ID number

emp1 and 2 did not received the bonus since they did not produced more than 1000 items per week

Am I correct?  I think I understand it now and really appreciated your help therefore you will received the point!  Again thx!  
LVL 100

Expert Comment

ID: 11993068
Emp1-7 Employee name or id
999-1001 -Sales for the period


Author Comment

ID: 11993080
Oh, I got it it makes sense...didn't darn on me about being the amount of items per week  Thank you so much for your time and help....
LVL 100

Expert Comment

ID: 11993610
Glad I could help


Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
post4 challenge 28 83
factory design pattern vs abstract factoy design pattern 2 84
wordsFront challenge 8 70
copyEvens challenge 6 64
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now