Question: I keep getting 32764 instead of 92478 seconds is equivalent to Please help! 1 // Ryan Dewey 2 //CS-1336. DM1 3 77 Lab-@7 4 //

 I keep getting 32764 instead of "92478 seconds is equivalent to"

Please help! 1 // Ryan Dewey 2 //CS-1336. DM1 3 77 Lab-@7

4 // This program converts seconds to minutes and seconds. 5 #include

I keep getting 32764 instead of "92478 seconds is equivalent to" Please help!

1 // Ryan Dewey 2 //CS-1336. DM1 3 77 Lab-@7 4 // This program converts seconds to minutes and seconds. 5 #include 6 using namespace std; 8 int main() The total seconds int totalseconds; 1 Variables for minutes and seconds int hours, minutes, seconds; 16 //input cin >> seconds; cin >> minutes; cin >> hours; 21 18 cin >> seconds; cin >> minutes, cin >> hours; 20 // Calculate the number of minutes, minutes = totalSeconds / 60; 24 25 26 27 hours = minutes / 60, ; minutes = minutes % 60; // Calculate the remaining seconds. seconds - totalSeconds % 60; 31 32 33 B4 35 // Display the results. cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!