Math is wrong on train problem

Bug #716183 reported by Corey Hokanson
This bug report is a duplicate of:  Bug #710442: answer to question is wrong. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GBrainy
Unknown
Unknown
gbrainy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gbrainy

Problem Text

A train leaves the station traveling at 35 mph. 4 hours later a second train leaves the station traveling in the same direction at 55 mph. How many hours does it take the second train to overtake the first train?

Correct answer:

The first train has traveled 4 hours at 35 mph, so it has a 140 mile lead on the second train. The second train is going 55 mph, 20 mph faster than the first train. So when the second train sets out from the station, it will take 7 hours to travel the extra 140 miles and catch up.

7 hours.

Program's answer

"Incorrect answer. The correct answer is 11. You can calculate the answer multiplying the second train speed by the time and dividing it by the difference of speeds."

Problem with the program's answer:

The program is multiplying the second train's speed by the time of the headstart, which means the program is incorrectly giving the second train the headstart, even though the first train was the one with the headstart.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gbrainy 1.51-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic i686
NonfreeKernelModules: fglrx wl
Architecture: i386
Date: Wed Feb 9 18:40:11 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gbrainy

Revision history for this message
Corey Hokanson (hokansoc) wrote :
Revision history for this message
Jordi Mas (jmas-softcatala) wrote :

Thanks Corey

This was addressed in gbrainy 1.60.

See bug:

https://bugzilla.gnome.org/show_bug.cgi?id=632777

Thanks,

Jordi,

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Natty Narwhal.

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Changed in gbrainy (Ubuntu):
status: New → Fix Released
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Actually, I just noticed this has also been reported as bug #710442, I'm therefore marking it as a duplicate. Sorry for the bug spam.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.