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
balandron [24]
3 years ago
14

Write a recursive method to compute the following series: 1 + 1/2 + 1/3 + 1/i ... Write a test program that displays m(i) for i

= 1, 2, . . ., 10. You are not allowed to construct any structured objects (no array, ArrayList, String, StringBuilder, etc) and you may not use a while loop, for loop, or do/while loop to solve this problem; you must use recursion.

Computers and Technology
1 answer:
White raven [17]3 years ago
8 0

We will assume that i / 1 is constant and i express i = 1 / n while n = 1,2,3,4,5,6,7 ..

You might be interested in
An online game is played with two dice. In this context, explain what is meant by decomposition
Hunter-Best [27]
You want to throw 2 dice and get (or show?) their value.
    Their value is random, so you need to generate two numbers between 1 & 6.
    You may need to display the numbers
    The main part of the program needs to know the numbers to limit what the user may do next.


That's most of the first level of decomposition. You need to keep decomposing (breaking into smaller simpler pieces) (think of an outline) and deciding what objects, functions, data structures and logic you're going to use to code this.
8 0
3 years ago
What is the extension of a BASIC256 program file?​
algol13

Answer:

The extension of a BASIC-256 program file is kbs

4 0
3 years ago
1. What are copyright laws? (6 points)
Serggg [28]

Can u pls help me. srry i had to ask u on here lol

8 0
3 years ago
What set of code correctly initializes all elements of the array ar to the value 0, given the declaration
Veronika [31]

Answer:

The correct answer is:

C. ndx = 0;

while (ndx < 3) {

ar[ndx] = 0;

ndx++;

}

Explanation:

The declaration given is:

int ar[3];

This means the array consists of three locations and is named as ar.

We know that the indexes are used to address the locations of an array and the index starts from 0 and goes upto to 1 less than the size of the array which means the indexes of array of 3 elements will start from 0 and end at 2.

Now in the given options we are using ndx variable to run the while loop.

So the code to assign zero to all elements of array will be

ndx = 0;

while(ndx<3)

{

ar[ndx] = 0;

ndx++;

}

Hence, the correct answer is:

C. ndx = 0;

while (ndx < 3) {

ar[ndx] = 0;

ndx++;

}

7 0
3 years ago
Help !!!!!
viva [34]
I believe it’s D because software is the programs and other operations used by a computer
3 0
3 years ago
Other questions:
  • Which statement below is not true of EFS
    7·2 answers
  • What is the 5 basic steps of computer programing?
    6·1 answer
  • What would be the desired output of the home-security system
    8·1 answer
  • Ebay employs the _____ auction mechanism.
    8·2 answers
  • Where is the start frame delimiter found in the Ethernet frame
    9·1 answer
  • The Word feature that would allow you to insert fields from an Access database into multiple copies of a Word document is called
    12·1 answer
  • From which latin word the word computer is derived​
    7·1 answer
  • What does the following code print to the console?<br> if 88 * 100:<br> print("cardio")
    8·1 answer
  • Mikolas is doing a research on U.S. visas for a school project. He has found conflicting information on two sites. The first sit
    8·1 answer
  • You are configuring a network and have been assigned the network address of 221.12.12.0. You want to subnet the network to allow
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!