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
Need help ppplllleeeassse<br><br> Hhheeelllppp
kondaur [170]

Answer:

Any curved surface of a 3d object..

5 0
4 years ago
Read 2 more answers
1. Write a while loop that lets the user enter a number. The number should be multiplied by 10, and the result assigned to a var
shutvik [7]

Answer:

import java.util.Scanner;

public class num6 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int product=0;

       do{

           System.out.println("Enter a number");

           int num = in.nextInt();

           product = num*10;

           System.out.println("The product is " + product);

       }while (product<100);

  }

}

Explanation:

In the Java program above, The user will be prompted to enter a number.

The number is multiplied by 10 and assigned to a variable called product.

A do....while loop has been implemented to check the variable product

As long as this variable is less than 10, the user will be prompted to enter another number.

3 0
3 years ago
____ is used specifically for the purpose of recording keystrokes, logging the programs or Web sites accessed, or otherwise moni
insens350 [35]

Answer:

Computer monitoring software

Explanation:

Computer monitoring software is used specifically for the purpose of recording keystrokes, logging the programs or Web sites accessed, or otherwise monitoring someone’s computer activity.

4 0
3 years ago
Read 2 more answers
What changes has Sue made so far? Check all that apply.
Alexus [3.1K]

Answer:

Its C, E, and F

Explanation:

On edg

8 0
3 years ago
Read 2 more answers
When you are creating a game you plan to sell online and you need to implement art:
Lilit [14]

Answer:

you can download images that the creator has given permission to use freely.

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • List and describe the issues that lead to making a successful website?​
    9·1 answer
  • Data mining is defined as: a)Separating data and programs such that each can be changed without changing the other b)Allowing ma
    5·1 answer
  • "Common knowledge" must always be credited or else it is considered plagiarism?<br> True<br> Fales
    5·1 answer
  • How do you know what memory to purchase for your computer?
    10·1 answer
  • Which feature of a website takes you to a different part of the website or a totally different website when you click on it?
    12·2 answers
  • Rerouting traffic using arp poisoning is an attack on ________ of a network.
    8·1 answer
  • How do i get the schools admin password for the good wifi
    10·2 answers
  • Which U.S. government agency first funded the development of the Internet?
    12·2 answers
  • Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo
    13·1 answer
  • Lesson 2.7 Code Practice #2
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!