Solved

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
8
729 Views
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, hopefully...lol.  
0
Comment
Question by:pj1959
  • 4
  • 4
8 Comments
 

Author Comment

by:pj1959
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.
0
 
LVL 100

Expert Comment

by:mlmcc
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.

mlmcc
0
 

Author Comment

by:pj1959
ID: 11991960

employeeName
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!
0
 
LVL 100

Accepted Solution

by:
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

mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:pj1959
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!  
0
 
LVL 100

Expert Comment

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

mlmcc
0
 

Author Comment

by:pj1959
ID: 11993080
Oh, I got it ....now 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....
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11993610
Glad I could help

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
withoutString  challenge 40 178
method notes when mouse over in eclipse 5 82
countClumps  challenge 10 105
drawing animated level bar based on numbers 3 86
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

929 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

13 Experts available now in Live!

Get 1:1 Help Now