Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
787 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

704 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