1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
asambeis [7]
3 years ago
9

Write a function file that accepts the values of r, a and n as arguments and uses a for loop to return the sum of the first n te

rms of the geometric series. test your function for a = 3, r = 1/2 and n = 10.
Computers and Technology
1 answer:
Murrr4er [49]3 years ago
7 0

Given, a = 3, r = 1/2, n = 10

%r is common ratio

%n is number of terms

%a is the first term of the series

Sum = 0;

a = 3;

r = 1/2;

for i = 0 : 1 :  10;

Sum = Sum + a * r ^ i;

end

Sum


You might be interested in
Choose the correctly written sentence.
Lemur [1.5K]

Answer:

i would say the first one

Explanation:

7 0
2 years ago
Read 2 more answers
Florescent lights tend to emit less of what color?
Olin [163]
I believe it emits more yellow, it can even be blue or green 
4 0
3 years ago
Don't Answer if you are going to give me a link! Don't Waste My Points!
svp [43]

Answer:

D. Childrens Toys and brigh colored rugs

Explanation:

It is because they mentioned that it was for children and they already have bright furniture, so it only makes sense.

3 0
3 years ago
How can a schedule help you stay organized
Rus_ich [418]
I believe it should be d
4 0
3 years ago
has anyone noticed that brainly has been giving the wrong answers and that the ads are blocking answers or is that just me?
Romashka-Z-Leto [24]

I started noticing that too

4 0
3 years ago
Read 2 more answers
Other questions:
  • Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the us
    15·1 answer
  • What is the difference between delete and backspace key?​
    12·2 answers
  • Visually impaired people cannot use a mouse to navigate web pages. How can web page designers ensure that such individuals are a
    13·2 answers
  • A network administrator is planning redundant devices and cabling in a switched network to support high availability. Which bene
    11·1 answer
  • A company purchased a high-quality color laser printer to print color brochures and sales proposals. The printer is connected to
    5·1 answer
  • To connect a peripheral device to a computer to exchange data, find the appropriate ________ for the device.
    7·1 answer
  • What do you call the destination router on the network endpoint?
    7·1 answer
  • A company has a website that has seen a large increase in visitors and they are concerned that if the trend continues, the web s
    13·1 answer
  • What can the tab key do
    10·1 answer
  • Which prosscess is a form of mechanicel weathering
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!