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
Words like "free" or "percent off" will not only trigger spam filters for your email, but will also ___________
weeeeeb [17]

Answer:

eliminasnados

Explanation:

6 0
3 years ago
what is the least expensive way to connect five computers using a wired network to a router that has only four network ports?
ExtremeBDS [4]

Answer: Get wifi.

Explanation: Get wifi.

5 0
2 years ago
Which for loop syntax is correct?
Ugo [173]

Answer:

C

Explanation:

3 0
2 years ago
The laser printer in your accounting department is printing faded prints that are getting lighter over time.
algol [13]

Answer:

Option D is correct.

Explanation:

The laser printer well into the finance department of the user publishes blurred images, which are becoming thinner across the time. The paper picking rollers for the fading prints are carried.

  • Option A is not correct because the following option is not related to the faded prints through the laser printer.
  • Option B is not correct because 'fuser' is the Linux command and it is not related to the temperature.
  • Option C is not correct because when the toner is low then it missed the prints.
8 0
4 years ago
Which statement about the Paste Link option is true?
zaharov [31]
A statement that is true for the Paste Link option is that you always need the source file to make automatic  updates in the linked document. All info in the linked document is based on the source file so it is an absolute necessity.
7 0
4 years ago
Other questions:
  • Suppose you want to delete an existing file from within Word. What would you do? A. Click on the File button, choose Recent, ope
    9·1 answer
  • You can use a(n) ____ to visually separate related controls from other controls on the form.
    8·1 answer
  • Communications technology and the Internet can be used to reduce the time and costs involved in disseminating financial statemen
    14·1 answer
  • Complete the below function which dynamically allocates space to a 3d array of doubles, initializes all values to 0, and returns
    8·1 answer
  • Write a MASM program to calculate Fibonacci numbers:
    10·1 answer
  • What is the syntax of an of if statement
    13·1 answer
  • A teacher wants to check the typing proficiency of five students. She gives all of them the same passage to type. Which student
    11·1 answer
  • Upang mas maging maganda ang larawang ini-edit, dapat isaalang-alang ang tatlong mahahalagang elemento. Ano-ano ang mga ito?​
    6·1 answer
  • Please can somebody help me! i’m really stuck on this question
    9·1 answer
  • Write an SQL statement to show the sum of SubTotal for each customer. List CustomerID, LastName, FirstName, Phone, and the calcu
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!