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
Vedmedyk [2.9K]
2 years ago
6

Write a recursive function named canmakesum that takes a list of * integers and an integer target value (sum) and returns true i

f it is * possible to have some set of values from the list that sum to the * target value.
Computers and Technology
1 answer:
valentinak56 [21]2 years ago
7 0

// Java program to find sum of array

// elements using recursion.

class Test {

   static int arr[] = { 1, 2, 3, 4, 5 };

   // Return sum of elements in A[0..N-1]

   // using recursion.

   static int findSum(int A[], int N)

   {

       if (N <= 0)

           return 0;

       return (findSum(A, N - 1) + A[N - 1]);

   }

   // Driver method

   public static void main(String[] args)

   {

       System.out.println(findSum(arr, arr.length));

   }

}

You might be interested in
How to change a documents theme colors in word?
VladimirAG [237]

Answer:

Change the theme colors in Word

1. Select Design > Colors.

2. Point to a color to preview how it will look in your document.

3. Select a color scheme.

Explanation:

7 0
3 years ago
Carlos, an algebra teacher, is creating a series of PowerPoint presentations to use during class lectures. After writing, format
yarga [219]

Answer:

see explanation

Explanation:

Carlos can make a copy of the old presentation that preserves all the formatting, and replace old content with new information.

5 0
3 years ago
A(n) _____________ is a program used to create and implement a database. operating system database management system information
Anika [276]

The program used to create and implement a database is called an operating system.

<h3>What is an operating system?</h3>

An operating system (OS) is a system that helps to manage and allocate computer resources. These computer resources are:

  • Central processing unit (CPU),
  • Computer memory,
  • File storage,
  • Input/output devices,
  • Network connections.

The most used operating system are;

  • Apple mac OS,
  • Microsoft Windows,
  • Go-ogle Android OS,
  • Lin-ux Operating System,
  • Apple iOS

Learn more about operating system:

brainly.com/question/24032221

5 0
3 years ago
Why do we need long-term schedulers? Wouldn't be possible to handle the same job using
Dima020 [189]

Answer:

The scheduling process in the system is done by using the long-term scheduler and short-time scheduler. The long term scheduler are those which select the work from the job queue and the job selection is not very frequent.

Short-term scheduler is the scheduler that select the work from the ready queue and allocates it to the CPU(Central processing unit).It works by picking the work at quick frequency .So, it is not possible for the short-term schedulers to handle the job because of the different frequency of work.

4 0
3 years ago
Write an algorithm to settle the following question:
Vesnalui [34]

Answer:

<u>algorithm</u>

original = float(raw_input("Enter initial balance: "))

interest = float(raw_input("Enter promised return: "))

expenses = float(raw_input("Enter monthly expenses: "))

interest = interest / 100 / 12

month = 0

balance = original

if balance * interest - expenses >= 0:

print "You don't need to worry."

else:

while balance + balance * interest - expenses >= 0: # negation of the if condition

balance = balance + interest * balance # in one month

balance = balance - expenses

month = month + 1

print month, balance

print month / 12, "years and", month % 12, "months"

6 0
3 years ago
Other questions:
  • Where is the risk of someone intercepting another person’s online activity the greatest?
    11·1 answer
  • The combination of two or more technologies or data feeds into a single, integrated tool is referred to as a _____.
    7·1 answer
  • This provides an easy method for workers to use their computers.
    11·2 answers
  • What is the 7 X 7 when referring to PowerPoint presentations?
    12·2 answers
  • A Uniform Resource Locator (URL) consists of three separate parts: network protocol, host, and web browser.
    11·2 answers
  • In 1988, Robert Morris, Jr. launched a program called the _________ that used weaknesses in e-mail programs and operating system
    5·1 answer
  • Linda subscribes to a cloud service. The service provider hosts the cloud infrastructure and delivers computing resources over t
    10·1 answer
  • You want the user to enter the length, width, and height from the keyboard. Which cin statement is correctly written?
    10·1 answer
  • Toby has lost valuable data on his computer a number of times due to system crashes caused by viruses. He decides to invest in a
    13·1 answer
  • Why is 0.3333333333333333 the output of print(1/6 + 1/6) in python?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!