sncp88
31/03/2008, 00:08
arkdaşlar bir ödevim var.Yardımcı olursanız sevinirim.c veya c++ farketmez.
Assume that a lot of testing data is needed for an application.
In this homework, your task is to write a program which randomly generates testing data within
the specified ranges and parameters described below.
Data Name Min and Max Values Examples
Customer number Min 1, Max 9999 108
4563
Customer first name String length Min 5, Max 10 Hvjfw
Customer last name String length Min 5, Max 10 Qtmaegn
Transaction date Day : Min 1, Max 31
Month : Min 1, Max 12
Year : Min 2000, Max 2008
25/03/2007
Order definition String length Min 5, Max 15 Csmxjfhleiaw
Order amount Min 10, Max 990
Must be folds of 10 such as:
10, 20, 30, 40, etc.
Order unit String length Max 4 Randomly pick from this list:
“BOX”, “PCS”, “KG”, “LT”
Also, you should use the following counter parameters in your program:
Counter Parameter Counter Value
How many customers will be generated? Fixed 10
For each customer, how many transaction dates will be generated? Min 1, Max 5
For each transaction date, how many orders will be generated?
(each order will have different definition, unit, and amount)
Min 1, Max 4
• All Min, Max, and fixed constants should be defined by using #define statements.
• Actual values for parameters must be determined randomly within the given ranges.
• There will be no keyboard input to your program.
ödev ing verildiği için bende ing vermek zorunda kaldım..
Assume that a lot of testing data is needed for an application.
In this homework, your task is to write a program which randomly generates testing data within
the specified ranges and parameters described below.
Data Name Min and Max Values Examples
Customer number Min 1, Max 9999 108
4563
Customer first name String length Min 5, Max 10 Hvjfw
Customer last name String length Min 5, Max 10 Qtmaegn
Transaction date Day : Min 1, Max 31
Month : Min 1, Max 12
Year : Min 2000, Max 2008
25/03/2007
Order definition String length Min 5, Max 15 Csmxjfhleiaw
Order amount Min 10, Max 990
Must be folds of 10 such as:
10, 20, 30, 40, etc.
Order unit String length Max 4 Randomly pick from this list:
“BOX”, “PCS”, “KG”, “LT”
Also, you should use the following counter parameters in your program:
Counter Parameter Counter Value
How many customers will be generated? Fixed 10
For each customer, how many transaction dates will be generated? Min 1, Max 5
For each transaction date, how many orders will be generated?
(each order will have different definition, unit, and amount)
Min 1, Max 4
• All Min, Max, and fixed constants should be defined by using #define statements.
• Actual values for parameters must be determined randomly within the given ranges.
• There will be no keyboard input to your program.
ödev ing verildiği için bende ing vermek zorunda kaldım..