int main () { const float sixty_sec =60; floatname1; float min; float first_sec;
ID: 3614497 • Letter: I
Question
int main ()
{
const float sixty_sec =60;
floatname1;
float min;
float first_sec;
intsecondstwo;
int secondsthree;
cout << "Entername of the runner ";
cin>> name1;
cin>> min;
cout<< "Enter remaining seconds ";
cin>> first_sec;
secondstwo = min * sixty_sec;
secondsthree = secondstwo + first_sec;
cout << name1<< secondsthree << endl;
return0;
}
Explanation / Answer
/* the changes are highlighted*/ #include #include using namespace std; int main () { const float sixty_sec =60; char name1[100]; float min; float first_sec; float secondstwo; floatsecondsthree; cout min; cout >first_sec; secondstwo = min *sixty_sec; secondsthree =secondstwo + first_sec; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.