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].
Write a program that reads in a set of positive integers and outputs how many times a particular number appears in the list. You may assume that the data set has most 7 numbers
The numbers must be output in increasing order for example:
15402862621528
The primary winding of an electric train transformer has 400 turns and the secondary has 50. If the input voltage is 120V(rms) what is the output voltage?
Write a C program that performs arithmetic’s operation with fractions using four different functions (for addition, subtraction, multiplication and division). Use two integer variables to represent the numerator and the denominator as arguments to the functions. The functions should perform the following:
Printing Rational numbers in the form "a/b" where "a" is the numerator and "b" is the denominator.
In your function to print the Rational number, when the denominator is equal to zero, it must show the error message "DIVIDE BY ZERO ERROR!!!" Otherwise, print the Rational number in the required format.
The professional organization for private colleges and universities
professors reported that more than 17% of professors attended a
national convention in the past year. To test this claim, a researcher
surveyed 200 professors and found that 45 has attended a national
convention in the past year. At α = 0.05, test the claim that this figure
is correct using p -value method.
One of the undersecretary of the Department of Labor and
Employment (DOLE) claims that the average salary of civil engineer
is Php18,000. A sample of 19 civil engineer’s salary has a mean of
Php17,350 and a standard deviation of Php1,230. Is there enough
evidence to reject the undersecretary’s claim at α = 0.01?
According to the following reaction, how many grams of water will be formed upon the complete reaction of 23.3 grams of iron(III) oxide with excess hydrochloric acid?
6HCl (aq) + Fe2O3 (s) 3H2O (l) + 2FeCl3 (aq)
Consider the titration of a 25.0 mL sample of 0.1 75 mol L- 1 CH3NH2 with 0. 150 mol L-1 HBr. Determine each quantity: Show all the chemical equations used.
a. the initial pH
b. the volume of added acid required to reach the equivalence point
c. the pH at 5.0 mL of added acid
d. the pH at one-half of the equivalence point
e. the pH at the equivalence point
f. the pH after adding 5.0 mL of acid beyond the equivalence point
Calculate the : 1) average speed 2) root mean square speed and 3) most probable speed of oxygen molecule at 515k. {Given Mm(O2)= 0.016Kg mol(–1)
25 cm3 of a solution containing T grams of K2CO3 in 1000 cm3 of solution were completely neutralized by 20.00 cm3 of a solution containing 0.025 mole of H2SO4 in 1 dm3 of solution
Calculate the :
(a) concentration of K2CO3 solution in moldm-3
(b) Value of T
(c) mass of K2SO4 formed
(d) volume of CO2 evolved at STP
(e) number of H2O molecules