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
Free_Kalibri [48]
3 years ago
10

Draw a flow chart and write pseudocode for an iterative algorithm that calculates 1 - 1/2 +1/3 - ... +(or -) 1/n. 1/k is added t

o the sum if k is odd and subtracted from the sum if k is even. (This sum converges in 2, the natural logarithm of 2).

Computers and Technology
1 answer:
grin007 [14]3 years ago
7 0

Answer:

PSEUDOCODE

BEGIN

A = 0

n = 1

Input Number

Loop :

do while n <= Number

A = A + (-1)^(n+1) * (1/n)

n = n + 1

return to loop

print A

END

See attachment for Flowchart

Explanation:

Assume number = 3

First Loop : A = 0 + (-1)^2 * 1/1 = 1

Second Loop : A = 1 and n = 2

A = 1 + (-1)^(2+1) * 1/2 = 1 - 1/2

Third Loop : A = 1 - 1/2 and n = 3

A = 1 - 1/2 (-1)^(3+1) * 1/3 = 1 - 1/2 + 1/3

Print A will then print 5/6

You might be interested in
From the standpoint of the governing bodies of .com, why is it important that owners of individual domains maintain authoritativ
mixer [17]

Answer:

Explanation:

A subdomain is really important on the internet, we can categorize our blog, e-commerce or simple informative website, for example, if we want to have a blog and e.commerce of the same topic, we can have a subdomain for each website, if we separate our website, and we administrate our content is a good signal for SEO, we could have more promotion in search engine.

4 0
4 years ago
Gary has to complete a form before enrolling into an online course. A few of the fields require Gary to respond with either a "Y
zalisa [80]
I think its C. Boolean
Hope this helped!
3 0
4 years ago
Read 2 more answers
Which of the following tasks is least effective at preventing a computer virus?
worty [1.4K]
Anti-virus software is set to scan your computer weekly is the least effective.
3 0
3 years ago
Read 2 more answers
What do you expect the future trends of an operating system in terms of, cost, size, multitasking, portability, simplicity
Anna71 [15]

Answer:

Size

Explanation:

thats it thats the answer

8 0
3 years ago
WordArt styles allow you to add ____.
maria [59]
As for this problem, the most probable and the most likely answer to this would be it depends on the person or the user of it since there aren't any options presented with the problem.

WordArt is there to be of use during presentations, during discussions, and other things. On the other hand, as the technological advancement takes leaps and bounds going forward, this utility seems to be underused and isn't expected to give a more impact to the reader or to the recipient of such document that contains it. This is typically used for people that aren't too familiar yet, as to how to utilize other programs to enhance their documents and files.
3 0
4 years ago
Other questions:
  • A ____ is text and graphics that print at the bottom of every page.
    12·1 answer
  • __________ has led to the belief that the Internet is "free".
    8·1 answer
  • If anything is changed on an already-tested module, regression testing is done to be sure that this change hasn’t introduced a n
    13·1 answer
  • Define get_date() function.
    6·1 answer
  • ........ is a formal description of message formats and the rules for exchanging those messages
    12·1 answer
  • A social cause is: O A. when one person protests without the support of others. B. something that not many citizens think or car
    8·1 answer
  • several ways that we commonly use technology today that people couldn't 10 years ago. Are these uses helpful or harmful to socie
    9·1 answer
  • ¿Qué aspectos de impacto medioambiental e impacto social tienen relación con la poca disminución de los residuos? Es para hoy.
    13·1 answer
  • The lower band and upper band of integer data type​
    6·1 answer
  • What does this mean? And how did I get it?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!