1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Aleonysh [2.5K]
3 years ago
10

How do I use files and functions in programming?

Computers and Technology
1 answer:
maw [93]3 years ago
3 0

answer:

1.The program comes to a line of code containing a "function call".

2.The program enters the function (starts at the first line in the function code).

3.All instructions inside of the function are executed from top to bottom.

4.The program leaves the function and goes back to where it started from.

5.Any data computed and RETURNED by the function is used in place of the function in the original line of code.

You might be interested in
According to "When Is a Planet Not a Planet?" scientists determined that Pluto was not a planet. What were the causes that led t
Murrr4er [49]

Answer:

Hi there!

The correct answer will be: C. Pluto’s orbit crossed over the orbit of another planet.

Explanation:

When determining whether a planet is planet the IAU stated the planet must (a) is in orbit around the Sun, (b) has sufficient mass for its self-gravity to overcome rigid body forces so that it assumes a hydro-static equilibrium (nearly round) shape, and (c) has cleared the neighborhood around its orbit. For poor Pluto's case he did not clear part (c).

8 0
3 years ago
At one college, the tuition for a full-time student is $8,000 per semester. It has been announced that the tuition will increase
inn [45]

Answer:

#include <iostream>

using namespace std;

 

int main () {

  // for loop execution

  int semester_fees=8000;

  int b=1;

  cout<<"there are 5 years or 10 semester fees breakdown is given below"<<endl;

  for( int a = 1; a <=5; a++ ) {

     semester_fees = semester_fees*1.03;

     cout<<"Semester fees for each of semester"<<b++<<"and"<<b++<<"is:$"<<semester_fees<<endl;

     

  }

 

  return 0;

}

Explanation:

code is in c++ language

Fees is incremented yearly and i have considered only two semester per year

3 0
3 years ago
A drunkard in a grid of streets randomly picks one of four directions and stumbles to the next intersection, then again randomly
sergiy2304 [10]

Answer:

its c so its c

Explanation:

6 0
3 years ago
The "odd/even factorial" of a positive integer n is represented as n and is defined non-recursively as: (n)(n-2)(n-4)...(4)(2) i
adoni [48]

Answer:

The function definition to this question can be described as follows:

long oddevenfact(int y) //defining a method oddevenfact

{

//defining conditional statement    

if (y>2) //check value is greater then 2

{

return( oddevenfact(y-2) * (long) y); //return value

}

else //else

{

return((long) y); //return its value

}

}

Explanation:

The description of the above method definition can be described as follows:

  • In the above method definition a long method "oddevenfact" is declared, which accepts an integer variable "y" as its arguments, and return value as long.
  • Inside the method, a conditional statement is used, in if the block, it checks a value, that is value is greater then 2, and inside the block, a recursive function is used, that calculates its factor, and returns its value in long type.  
  • If the condition is not true, it will go to else block and return in long type value.
3 0
3 years ago
Sasha has just gotten a new job in a nearby city. After
almond37 [142]

where is the question??

Explanation:

7 0
3 years ago
Other questions:
  • What is last mile in VOIP
    13·1 answer
  • Which of the following is a valid HTML tag?<br> Oo<br><br> &gt;hl
    15·1 answer
  • What can be designed to create annoying glitches or destoey data?...
    13·2 answers
  • Which is the main reason why IT professionals need to pursue continuing education and self-directed learning?
    6·2 answers
  • For which is a chart Legend used
    5·2 answers
  • Where is the worlds biggest cookie​
    7·2 answers
  • Post as a reply your example of "data, which is processed into information" case - examples should not necessarily be related to
    13·1 answer
  • Which do switches create?<br> Networks<br> Wireless access points<br> Routes<br> Collision domains
    5·1 answer
  • The calculation of GDP is the sum of: Consumption, Investment, Government Spending, and Net Exports. What is the simple formula
    7·1 answer
  • g Write a program that allows a user to input any text in your program. Using the tools that we have discussed, your program sho
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!