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

Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to

the power of the second parameter. Write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Computers and Technology
1 answer:
Mazyrski [523]3 years ago
6 0

Answer:

#include <iostream>

#include <math.h>

using namespace std;

int to_the_power_of(int first, int second){

   

   int result = pow(first, second);

   

   return result;

}

int main()

{

   int side;

  cout<<"Enter the side of cube: ";

  cin>>side;

 

  int volume = to_the_power_of(side, 3);

 

  cout<<"The volume is "<<volume<<endl;

 

  return 0;

}

Explanation:

include the library iostream and math.h for using the input/output instruction and pow() function.

create the main function and declare the variable.

then, print the message for asking to enter the value from user.

the enter value is then store in the variable using cin instruction.

then, call the function with two parameters. program control move to the define function and  calculate the first parameter raised to the power of the second parameter.

then return the result to the main function and finally print the result.

You might be interested in
. Find the supplements of : 150' and 70°​
suter [353]
30 is the supplement of 150
7 0
3 years ago
____ elements are arranged to show which tasks must be completed before subsequent dependent tasks can begin.
Masteriza [31]
The answer is Gantt Chart
5 0
4 years ago
What is one distinguishing feature of Italian opera buffa in comparison to comic opera of other countries?
vodka [1.7K]

Answer:

It is sung throughout.

Explanation:

5 0
3 years ago
Hola, alguien me puede ayudar¡¡¡¡¡¡¡¡¡¡¡¡
WARRIOR [948]
Hola<span>, </span>Alguien me<span> podría </span>ayudar<span> a realizar una buena sinopsis de la película "</span><span>Jardín de Amapolas" dirigida por Carlos Melo Guevara, gracias? i hope i helped you</span>
4 0
4 years ago
QUESTION 4
Kaylis [27]

Answer: 2, 3, 6, 8

Explanation:

i must tell you something very important.

in LISTS.... the FIRST thing is marked with a 0.

[0, 1, 1, 2, 3, 6, 8, 13, 21, 34]

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

do you see how these line up with each other?

the output would be 2, 3, 6, 8

4 0
3 years ago
Other questions:
  • does someone know of a website where I can find free essays or assignments already answered (right or wrong, ain't matter), kind
    15·1 answer
  • I need help with Microsoft.
    6·1 answer
  • PLEASE HELP ME ASP!!!
    11·2 answers
  • The ability to keep web page visitors at your site is called _______.
    11·1 answer
  • How do assembly language different from machine language?
    15·1 answer
  • Write a program that will prompt the user to enter an integer. The program should square the number and then print the squared n
    5·1 answer
  • Write a program that include a method that returns the sum of all the elements of a Linked List of Integers. Allow the user to e
    11·1 answer
  • These statements describe a network server.
    5·1 answer
  • In Python, which comparison operator means "less than or equal to"?
    5·2 answers
  • What search operator would you use with the word "Android" to find Android phone, Android smartphone, and Android cell phone?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!