Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
811 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 101

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 101

Accepted Solution

by:
mlmcc earned 500 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
 

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 101

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 101

Expert Comment

by:mlmcc
ID: 11993610
Glad I could help

mlmcc
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

876 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