Homework Answers

Math 50414
Physics 44332
Chemistry 40988
Economics 30643
Programming & Computer Science 26876
Biology 8109
Engineering 6056

Questions answered by Experts: 207 418

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Riya took part in a maths quiz competition. To win the prize money she has to solve a tricky question at the end.For a given list of integers, write a program where all the integers in a given index range to be added.

She will be given M multiple ranges, where she should print the sum of numbers for each corresponding range.


Note: The limits in the range are both inclusive.


Input

The first line f input is space-separated integers.

The second line of input is a positive integer M denoting the number of index ranges.

The next M lines contain two space-separated integers of the range.


Output

The output should be M lines.

Each line contains an integer that represents the sum for the corresponding ranges.


Sample Input1

1 3 4 5 6

5

3 5

Sample Output1

12



[Please test the sample test cases and send the screenshots].


A herpetologist finds an anuran which has a green hue. This is the dominant


colour trait and therefore the genotype for colour can be either homozygous


(GG) or heterozygous (Gg). In this species of frog body colour that is brown


suggests a recessive phenotype and therefore this genotype would have to be


homozygous for the recessive allele (gg). G represents the dominant allele and g represents the


recessive allele. Using selective breeding techniques, how would the researcher determine the


genotype of the original green anuran? Explain how the results of this would help the researcher


identify the genotype or the original green anuran.


10 marks

There are three alleles for the gene that determines the ABO blood grouping system in


humans namely IA


, IB and IO. IA and IB are co-dominant and both are dominant over IO.


Two babies were born in a hospital on the same day (these were the only babies born


in the hospital on that day). One set of parents suspected that the babies were


swopped in the hospital nursery and immediately ordered blood tests to determine their blood


groups. Of the parents, Mr Suspicious was blood group A and Mrs Suspicious was blood group B.


The baby given to them was blood group O. Mr Convinced was blood group A and Mrs Convinced


blood group AB. The baby given to them was blood group B.


Did a mix-up occur? (Give a reason for your answer) What are the genotypes of the parents and


their babies? Show all the possible genotypes and phenotypes of children that can be produced by


Mr and Mrs Suspicious, and the expected ratios in which they will occur (include a Punnett Square)


10 marks

if 32.0 g CaC2 are consumed in this reaction, how many moles of H20 are needed?

A researcher has two pure breeding strains of fruit flies: strain A and strain B.


Strain A produces only enzyme A and strain B only enzyme B. The alleles


coding for enzyme A and enzyme B are the only alleles involved here and occur at the


same locus. The researcher crossed a fly from strain A with one from strain B and found


that all the offspring (F1 generation) could produce both enzyme A and enzyme B. When he


crossed two of the F1 generation flies, he found the following in the offspring:



658 produced enzyme A, 1364 produced enzyme A and B, 581 produced enzyme B


What type of inheritance can produce these results? Using appropriate symbols, show the


researcher’s cross (up to the F2 generation) What would the expected result be if one of the


offspring that can produce both enzyme A and enzyme B were crossed with one that can only


produce enzyme A (include a Punnett Square)?


10 Marks

A herpetologist finds an anuran which has a green hue. This is the dominant


colour trait and therefore the genotype for colour can be either homozygous


(GG) or heterozygous (Gg). In this species of frog body colour that is brown


suggests a recessive phenotype and therefore this genotype would have to be


homozygous for the recessive allele (gg). G represents the dominant allele and g represents the


recessive allele. Using selective breeding techniques, how would the researcher determine the


genotype of the original green anuran? Explain how the results of this would help the researcher


identify the genotype or the original green anuran.

A cyclist cycles down a hill. At the top of the hill of height 50m he reaches a speed of 50ms-1. Calculate his speed at the bottom of the hill.

Random Activity


The goal of this coding exam is to quickly get you off the ground with the DOM Manipulations.


Refer to the below image.


https://assets.ccbp.in/frontend/content/dynamic-webapps/random-activity-output.gif


Achieve the given functionality using JS.


Make a HTTP request(GET method) using fetch with the URL

https://apis.ccbp.in/random-activity to get a random activity.

Add

loading status with Bootstrap component spinner while making an HTTP request

It should pass:

JS code implementation should use the .classList.add and .classList.remove.


JS code implementation should use the addEventListener for click event.


When the HTML button element with the id getActivityBtn is clicked, a GET request has to be sent to the given URL. and set HTTP response value in the HTML paragraph element with id activityName, activityType and HTML Img element with id activityImg should change according to the response.




We have a horizontal spring with a mass attached oscillating with a maximum displacement of



A



on either side. At which intermediate displacement(s) the kinetic energy would equal the potential



energy [10]?



The program simply calculates the pay(hourlyrate*normal hours)




Output displayed



Enter hourly rate : 21,50



Enter normal hours worked : 2




Hourly rate : R21,50. Normal hours :2



PAY : R43,00

LATEST TUTORIALS
APPROVED BY CLIENTS