subject

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;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
What is a number system, and what is the total number of digits used in this system called? a number system is a system that uses different (options: a) numbers b) symbols c) codes d) digits e) alphabets) to represent different numbers. the total number of digits used in a number system is known as its (options: 1) processor 2) converter 3) radix 4) least significant digit 5) most significant digit)
Answers: 1
You know the right answer?
Write a function so that the main() code below can be replaced by the simpler code that calls functi...
Questions
question
History, 05.11.2020 22:00
question
World Languages, 05.11.2020 22:00
question
Mathematics, 05.11.2020 22:00
Questions on the website: 13722367