anonymous
  • anonymous
please assist in trying to calculate words per minute in my code.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
int main() { time_t now = time(0); Time day_end(23, 59, 59); Time start; Time end; string sentence; cout <<" The current Time is:" << start.get_hours()<< ":" /* returns the seconds value of now */ << start.get_minutes() << ":" /* returns the minutes value of now */ << start.get_seconds(); /* returns the hours value of now */ cout << endl; cout << "Please type sentence:" << "The quick brown fox jumped over the lazy dog." << " " << "\n"; cin >> sentence; cout << endl; cout << "Ending Time after Senetence is Typed:"<< end.get_hours() << ":" /* returns the seconds value of now */ << end.get_minutes() << ":" /* returns the minutes value of now */ << end.get_seconds(); /* returns the hours value of now */ cout << endl; double whenfinished = start - end/9; cout <<"You Typed the following words perminute :"<< whenfinished; cout << endl; system("pause"); return 0; }
anonymous
  • anonymous
the problem is I get this error "/" matches these operands
anonymous
  • anonymous
when trying to make equation

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
I think the issue is that you're trying to divide a Time object by 9. You can only do that if the operator has been overloaded in your Time class. Can you post the time code?

Looking for something else?

Not the answer you are looking for? Search for more explanations.