Answer:
speed = int(input("Enter the speed: "))
hour = int(input("Enter the hour: "))
for i in range(1, hour + 1):
distance = speed * i
print("The distance traveled after " + str(i) + " hour(s): " + str(distance))
Explanation:
Ask the user for the speed and hour as input
Initialize a for loop that iterates from 1 to the given hours
Calculate the distance after each hour, multiply speed by hour
Print the distance after each hour
SWITCH BETWEEN OPEN PRESENTATIONS. ..... Presentation software is a program designed for the production and display of .... image file format and version number. 1. .... Option. To Do This. Normal. Contains three panes: the outline pane, the slide pane, and the notes pane. .... appear on every slide in a presentation.
Answer:
Almost 80 percent of websites are mobile friendly
Explanation:
Its B because a primary document means something with a <span>source or evidence</span> that gives u a lot of information.
Answer:
The method in C++ is as follows:
double average(int v, int w, int x, int y, int y){
double ave = (v+w+x+y+z)/5.0;
return ave;
}
Explanation:
This defines the average method with 5 parameters
double average(int v, int w, int x, int y, int y){
This calculates the average
double ave = (v+w+x+y+z)/5.0;
This returns the calculated average
return ave;
}
To call the method from the program's main, use:
<em>int main(){</em>
<em> cout<<average(1,5,7,4,10);</em>
<em> return 0;</em>
<em>}</em>
<em />