menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Use pseudocode to specify a recursive algorithm to compute the nth value of the harmonic series, for some integer n.
asked
Dec 17, 2017
200k
views
1
vote
Use pseudocode to specify a recursive algorithm to compute the nth value of the harmonic series, for some integer n.
Computers and Technology
high-school
Darah
asked
by
Darah
7.3k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
Well, this task is pretty easy, I bet after my countings you will immediately understand how to figure it out :
At first,
def h(n):
As it is done, n = 0, so after returning 0
The last thing you should do is to return sum
hope it helps =)
Esau
answered
Dec 23, 2017
by
Esau
8.4k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Nov 25, 2024
187k
views
Write a pseudocode algorithm that asks a user for a password. They are allowed three attempts to type the correct password, which is “Tues1212”. If they type the correct password, output “Password accepted”,
Nitrogen
asked
Nov 25, 2024
by
Nitrogen
7.9k
points
Computers and Technology
high-school
1
answer
2
votes
187k
views
asked
Aug 11, 2024
128k
views
Write a pseudocode algorithm using a FOR loop to read five lowercase letters and output the largest and smallest. (a is less than b).
Fjott
asked
Aug 11, 2024
by
Fjott
7.8k
points
Computers and Technology
high-school
1
answer
3
votes
128k
views
asked
Dec 4, 2024
209k
views
What is the difference between pseudocode and algorithm? a) Pseudocode is a description of what code should do, while the algorithm is the sequence of steps to solve a problem. B) Pseudocode is used for
Mythago
asked
Dec 4, 2024
by
Mythago
8.6k
points
Computers and Technology
high-school
2
answers
5
votes
209k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Explain why binary codes are used to represent characters, numbers and symbols :)
This is science they just dont have the subject buy anyways describe interactions you have with the environment that you depend on to meet your basic needs hope u can help
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org