Google Answers Logo
View Question
 
Q: Programming Research ( Answered,   1 Comment )
Question  
Subject: Programming Research
Category: Computers > Programming
Asked by: ykgreene-ga
List Price: $6.00
Posted: 06 May 2004 07:35 PDT
Expires: 05 Jun 2004 07:35 PDT
Question ID: 342034
What types of values do the following modules/methods return, and what
type of arguments do they take?

a)     addThreeNumbers
b)     findNameByID
c)     convertCelsiusToFahrenheit
d)     averageTwoNumbers

Request for Question Clarification by josh_g-ga on 06 May 2004 07:40 PDT
What programming language are you asking about?
Answer  
Subject: Re: Programming Research
Answered By: gopalkamat-ga on 06 May 2004 11:15 PDT
 
These four modules do not seem to be a part of any programming
language's API.  Is this a generic question?  Or are you asking about
these modules with regards to a common programming language such as C,
or Java?
Please assume the data type "double" below means a large (16 or 32 bit
or maybe even 64 bit) floating point data type.  In that case, please
substitute "double" with the appropriate double-sized floating type
word.
Similarly, the data type "string" means a data type that can hold text
strings.  It can be a character pointer (char *) in C, or String in
Java, or any such similar data type.

addThreeNumbers...
Returns: double
Takes: Three arguments that are all double
Syntax: double addThreeNumbers(double a, double b, double c)

findNameByID...
Returns: string
Takes: one argument type string
Syntax: string findNameByID (string s)

convertCelsiusToFahrenheit...
Returns: double
Takes: one argument type double
Syntax: double convertCelsiusToFahrenheit (double t)

averageTwoNumbers...
Returns: double
Takes: Two arguments, both of type double
Syntax: double averageTwoNumbers (double a, double b)

Please feel free to request a clarification regarding this answer, if
necessary.  I hope I have provided the answer you're looking for.

regards,
gopalkamat-ga
Comments  
Subject: Re: Programming Research
From: kkargi-ga on 06 May 2004 07:52 PDT
 
a) (return)int        arguments  (int,int,int)
b) (return)string     arguments  (int)
c) (return)double     arguments  (double)
d) (return)double     arguments  (int,int)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy