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
Dmitry_Shevchenko [17]
3 years ago
10

Write a recursive function that calculates the sum 11 22 33 ... nn, given an integer value of nin between 1 and 9. You can write

a separate power function in this process and call that power function as needed:
Computers and Technology
1 answer:
Dovator [93]3 years ago
3 0

Answer:

The function in Python is as follows:

def sumDig(n):

if n == 1:

 return 11

else:

 return n*11 + sumDig(n - 1)

Explanation:

This defines the function

def sumDig(n):

This represents the base case (where n = 1)

if n == 1:

The function returns 11, when it gets to the base case

 return 11

For every other value of n (n > 1)

else:

This calculates the required sum recursively

 return n*11 + sumDig(n - 1)

You might be interested in
"It's inventiveness ,uncertainty and futuristic ideas,typically deals with science and technology,,what is it called??
Novosadov [1.4K]

<em>Answer:</em>

<em>It is because inventiveness is risky. It disrupt the established social contract, in the same way that invasive species do in natural ecosystems. Inventors best practice to protect themselves from angry response is to include in its marketing campaigns, the costly credibility of science support, the power of technology, the propaganda machine of the government, and the imagination of those in the science-fiction writing business. With a few bucks well spent —the most ridiculous, unnecessary and toxic invention could be a success in the marketplace. </em>

5 0
3 years ago
A newer kind of mobile site can do a lot of what only apps used to do, so the line has blurred between sites and apps. what are
denis23 [38]
The answer is Progressive Website Applications. This specific type of website allows the user to have a particular website function similarly as to when you download the app natively on your device. One main advantage is that you wouldn't need to download the actual app to use its functions. As the applications we use in our mobile phone increase, the more application we need to download, and could be troublesome to have hundreds of app installed on your mobile device.
6 0
4 years ago
After reading passage “the incredible machine” why do you think the article has been titled so?
Vitek1552 [10]
I haven’t read it, but just by the title it was probably talking about an incredible machine that was new to people.
7 0
3 years ago
Which Boolean operator enables you to exclude a search term?
Lisa [10]

It is letter D. but i might be incorrect, please contact your teacher for further information. sorry if I got your answer wrong... :(

4 0
3 years ago
Read 2 more answers
What is by far the most popular dns server software available?.
JulijaS [17]

Answer:

I use the server

8.8.8.8

and

8.8.4.4

Explanation:

6 0
3 years ago
Other questions:
  • What does input mean in the universal systems model
    14·1 answer
  • Need Help ASAP!
    14·2 answers
  • Computer-aided design software is used primarily by:
    13·1 answer
  • Most new information systems must communicate with other, existing systems, so the design of the method and details of these com
    9·1 answer
  • Can You Get Commission Shortcut For FREE?
    15·1 answer
  • Assume that we have an application with a total of 500,000 instructions where 20% of them are the load/store instructions with a
    14·1 answer
  • Which operating system became obsolete with the arrival of more advance graphical user interfaces
    14·1 answer
  • Write a program called DeliveryCharges for the package delivery service in Exercise 4. The program should again use an array tha
    9·1 answer
  • CHEMISTRY. metal+water》base+...............​
    12·1 answer
  • Five real world objects with similar characteristics​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!