Click here to Skip to main content
14,973,417 members

AmitGajjar - Professional Profile



Summary

    Blog RSS
28,837
Author
14,804
Authority
879
Debator
506
Editor
74
Enquirer
2,537
Organiser
3,353
Participant
No Biography provided

 

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralAre you here? Pin
AmitGajjar5-Sep-12 19:03
professionalAmitGajjar5-Sep-12 19:03 
Generalcode helping Pin
helpneedin10-Oct-12 18:42
Memberhelpneedin10-Oct-12 18:42 
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
GeneralRe: code helping Pin
AmitGajjar10-Oct-12 18:51
professionalAmitGajjar10-Oct-12 18:51 
GeneralRe: Are you here? Pin
Sahil sharma15-Oct-12 7:21
MemberSahil sharma15-Oct-12 7:21 
GeneralRe: Are you here? Pin
AmitGajjar15-Oct-12 18:53
professionalAmitGajjar15-Oct-12 18:53 
GeneralRe: Are you here? Pin
Sahil sharma21-Oct-12 19:24
MemberSahil sharma21-Oct-12 19:24 
GeneralRe: Are you here? Pin
Sahil sharma23-Oct-12 19:04
MemberSahil sharma23-Oct-12 19:04 
GeneralRe: Are you here? Pin
AmitGajjar23-Oct-12 19:15
professionalAmitGajjar23-Oct-12 19:15 
GeneralRe: Are you here? Pin
Sahil sharma25-Oct-12 5:16
MemberSahil sharma25-Oct-12 5:16 
GeneralRe: Are you here? Pin
AmitGajjar25-Oct-12 6:06
professionalAmitGajjar25-Oct-12 6:06 
GeneralRe: Are you here? Pin
Sahil sharma25-Oct-12 20:18
MemberSahil sharma25-Oct-12 20:18 
GeneralRe: Are you here? Pin
AmitGajjar25-Oct-12 22:02
professionalAmitGajjar25-Oct-12 22:02 
GeneralRe: Are you here? Pin
RagTopMan13-Jul-15 13:36
MemberRagTopMan13-Jul-15 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.