computer

construct function prototypes for descriptions given below:
1) Rarb() takes no arguments and has no return value.
2) Mains() takes a float argument and returns an int.
3) San() takes two double arguments and returns a double.
4) Sum() takes an int array and an int value and returns a long result.
5) Check() takes a string argument and returns an int.

  1. 👍 3
  2. 👎 0
  3. 👁 589
  1. I assume you're working on C or C++.

    1) Rarb() takes no arguments and has no return value.

    void Rarb();
    // void is the return value: none

    2) Mains() takes a float argument and returns an int.

    int Mains(float x);

    You can do the rest in a similar way.

    1. 👍 4
    2. 👎 2
  2. pls tell rest of us too bcs i don't know very much about this

    1. 👍 3
    2. 👎 0
  3. You'll need to review the notes and give an attempt.
    By giving the answers coming from someone else, you will not be able to pass your exam, or even worse, be able to work independently if you ever get hired to do the work.
    Review the work and post your attempted answers. I'll be more than pleased to help correct them.

    Here are some more hints:

    If you are working on C, then the return types can only be the primitives, such as,
    int, float, double, char, short, long, etc. Same goes for the arguments.

    In C, string arguments are represented by an array of characters, for example, a method returning an int with two arguments, an int and a string would be written as:
    int main(int argc, char* argv[]);

    1. 👍 0
    2. 👎 1
  4. So how can I check my answer

    1. 👍 1
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. Math

    3. At the end of a dock, high tide of 14 m is recorded at 9:00 a.m. Low tide of 6 m is recorded at 3:00 p.m. A sinusoidal function can model the water depth versus time. a) Construct a model for the water depth using a cosine

    asked by Peter on December 18, 2016
  2. computer science

    9.10: Reverse Array Write a function that accepts an int array and the array’s size as arguments. The function should create a copy of the array, except that the element values should be reversed in the copy. The function should

    asked by Cheryl on February 18, 2012
  3. Math

    Gary took a drive down to the beach and drove at a pace of 45 mph on the way there. The trip took him 3 hours. He drives the exact same route on the way back, but takes it slow so he can enjoy the sunset. If Gary's return trip

    asked by Jeana on August 2, 2015
  4. science

    Which option accurately describes scientific theories? (Select all that apply.) are testable questions that can be investigated through experimentation have developed from the arguments that have verified certain hypotheses are

    asked by Bri on October 31, 2018
  1. science

    Which option accurately describes scientific theories? (Select all that apply.) are descriptions of phenomena that can be observed to consistently happen over and over again are testable questions that can be investigated through

    asked by Bri on March 5, 2018
  2. Philosophy

    LOGIC and ARGUMENTS – the simple elements Arguments are Composed of THREE PARTS: 1) Premises = basic, commonly accepted reasons – the “why’s,” and “how’s.” 2) Inferences = reasoned “guesses” or based assertions

    asked by Lisa on May 15, 2013
  3. Government Help Please

    All of the following statements regarding the process through which the Supreme Court hears oral arguments are true EXCEPT 1) Justices begin hearing oral arguments in October and generally hear arguments until June. 2) After the

    asked by Anonymous on February 10, 2016
  4. Math

    A motorist makes a journey of 240 km from Singapore to Malacca to visit his inlaws at an average speed of x kilometers. On his return journey, his average speed is reduced by 6km/hour due to traffic. If the return journey takes 20

    asked by Elizabeth on December 10, 2012
  1. Computers

    Show what the final output of this function will be. The answer will be in the form x * Z - y Private Function F(x as Int, y As Int, z as Int) If (y = 1) then Return 2 Else Return x * Z - y + F(x-1,y-1, z) End If End Function

    asked by Dave on August 27, 2009
  2. algebra

    An airplane takes off from an airport and takes 6.5 hours to fly west (against the wind current) 2600 miles. The return trip (with the wind current) takes 5.2 hours. Find the airspeed and the wind speed.

    asked by McKenzie on February 27, 2014
  3. Algebra 1 Answer Evaluation

    The height of a soccer ball kicked from the ground can be approximated by the function h = =16t^2 + 64t, where he is the height in feet and t is the time in seconds. Find the time it takes for the ball to return to the ground. A:

    asked by Victoria on May 13, 2014
  4. Criminal Justice/Report Writing

    When a number of different witnesses provide descriptions of the suspect, it is considered: A. acceptable for speed and brevity to combine multiple descriptions into a composite description. B. good investigative tactics to

    asked by Pat on October 25, 2014

You can view more similar questions or ask a new question.