 |
Post a message if you are here.
Thanks
-Amit Gajjar (MinterProject)
modified 3-Oct-12 4:01am.
|
|
|
|
 |
Write a program that prompts the user for two numbers then points. The sum The difference The product the average the distance (absolute value of the difference) the maximum (the larger of the two) the minimum (the smaller of the two) To do so implement a class public class fair { Constructs a pair. @param aFirst the first value of the pair. @param Asecond the second value of the pair. public Pair(double aFirst, double aSecond){. . .} /** Computes the sum of the values of this pair. @return the sum of the first and second values */ public double getSum() {. . .} ... } INSTRUCTIONS The PairTest.java program should use bullet proof input to prompt and collect the two values for the number pair from the user, create a number pair object using these values, display the initial values and should output
it says to create an additional DataSet and then feed it four random double values between 0 and 10. This should be int values instead of double since the DataSet takes int values.
Part 2
Declare a set that computes the sum and average of the sequence of the integers.
Supply methods
void addValue (int x)
int getsum()
double getAverage()
Write a test program DataSetTester that calls addValue four times and prints the expected and acutal results.
The DataSetTest.java program should display the sum, average, and min and max values for the DataSet. Note that the DataSet itself does not remember what values were passed to it so your program should display each value as it is added to the set so that the program accuracy can be visually confirmed by the output.
Declare a class PairTester that constructs a Pair object, invokes irs methods,
and prints that computes the largest and smallest values in a sequence of numbers.
Supply methods
void addValue(int x)
int getSum90 ()
double getAverage ()
Write a test program DataSetTester that calls addValue four times and prints the expected and actual results.
The DataSetTest.java program should display the sum, average, and min and max values for the DataSet. Note that the DataSet itself does not remember what values were passed to it so your program should display each value as it is added to the set so that the program accuracy can be visually confirmed by the output.
In addition to the basic functionality, the driver (DataSetTest) should also create a second DataSet object and load it with 4 random float values between 1 and 10 inclusive. Be sure to display the 4 values in the output as well as the calculated measures
|
|
|
|
 |
Please post question in QA section so more people can help you.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
 |
HI Amit,
I want to use paging in my grid view in window application in c# i am using user code but there is a problem in this line code.can u help me in this .I got the this one error
Value cannot be null.
Parameter name: source.
I am waiting for your answer
var result = DataSource.AsEnumerable().Where((s, k) => (k >= startIndex && k < (startIndex + PageSize)));
Thanks in Advance.
|
|
|
|
 |
Hi sahil,
i suggest you to post this question in QA section to get it's solution quicker.
here people will not know you have query.
Thanks
-Amit
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
 |
Hi Amit ,
Thanks for your help your code helps me alot . Thanks for your time.
Thanks
Sahil
|
|
|
|
 |
Hi Amit,
Can u help me in this matter I have made a window application its all work is fine but there is one problem when I change the system resolution then my page all go to the right side and a user can not see it
Thanks in Advance
Sahil
|
|
|
|
 |
Use table to place your controls.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
 |
Hi Amit ,
Here is I got some problem in paging when I have used 15 record on per page but there is problem in that when I have 15 Record then this gridview show next page but there is only 15 records how can i manage it
Thanks in Advance
Sahil
|
|
|
|
 |
Dear sahil,
If you post this question in QA section then you may get more answers. so please post this question in question and answer section.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
 |
Hi Amit,
I need your help I want to implemented sorting in gridview and also use paging which code u given me i want to sort all record from database on header click in window application.can u please give me some code for this
Thanks in advance,
Sahil
|
|
|
|
 |
Ask question @ Here[^]
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|