All pairs of an integer array whose sum is equal to a given number in Python using the algorithm based on below three steps:
Step 1: Initialize array and its values
Step 2: Initialize value of sum
Step 3: Call the function find
Programming in Python for all pairs of given number : We will get an array as input from user. We need to find all possible pairs from the given array whose sum is same as given sum. Example:
Array : [5, 2, 0, 4, 1, 8, 7]
Sum = 7
Possible pairs: [5, 2], [0,7],
Algorithm based on below three steps:
Step 1: Initialize array and its values
Step 2: Initialize value of sum
Step 3: Call the function find
Algorithm for function find
Step 1: Iterate on the elements of array with variable i, from 0 to length of array as you want.
For each value of i iterate on array from index i till length of array by using other variable say j.Check if array[i]+array[j] ==given sum. If the above(2) condition is true then print the pairs.Thus, we get the required results.
To learn more about Programming in Python, refer:
https://brainly.com/question/26497128
#SPJ4
Suppose you want to buy a $151,000 home. You found a bank that offers a 30-year loan at 4.7% APR. What will be your monthly payment? (Round to the nearest cent.)
Answer:
the monthly payment is $783
Step-by-step explanation:
The computation of the monthly payment is shown below:
Given that
PV = $151,000
NPER = 30 × 12 = 360
RATE = 4.7% ÷ 12 = 0.39166
FV = $0
The formula is shown below
= PMT(RATE;NPER;-PV;FV;TYPE)
AFter applying the above formula, the monthly payment is $783.14
Find the first 5 terms.
Answer:
15/8
Step-by-step explanation:
Pls help i need it will give brainiest to best answer <33
Can someone please tell me the answers
Answer:
A is the correct answer. pls mark me brainliest
Which one is it ? I need help
1. 60
2. 55
3. 65
4. 180
Answer:
55
Explanation:
If you fill out both of these you can get Brainliest and some 5 star and thanks!
Answer:
First estimate:
63% is kind of close to 60%
41 is kind of close to 40
its easy to compute 60% of 40 - it's 24
Second estimate:
14% is close to 15%
96 is close to 100
15% of 100 = 15
Answer:
1st one is 25.83, so estimate that so it shud be like 24
Step-by-step explanation:
find the measure of each interior angle of a regular polygon with the following number of size 6
Answer
number of side(n)=6
formula to calculate each interior angle =((n-2)×180)/n
now,
((6-2)×180)/6
(4×180)/6
720/6
120
may this will help you
Answer:
120°
Step-by-step explanation:
n = 6
Work:
[tex]\frac{(n-2) *180}{n} \\\\\frac{(6-2) *180}{6} \\\\\frac{4 *180}{6} \\\\\frac{720}{6} \\\\120[/tex]
For anybody who wants to know.
It’s -5,1
Answer:
ok
Step-by-step explanation:
cool
write an expression in standard form that Is equivalent to 2 + 3(x - 4)
Answer:
2+3=5(x-4) ,
=5(x-4)
=5x-4
=1x
In a game, Ben’s score was 3 times Sam’s score. Together they scored 80 points. Find their scores.
Answer:
PROBABLY ABOUT 27 OR 26.6666666667
Answer:
Ben's Score = 60
Sam's Score = 20
Step-by-step explanation:
60 + 20 = 80
I really don't know how to explain this.
HELPPPPP PLEASE!!!!
Factoring Trinomials X2-4x+24
Answer:
it shouldn't be able to be solved but it depends on your teacher
Step-by-step explanation:
Greyson reads 36 1/3 pages in 40 minutes, or 2/3 of
an hour. At this rate, how many pages can he read
in one hour?
Answer:
18 1/6+31 1/3= 49 1/2 pages in one hour.
Step-by-step explanation:
Hope this help and have a wonderful day!!!
(4,-1), (-5,9) midpoint
Step-by-step explanation:
(-1/2, 4)
how's this helps
Please help 13 points geometry!!
1, 140 °
2, 40°
3, 100 °
4, 100°
5, 40°
6, 90 °
7, 120 °
8, 130 °
Step-by-step explanation:
1, BOA IS EQUAL TO FOH = 140°
2, FOE EQUAL TO BOA = BOA = 40° = FOE = 40°
3, BOA° + GOF° =40° + 60° = 100 °
4, GOE = BOC WHICH MEAN GOE = 100° = BOC = 100°
5, COD = HOG =40 °
6, EOD= AOG = 90°
7, AOD = GOE + COD = 100° + 40 ° = 140°
8, BOG = 140 °
58
Find the volume of a prism. The area of the hexagonal base is
m2. Its height is 7
tan30°
m. If necessary, round your answer to the nearest hundredth.
The volume of the prism is about
m?
please help !
Answer:
I dont think this is the right answer but 8.256
Step-by-step explanation:
Name the angle pairs that are vertical angles.
Select all angle pairs that are vertical angles.
A. ∠F and ∠L
B. ∠E and ∠N
C. ∠R and ∠V
D. ∠Y and ∠W
Answer:
A and C
Step-by-step explanation:
Vertical angles are angles that are created when two lines cross. They are angles opposite from each other. (another way of saying it:) Vertical angles are angles opposite each other where two lines cross.
Hope this helps! :)
HELP HELP HELP HELP LOOK AT PICTURE
Answer:
It’s 2.5 minutes per mile
Step-by-step explanation:
Because 10/4 is 2.5 which means he’s riding his bike one mile per every 2.5 minutes.
como resolve essa conta
p = 8 + 10?
Answer:
P equals 18 because 8 plus 10 is 18.
Step-by-step explanation:
QUESTION 8 of 10: Juanita, the stadium manager, spends $10,000 on a broadcast TV ad, $15,000 on a cable TV ad, and $4,000 on a radio ad
What percentage of radio advertising did she do? (Round to the nearest percent.)
Answer: 13.79%
Step-by-step explanation:
Amount spent on broadcast TV advertisement = $10000
Amount spent on cable TV advertisement = $15000
Amount spent on radio advertisement = $4000
Total amount spent advertisement = $10000 + $15000 + $4000 = $29000
The Percentage of radio advertisement done will be:
= (Amount spent on radio advertisement / Total amount spent advertisement ) × 100
= (4000 / 29000) × 100
= 13.79%
Which line segment is an altitude of ΔVWY?
Answer:
x
Step-by-step explanation:
just trust I know the x is the altitude
PLEASE HELP!! WILL GIVE LOTS OF POINTS Which of the following functions shows the absolute value parent function,
F(x) = |x|, vertically stretched
Answer:
D
Step-by-step explanation:
vertically stretched is on the outside of the |x| and has to be grater than 1
Calculate the surface area of the square pyramid below.
yd2
Answer:
155
Step-by-step explanation:
What is the volume of a sphere with a radius of 3 inches?
12 pi cubic inches
24 pi cubic inches
36 pi cubic inches
48 pi cubic inches
Answer:
36π cubic inches
Step-by-step explanation:
V = 4/3 πr³
radius (r): 3
= 4/3π(3)³
= 4/3π (27)
= 36π
Find the missing side of the triangle using Pythagorean theorem
Answer:
D) [tex]8\sqrt{3}[/tex]
Step-by-step explanation:
a² + b² = c²
x² + 8² = 16²
x² + 64 = 256
x² = 192
[tex]\sqrt{x^2} =\sqrt{92} \\x=8\sqrt{3}[/tex]
A stage in the shape of a semi circle had a diameter of 42 ft. What is area of the stage? Use 22/7 for π. PLZ I NEED FAST TEST
A semi circle is half a full circle. Find the area of the full circle and divide it by 2.
Area of a circle = pi x r ^2
R is half the diameter
Area of full circle:
Area = 22/7 x 21^2
Area = 1386 sq. Ft
Area of stage = 1386/2 = 693 square feet
Answer:
3.14 x 42 x 42 = 5538.96ft
If your wondering why used 3.14 instead of 22/7 is because they are exactly the same just one is a whole number and the other is a fraction. I suggest you use 3.14 because its easier than 22/7.
Step-by-step explanation:
:))
Find the values of x and y. Write your answers in simplest form.
Step-by-step explanation:
You have this rule, if there is < 30° then value of y is
y=12✓3:2
y=6√3
And Pitagora's theorem:
c²=a²+b²
In this case:
(12√3)²=y²+x²
Then x is:
x²= (12√3)²-y²
x²= (12√3)²-(6√3)²
x²=432- 108
x²= 324
x=✓324
x=18cm
PLEASE HELP I GIVE BRAINLIEST
B)é a reposta
A biologist was studying a certain species of earthworm. She collected samples of 6 adults from 2 different populations and measured their lengths in centimeters. The data are shown below.
Sample 1: 26, 25, 27, 19, 24, 26
Sample 2: 24, 23, 24, 26, 25, 25
Compare the means and ranges of the data for the 2 samples. Use your comparison to conclude the samples. Show and explain your work.
CAN YOU EXPLAIN WHY ALSO CAN YOU DO THIS AS SOON AS POSSIBLE PLEASE AND THANK YOU?
Answer:
Calculating the means:
Sum each length from each sample and divide it by the number of worms.
Sample 1: 26 + 25 + 27 + 19 + 24 + 26 = 147/6 = 24.5
Sample 2: 24 + 23 + 24 + 26 + 25 + 25 = 24.5
They each have the same sample mean.
Ranges: Take the largest length and subtract the smallest.
Sample 1: 27 - 19 = 8
Sample 2: 26 - 23 = 3
Sample 1 has a greater range.
PLEASE HELP!!!! Also if your smart with math can you look at my other posts because I am still really confused and there is more than one question per question post thing... Anyways thank you so much but please don't just put a link..........
Answer:
i,m no smart sorry
Step-by-step explanation:
A hexagonal prism has a base with an area of 15 square inches and the volume is 105 cubic inches.
Answer:
The height is 7 inches
Step-by-step explanation:
Given
[tex]Base\ Area = 15in^2[/tex]
[tex]Volume = 105in^3[/tex]
Required
Determine the height [missing from the question]
The volume of a hexagonal prism is:
[tex]Volume = Base\ Area * Height[/tex]
Make Height the subject
[tex]Height = \frac{Volume}{Base\ Area}[/tex]
[tex]Height = \frac{105in^3}{15in^2}[/tex]
[tex]Height = \frac{105in}{15}[/tex]
[tex]Height = 7in[/tex]