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
kenny6666 [7]
3 years ago
11

Function Integer cube(Integer num) Return num * num * num End Function Write a main module that contains a statement that passes

the value 4 to this function and assigns its return value to the variable result. Write a statement that calls the display module and passes these variables to it.
Computers and Technology
1 answer:
Klio2033 [76]3 years ago
5 0

Answer:

#include <iostream>

using namespace std;

int cube(int num)//function cube..

{

   return num*num*num;

}

int main() {

   int result=cube(4);//result stores the value of cube(4).

   cout<<result;//displaying it to the screen.

return 0;

}

Explanation:

The above code is in C++ language.The function cube is passed with value 4 and the result of it is stored in the variable result of integer type.Then the result is displayed using the cout. Which is used to print the statement to the output screen.

You might be interested in
Which of the following expressions would you use to test if a char variable named choice is equal to "y" or "Y"? a. choice.tolow
11111nata11111 [884]

Answer:

choice.tolower == "y"

Explanation:

The tolower method is a string method in c# that converts all characters in a string to lowercase characters(if they are not already lowercase letters) except special symbols which remain the same example "#" symbol.

The tolower method does not take any arguments, therefore to use it, we simply chain it to our string variable(dot notation) and use a comparison operator "==" that evaluates to true or false based on whether the values returned on both sides are equal.

6 0
3 years ago
What do “phone-copying” systems allow investigators to do?
Anastasy [175]

Answer:

it allows them to be able to look at the recent things people done on it . i believe

6 0
3 years ago
Javier inherited rights to his grandfather’s writing, which was protected by copyright law that expired a few years later. What
Yanka [14]

Answer:

C. The copyright is classified differently.

Explanation:

Since it is a writing and not a business or a car brand or a computer company like that high stuff that is very important it wouldn't effect you since you are family and since he left you rights to the copyright you can re copyright it after  it is expired with enough proof that he gave you rights.

3 0
2 years ago
7.5 code practice edhesive plssss
vredina [299]

So your parent hasn't joined you on the Brainly express to Achievement-ville. We'll get them on board. Parents are busy people, but you can be the boss and remind them. Remind them how Brainly boosts you with expert knowledge. Remind them that tons of students already get grade upgrades with Brainly Plus. Remind your parent of the power they have to raise you to your full potential. We think they would agree. You deserve every education advantage.

6 0
2 years ago
Read 2 more answers
Choose three statements that compare the reactant and the products in the chemical reaction that forms elephant toothpaste.Athey
den301095 [7]

Answer:

The answer is A

Explanation:

7 0
3 years ago
Other questions:
  • Can anyone help me with this coding?
    8·1 answer
  • What type of device can be used to block unwanted traffic initiated from the internet and can also restrict internet access from
    6·1 answer
  • The number of colors available in a graphic is referred to as color what?
    13·1 answer
  • Joe runs a handyman service. He enjoys writing and keeping up on the latest trends. He wants to share this information with his
    14·1 answer
  • For safety, the lights on your vehicle must be in good working condition. Which statement about
    8·2 answers
  • George enters the types of gases and the amount of gases emitted in two columns of an Excel sheet. Based on this data he creates
    6·1 answer
  • Byte pair encoding is a data encoding technique. The encoding algorithm looks for pairs of characters that appear in the string
    10·1 answer
  • ravi met few peoples in a party and was mixing up well those wearing expensives clothing and fair complexion . which factors are
    9·1 answer
  • __________ is a computer tool for evaluating the risk of exposure to wildfires.
    8·2 answers
  • Configuring a firewall to ignore all incoming packets that request access to a specific port is known as ____.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!