You're not supposed to copy things from other sites so it won't be easy to do. But you can save the image to your computer then upload it here using the paperclip icon.
Answer:
import random
a = random.randint(1,10)
b = random.randint(1,10)
answer = a * b
print(str(b)+" * "+str(a)+" = "+str(answer))
Explanation: So I am guessing you are on Edhesive Module 2.5 Intro to cs. Sorry it took so long but hopefully this works.
Answer:
The statement in python is as follows:
to_the_power_of(cube_side,3)
Explanation:
As stated as the requirement of the code segment, the statement takes as parameters a variable cube_side and a constant 3.
It then returns the volume of the cube; i.e. cube raise to power 3
<em></em>
<em>See full program below</em>
<em>def to_the_power_of(val,powe):</em>
<em> result = val**powe</em>
<em> print(result)</em>
<em>cube_side = float(input("Cube side: "))</em>
<em>to_the_power_of(cube_side,3)</em>
Answer:
#include <iostream>
using namespace std;
int main()
{
float celsius;
cout<<"Enter the temperature in Celsius: ";
cin>>celsius;
float Fahrenheit = 1.8 * celsius + 32;
cout<<"The temperature in Fahrenheit is: "<<Fahrenheit<<endl;
}
Explanation:
first include the library iostream in the c++ programming.
Then, create the main function and declare the variable celsius.
cout is used to print the message on the screen.
cin is used to store the user enter value in the variable.
then, apply the formula for calculating the temperature in Fahrenheit
and store the result in the variable.
Finally, print the result.
Its a server hosted by the computer its self its onot really online but the computer silulates a real server devoplers use it to test wb sites there making