Incorrect asnwer, or I'm dumb

Bug #721085 reported by Quantum Cow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gbrainy (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gbrainy

V1.51

Q:
Out of 40 people, 13 have brothers, 14 have sisters and 8 have both. How many people have neither brothers nor sisters.

A:
The correct answer is 21.5 people have brothers only, 6 sisters only and 8 have sisters and brothers.

Is there a half brother somewhere? I would guess by the wording, that the 8 that have both would be part of the 27 that have one or the other. That would be 13 that have neither. If the wording is unclear, and the 13 and 14 are exclusive, and only have brother, or only have sister, then the 8 would be in addition to the 27. Which would be 35, leaving 5 with neither. So it looks like a bug to me.

Tags: 1.51 gbrainy
Revision history for this message
Jordi Mas (jmas-softcatala) wrote :

First, thanks for the bug report.

This the formula that calculates these[1] for gbrainy 1.51:

int people = 40;
int brothers = 10 + random.Next (8);
int sisters = 12 + random.Next (8);
int both = 5 + random.Next (5);
int brothers_only = (brothers - both);
int sisters_only = (sisters - both);
int rslt = people - brothers_only - sisters_only - both;

It is just impossible to generate a non integer number.

Can you please include a screen capture that shows the issue?

Which language are you playing? English?

Thanks,

Jordi,

[1] http://git.gnome.org/browse/gbrainy/tree/data/games.xml?id=GBRAINY_1_5_1

Revision history for this message
Quantum Cow (jimjam1942) wrote :

Language=English
It is an integer, there should be a space between 21. and 5

The answer is correct. It is my interpretation and my math that are off.

I know it would be a somewhat of a pain, but perhaps spelling the quantities, or rewording the answer would cause less confusion.

Thanks for your quick response.

Changed in gbrainy (Ubuntu):
status: New → Invalid
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.