Problem 418. Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent with half from the other parent, the possibilities are:
- A+A
- A+B
- A+O
- B+B
- B+O
- O+O
The corresponding blood group of the child will be observed (phenotype) to be A, AB, A, B, B, and O respectively. Given either genotype (3 characters, such as 'A+O') or phenotype (1 or 2 characters, such as 'A' or 'AB') of a child, a putative father, and a putative mother, determine 'maybe' or 'unlikely'.
Solution Stats
Problem Comments
-
1 Comment
This needs a LOT more test cases.
Solution Comments
Show commentsProblem Recent Solvers53
Suggested Problems
-
2319 Solvers
-
Find the maximum number of decimal places in a set of numbers
3225 Solvers
-
Sum the numbers on the main diagonal
599 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
390 Solvers
-
Area of an equilateral triangle
6622 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!