Computers and Technology

Write a function so that the main() code below can be replaced by the simpler code that calls function original main():

int main() {
double milesperhour;
double minutestraveled;
double hourstraveled;
double milestraveled;

cin > > milesperhour;
cin > > minutestraveled;

hourstraveled = minutestraveled / 60.0;
milestraveled = hourstraveled * milesperhour;
cout < < "miles: " < < milestraveled < < endl; return 0;
}
#include
using namespace std;
// write your answer here.
int main() {
double milesperhour;
double minutestraveled;

cin > > milesperhour;
cin > > minutestraveled;

cout < < "miles: " < < mphandminutestomiles(milesperhour, minutestraveled) < < endl;
return 0;
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:30, ruddymorales1123
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet. what cloud model is linda using
Answers: 1
image
Computers and Technology, 23.06.2019 01:20, shiann2002
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
image
Computers and Technology, 23.06.2019 09:10, babyskitt
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
image
Computers and Technology, 23.06.2019 16:50, lukeakalucas
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
Do you know the correct answer?
Write a function so that the main() code below can be replaced by the simpler code that calls functi...

Questions in other subjects:

Konu
English, 14.01.2021 18:30
Konu
History, 14.01.2021 18:30