Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c- language please! 13.20 Arrays - Ex4 Problem Statement In genetics, most large animals have two coples of every gene, one from each parent.

In c- language please! image text in transcribed
13.20 Arrays - Ex4 Problem Statement In genetics, most large animals have two coples of every gene, one from each parent. In the simplest genetic model each of the genes takes on one of two forms, usually represented by an uppercase and lowercase letter of the same vaue (and 8, for example). The pair of genes typicalily contributes to the external qualities of the animal in one of two ways. If both genes are uppercase, they contribute in one way, while if both genes are lowercose, they contribute in another way. If one gene is uppercase and the other is lowercase, then the pair acts lke erther a pair of uppercase genes or a pair of lowercase genes depending on whether the gene represented by the uppercese letter s dominant or recessive, respectively In this problem, you will be given two strings. genes1 and genes2 each representing the genes from one parent Hence, two characters from genes1 and genes2 with the same index make up a single gene You will a so be given a string dominant telling you whether an uppercase gene is dominant or recessive, represented by D and R; respectively (characters of dominant correspond to characters of genes1 and genes2 with the same index). Your task You are to returns representing the external qualities of eocn pair of genes if pair of genes has the quality of two uppercase letters, the return should have an uppercase letter, and if not the return should have a lowercase letter. In either case, each letter should have the same value as the corresponding letters of genes1 and genes2 Constraints . Strings genes1 and genes2 will contain only letters (-z and A-2) . String dominant wil contain only D's and RS Strings dominant. genes1 and genes2 will each contain the same number of characters Strings dominant genes, and geves2 will each conten between 1 and 50 characters, inclusive. . Corresponding letters in genes1 and genes2 will have the same value, though potentially different cases (uppercase or lowercase) Example 1 input ARA DRDR Output Example 2 Input

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions

Question

13.4 Specification Bias

Answered: 1 week ago