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:

Answers

Answer 1

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)


Related Questions

A small company with 100 computers has hired you to install a local area network. All of the users perform functions like email, browsing and Office software. In addition, 25 of them also do a large number of client/server requests into a database system. Which local area network operating system would you recommend?

Answers

Answer:

Answer to the following question is as follows;

Explanation:

Windows 7 for 100 users and Windows 8.1 for 25 users are the best options since they both enable networking and active directory, and Windows 8.1 also offers Windows server capabilities.

Winxp would therefore work for $100, but it is unsupported and has no updates.

If you wish to go with open source, you can choose Ubuntu 16 or 18 or Linux.

The message signal m(t) = 10cos(1000t) frequency modulates the carrier c(t) = 10cos(2fct). The modulation index is 10.
1) Write an expression for the modulated signal u(t).
2) What is the power of the modulated signal.
3) Find the bandwidth of the modulated signal.

Answers

Answer:

1) 10cos ( 2πfct + 10sin 2πfmt )

2) 50 watts

3) 1000 Hz

Explanation:

m(t) = 10cos(1000πt)

c(t) = 10cos(2πfct )

modulation index (  = 10

1) expression for modulated signal ( u(t) )

u(t) = Ac(cos 2πfct ) + A (cos 2πfct m(t) ) Am cos2πf mt

      = 10cos 2πfct + 100 cos 2πfct  cos2π500t

      = 10cos ( 2πfct + 10sin 2πfmt )

2) power of modulated signal

power of modulated signal  μ^2 / 2 ]

           = 10^2/2 ]

           = 50 watts

3) Bandwidth

B = 2fm  = 2 * 500 = 1000 Hz

Which attack form either exploits a software flaw or floods a system with traffic in order to prevent legitimate activities or transactions from occurring?

Answers

Answer:

Denial of service attack.

Explanation:

In Cybersecurity, vulnerability can be defined as any weakness, flaw or defect found in a software application or network and are exploitable by an attacker or hacker to gain an unauthorized access or privileges to sensitive data in a computer system.

This ultimately implies that, vulnerability in a network avail attackers or any threat agent the opportunity to leverage on the flaws, errors, weaknesses or defects found in order to compromise the security of the network.

Data theft can be defined as a cyber attack which typically involves an unauthorized access to a user's data with the sole intention to use for fraudulent purposes or illegal operations. There are several methods used by cyber criminals or hackers to obtain user data and these includes DDOS attack, SQL injection, man in the middle, phishing, sniffing, DOS attack, etc.

A denial of service (DOS) attack is a form of cyber attack that involves either the exploitation of a software flaw or overwhelmingly floods a computer system in a network with traffic in order to prevent authorized users from performing legitimate activities or transactions.

Some of the ways to prevent vulnerability or cyber attacks in a network are;

1. Ensure you use a very strong password with complexity through the use of alphanumerics.

2. You should use a two-way authentication service.

3. You should use encrypting software applications or services.

The purpose of the five-entity minimum, six-entity maximum is to establish a relatively small baseline for you to keep the scope of your database project constrained.

a. True
b. False

Answers

It would have to be false ^

In this technique, each attribute is associated with a specific feature of a face, and the attribute value is used to determinethe way a facial feature is expressed. This technique is called._______________

Answers

Answer:

Chernoff faces.

Explanation:

Chernoff faces is a data visualization technique that was developed by a statistician named Herman Chernoff. He introduced this data visualization technique to the world in 1973 to represent multivariate or multidimensional data containing at least eighteen (18) variables.

In Chernoff faces, each attribute is associated with a specific feature of a face (nose, eyes, ears, hair, mouth, and eyebrows), and the attribute value with respect to size, shape, orientation, colour and placement is used to determine the way a facial feature is expressed.

The Chernoff face is a technique designed and developed to help detect similarities between different items and discern subtle changes in facial expressions from the perspective of an observer.

____________________ are designed according to a set of constraints that shape the service architecture to emulate the properties of the World Wide Web, resulting in service implementations that rely on the use of core Web technologies (described in the Web Technology section).

Answers

Answer: Web services

Explanation:

Web service refers to a piece of software which uses a XML messaging system that's standardized and makes itself available over the internet.

Web services provides standardized web protocols which are vital for communication and exchange of data messaging throughout the internet.

They are are designed according to a set of constraints which help in shaping the service architecture in order to emulate the properties of the World Wide Web.

Answer:

The correct approach is "REST Services".

Explanation:

It merely offers accessibility to commodities as well as authorization to REST customers but also alters capabilities or sources.

With this technique, all communications are generally assumed to be stateless. It, therefore, indicates that the REST resource actually may keep nothing between runs, which makes it useful for cloud computing.

This means that the surface area is composed of the base area (i.e., the area of bottom square) plus the side area (i.e., the sum of the areas of all four triangles). You are given the following incomplete code to calculate and print out the total surface area of a square pyramid: linclude > h: base azea- calcBasekrea (a) : cout << "Base auxface area of the squaze pyzamid is" << base area << "square feet."< endi: // add your funetion call to calculate the side ares and assign // the zesult to side area, and then print the result //hdd your function call to print the total surface area return 0F float calcBaseArea (float a) return pou (a, 2) /I add your function definicion for calcSideärea here // add your function definition tor prntSurfârea here This code prompts for, and reads in the side length of the base (a) and height of a square pyramid (h) in feet, and then calculates the surface area. The function prototype (i.e. function declaration), function definition, and function call to calculate and print the base area has already been completed for you. In the above program, a and h are declared in the main function and are local to main. Since a is a local variable, notice how the length a must be passed to calcBaseArea to make this calculation. One of your tasks is to add a new function called calesidearea that computes and returns the side area of the square pyramid. Given that the formula uses both the length a and height h of the square pyramid, you must pass these two local variables to this function. You will assign the returned value of this function to side area and then print the value to the terminal. Refer to what was done for calcBaseArea when adding your code. Your other task is to add a new function called prntsprfArea that accepts the base area and side area values (i.e, these are the parameters) and prints out the total surface area of the square pyramid inside this function. Since this function does not return a value to the calling function, the return type of this function should be void Now, modify the above program, referring to the comments included in the code. Complete the requested changes, and then save the file as Lab7A. opp, making sure it compiles and works as expected. Note that you will submit this file to Canvas

Answers

Answer:-

CODE:

#include <iostream>

#include<cmath>

using namespace std;

float calcBaseArea(float a);

float calcSideArea(float s,float l);

void prntSprfArea(float base_area,float side_area);

int main()

{

float h;

float a;

float base_area

float side_area;

cout<<"Enter the side length of the base of the square pyramid in feet : ";

cin>>a;

cout<<"Enter the height of the square pyramid in feet : ";

cin>>h;

base_area=calcBaseArea(a);

side_area=calcSideArea(a,h);

cout<<"Base surface area of the square pyramid is "<<base_area<<" square feet. "<<endl;

cout<<"Side area of the square pyramid is "<<side_area<<" square feet."<<endl;

prntSprfArea(base_area,side_area);

return 0;

}

float calcBaseArea(float a)

{

return pow(a,2);

}

float calcSideArea(float s,float l)

{

float area=(s*l)/2;

return 4*area;

}

void prntSprfArea(float base_area,float side_area)

{

cout<<"Total surface area of the pyramid is "<<base_area+side_area<<" square feet.";

OUTPUT:

3. Most widely used structure for recording database modifications is called
A. Scheduling
B. Buffering
C. Log
D. Blocking​

Answers

Answer:

C. log

Explanation:

The log is a sequence of log records, recording all the update activities in the database

hope this helps

Answer:

C. Log is the

answer

Explanation:

a sequence of log records recording all update activity in database


How did the military in the early 1900s move resources?
engines.
In the early 1900s, military moved their resources to distant locations with the help of

Answers

Answer:

In the early 1900s, military moved their resources to distant locations with the help of trains, ships, and, to a lesser extent, horse-drawn wagons. This was so because at that time airplanes did not yet exist, capable of transporting inputs to any part of the world in a very short period of time. Therefore, inputs and resources were brought by sea and, if impossible, through land, using railways or highways.

True or false, an implicitly unwrapped optional variable must have an exclamation mark affixed after it every time it is used. 答案选项组

Answers

Answer:

False.

Explanation:

Implicit unwrapped optional variables are those which are at option and they might be nil. It is not necessary that all implicit unwrapped optional variables should have an exclamation mark. Swift may eliminate the need for unwrapping.

Given the code as follows: main() { int i = 3, n; float x; x = i; n = 8 % x; } What problem will occur? Group of answer choices A compilation error will occur. A run time error will occur. An inheritance error will occur. No problem will occur at all.

Answers

Answer:

A compilation error will occur.

Explanation:

The % operator does not accept a float as its right-hand operand.

A security administrator currently spends a large amount of time on common security tasks, such aa report generation, phishing investigations, and user provisioning and deprovisioning This prevents the administrator from spending time on other security projects. The business does not have the budget to add more staff members.
Which of the following should the administrator implement?
A. DAC
B. ABAC
C. SCAP
D. SOAR

Answers

Answer: SOAR

Explanation:

SOAR (security orchestration, automation and response) refers to compatible software programs wfuvg allows an organization to collect data that has to do with security threats and also enables them respond to security events without the needs of a human assistance.

Since the administrator doesn't have time on other security projects, the SOAR will be vital in this regard.

The correct order to follow for a technology awareness strategy is ____________________. Group of answer choices

Answers

Answer:

a. Determine your needs

b. make the Assessments of  the resources available to you,

c. do a ranking of the resources in order of their usefulness to you,

d. create or allow the time to make use of the resources.

Explanation:

technology strategy is a concept that gives the important elements of a department and how these elements can interact with each other in order to get the continuous value.

The correct order is to first determine what your needs are, then you carry out an assessment of all the resources that you have at your disposal, then you rank these resources from the most useful to the least and the last is for you to create the time that you would have to use these resources.

hub stake should always be provided with a lath stake so that the information about what the hub represents can be written on the lath stake True False

Answers

Answer:

True

Explanation:

To protect them from becoming disturbed by construction operations, hub stakes are placed on both sides of a roadway at a certain distance outside the work zone. The final stakes are connected to the hub stakes, which are used to write the essential information.

As a result, hub stakes are always accompanied with stakes.

12. How many different documents can
you have open at one time?

Answers

Answer:

10 documents ^_^

Explanation:

I can open it at the same time on my laptop ●~●

Switched Ethernet, similar to shared Ethernet, must incorporate CSMA/CD to handle data collisions. True False

Answers

Answer:

False

Explanation:

The Carrier-sense multiple access with collision detection (CSMA/CD) technology was used in pioneer Ethernet to allow for local area networking.  Carrier-sensing aids transmission while the collision detection feature recognizes interfering transmissions from other stations and signals a jam. This means that transmission of the frame must temporarily stop until the interfering signal is abated.

The advent of Ethernet Switches resulted in a displacement of the CSMA/CD functionality.

Data-mining agents work with a _____, detecting trends and discovering new information and relationships among data items that were not readily apparent.

Answers

Answer: data warehouse

Explanation:

Data-mining agents work with a Data warehouse which helps in detecting trends and discovering new information.

A data warehouse refers to the large collection of business data that is used by organizations to make decisions. It has to do with the collection and the management of data from different sources which are used in providing meaningful business insights.

While configuring a wireless access point device, a technician is presented with several security mode options. Which of the following options will provide the most secure access?

Answers

Answer:

Bro this is my area the answer is WPA2 and AES  

Explanation:

its because AES is a more secure encryption protocol introduced with WPA2. AES isn't some creaky standard developed specifically for Wi-Fi networks, either. It's a serious worldwide encryption standard that's even been adopted by the US government.

There are many possible variations in wireless network design depending on the surroundings.

What is wireless network?

Even in a complicated single site, different wireless networks running on the same hardware as part of the broader wireless LAN environment can have different network configuration fundamentals needed for a successful deployment.

At the same time, a number of essential network configuration activities are part of any successful wireless project's typical chores. Let's look at the broad and specific procedures that wireless experts should take while setting up enterprise-grade Wi-Fi networks.

Therefore, There are many possible variations in wireless network design depending on the surroundings.

To learn more about wifi, refer to the link:

https://brainly.com/question/6145118

#SPJ5

If an OS is using paging with offsets needing 12 bits, give the offset (in decimal or hexadecimal) to: the third word on a page _____ the last word on a page ______ (recall: 1 word is 4 bytes)

Answers

Answer:

Explanation:

If an OS is using paging with offsets needing 12 bits, give the offset (in decimal or hexadecimal) to: the third word on a page the last word on a page.

what is the answer to the question asked in the picture attached below ​

Answers

Answer:

option - b

Explanation:

i think this is the right answer..

Which control program flow options runs to the end of the code block and resumes the break mode at the statement that follows?

Answers

Answer:

Step Out

Explanation:

In the field of computer science, the control flow or the flow of control is defined as the order where the individual statements, [tex]\text{function calls}[/tex] or instructions of a program are [tex]\text{evaluated or executed. }[/tex]

The Step Out control flow program runs to the [tex]\text{end of the code block}[/tex] and it resumes the [tex]\text{break mode}[/tex] at the statement that it follows.

provides an automated method for discovering host systems on a network. Although it doesn't necessarily discover all weaknesses, it does determine which systems are active on the network and what services they offer or what ports are available

Answers

Answer:

Network scan

Explanation:

Cyber security can be defined as preventive practice of protecting computers, software programs, electronic devices, networks, servers and data from potential theft, attack, damage, or unauthorized access by using a body of technology, frameworks, processes and network engineers.

Some examples of cyber attacks are phishing, zero-day exploits, denial of service, man in the middle, cryptojacking, malware, SQL injection, spoofing etc.

Generally, a security assessment is carried out by network security experts on a regular basis to determine potential loopholes or vulnerabilities in the information and technology (IT) infrastructure. One of the techniques or approach used in security assessment is a network scan.

A network scan is a security assessment technique used for the automatic detection of host systems on a network. Although a network scan isn't capable of discovering or detecting all the weaknesses on a network, it avails users information about the computer systems that are active on the network and what services the computer systems offer or what ports are available on them.

Create and configure databases in oracle database management system operation administration

Answers

Answer:

You typically create a database during Oracle Database software installation. However, you can also create a database after installation.

Reasons to create a database after installation are as follows:

You used Oracle Universal Installer (OUI) to install software only, and did not create a database. You want to create another database (and database instance) on the same host computer as an existing Oracle database. In this case, this chapter assumes that the new database uses the same Oracle home as the existing database. You can also create the database in a new Oracle home by running OUI again. You want to make a copy of (clone) a database.

Compute change
A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. For example, 19 yields 3 fives and 4 ones. Write a single statement that assigns the number of one dollar bills to variable numOnes, given amountToChange. Hint: Use the % operator.
import java.util.Scanner;
public class ComputingChange {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int amountToChange;
int numFives;
int numOnes;
amountToChange = scnr.nextInt();
numFives = amountToChange / 5;
/* Your solution goes here */
System.out.print("numFives: ");
System.out.println(numFives);
System.out.print("numOnes: ");
System.out.println(numOnes);
}
}

Answers

Answer:

Explanation:

The following code is written in Java and modified to do as requested. It asks the user to enter a number that is saved to the amountToChange and then uses the % operator to calculate the number of 5 dollar bills and the number of 1 dollar bills to give back. A test case has been provided and the output can be seen in the attached image below.

import java.util.Scanner;

class ComputingChange {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       int amountToChange;

       int numFives;

       int numOnes;

       amountToChange = scnr.nextInt();

       numFives = amountToChange / 5;

       /* Your solution goes here */

       numOnes = amountToChange % 5;

       System.out.print("numFives: ");

       System.out.println(numFives);

       System.out.print("numOnes: ");

       System.out.println(numOnes);

   }

}

Resize vector countDown to have newSize elements. Populate the vector with integers {newSize, newSize - 1, ..., 1}. Ex: If newSize = 3, then countDown = {3, 2, 1}, and the sample program outputs:
#include
#include
using namespace std;
int main() {
vector countDown(0);
int newSize = 0;
int i = 0;
newSize = 3;
STUDENT CODE
for (i = 0; i < newSize; ++i) {
cout << countDown.at(i) << " ";
}
cout << "Go!" << endl;
return 0;
}

Answers

Answer:

Following are the code to the given question:

#include <iostream>//defining header file

#include <vector>//defining header file

#include <numeric>//defining header file

using namespace std;

int main()//main method

{

vector<int> countDown(0);//defing an integer array variable countDown

int newSize = 0;//defing an integer variable newSize that holds a value 0

int i = 0;//defing an integer variable i that initialize with 0

newSize = 3;// //use newSize to hold a value

countDown.resize(newSize,0);// calling the resize method that accepts two parameters

for (i = 0; i < newSize; ++i)//defining a loop that reverse the integer value

{

countDown[i] = newSize -i;//reverse the value and store it into countDown array

cout << countDown.at(i) << " ";//print reverse array value

}

cout << "Go!" << endl;//print message

return 0;

}

Output:

3 2 1 Go!

Explanation:

In the given code inside the main method an integer array "countDown" and two integer variables "newSize and i" is declared that initializes a value that is 0.

In the next step, an array is used that calls the resize method that accepts two parameters, and define a for a loop.

In this loop, the array is used to reverse the value and print its value with the message.

Use NAND operator to write; P or Q, and P -Q make an everyday implication sentence using only NAND

Answers

Answer:

Hence the answer is given as follows,

Explanation:

By using the NAND operator:-

P or Q and P -Q make an everyday implication sentence using the only NAND is given as,

Can you suggest a LinkedIn Helper (automation tool) alternative?

Answers

Answer:

Have you tried LinkedCamp alternative to LinkedIn Helper?

Well, LinkedCamp is a super-efficient cloud-based LinkedIn Automation Tool that empowers businesses and sales industries to drive more LinkedIn connections, hundreds of leads, sales, and conversions automatically.

Some other LinkedIn automation tools are:

Meet Alfred Phantombuster WeConnect ZoptoExpandi

Hope you find it useful.

Good luck!

Eureka! Is a telephone and Internet-based concierge service that specializes in obtaining things that are hard to find (e.g., Super Bowl tickets, first-edition books from the 1500s, Faberge eggs). It currently employs 60 staff members who work 24 hours per day (over three shifts). Staff answer the phone and respond to requests entered on the Eureka! Web Site. Much of their work is spent on the phone and on computers searching on the Internet. What type of connections should Eureka! consider from it’s offices to the outside world, in terms of phone and Internet? Outline the pros and cons of each alternative below and make a recommendation. The company has four alternatives:
1. Should it use traditional analog services, with standard voice lines, and use modems to dial into its ISP ($40 per month for each voice line plus $20 per month for each Internet access line)?
2. Should the company use standard voice lines but use DSL for its data ($40 per month per line for both services)?
3. Should the company separate its voice and data needs, using standard analog services for voice but finding some advanced digital transmission services for data ($40 per month for each voice line and $300 per month for a circuit with 1.5 Mbps for data)?
4. Should the company search for all digital services for both voice and data ($60 per month for an all-digital circuit that provides two PCM phone lines that can be used for two voice calls, one voice call and one data call at 64 Kbps, or one data call at 128 Kbps)?
5. Should the company invest in a modern-day fiber optic 10Mb/s flex? Research price.
NOTE: PLEASE PROVIDE DETAIL ANSWER OF THIS QUESTION.

Answers

Explanation:

Should the company separate its voice and data needs, using standard analog services for voice but finding some advanced digital transmission services for data ($40 per month for each voice line and $300 per month for a circuit with 1.5 Mbps for data)?

write a program that assigns values to
three variables, assigns the sum (adds
the three values to a variable called
total and prints total.

Answers

Explanation:

10:A program that assigns the sum 20,30,40

20: input 20,30,40

30:sum input

40: print total

End

A browser is a program that allow
A. users transfer messages and files through internet.
B. users search for relevant information on the WWW.
C. users to access and view web pages on the internet.
D. users exchange real-time messages or files with another online user​

Answers

C. users to access and view web pages on the internet.

Other Questions
Determine which of the items below would show up on a monthly bank statement. (Check all that apply.)Checks and other debits decreasing the account during the period Deposits and other credits increasing the account during the period Checks that the company has written, but have not cleared the bank yet Beginning-of-period balance in the account End-of-period balance in the account Checks and other credits decreasing the account during the period How was the Ngorongoro Crater created? by a volcano by a meteor with dynamite by wind erosion If he got the job, he would have to commute 50 miles to wok, so he decided the workwas not worth it.What sentence type is this?ComplexSimpleCompoundCompound-complexHELP ME A bag contains 6 apples and 4 oranges. If you select 5 pieces of fruit withoutlooking, how many ways can you get 5 apples? Fern invested $6400 into a continuously compounded account with an interest rate of 1.5%. After 10 years, how much is the account worth Read the following excerpt.Tourette syndrome is a medical condition. People with this condition has little or no control over the sounds they makes. Jaylen was bullied his peers a lot because he has Tourette syndrome.He decides to do something about it though.This excerpt needs to be edited forspelling and word spacing.capitalization and spelling.grammar and capitalization.word spacing and grammar. Read the sentence.When we read that many of the cereals bursting with sugars were those being marketed to kids, we set out to determine if this was indeed the case.What is the effect of the word bursting on the authors purpose? What does Boyle's Law state about the relationship between the pressure and volume of an ideal gas at constant temperature? a) The product of pressure and volume increases as pressure decreases. b) The sum of pressure and volume is constant. c) The sum of product and volume decreases as volume increases. d) The product of pressure and volume is constant. Fill in the blanks in the following sentences with the appropriate forms of the verbs in parentheses.1. Est-ce que Martin jouer avec moi? (pouvoir)2. Les enfants du gteau chocolat. (vouloir)3. -je me coucher? (devoir)4. Elles n'ont pas aller au cinma hier soir. (pouvoir)5. Le docteur a voir le patient. (devoir)Fill in the blanks in the following sentences with the appropriate imperfect forms of the verbs in parentheses.6. Quand j' au lyce, je rentrais souvent en (the french word for "late" is supposed to go here but brainly detects it as an inappropriate word). (tre)7. Il manger cette pomme. (aller)8. Nous la maison ce matin. (quitter)9. Chaque jour, elle le mnage. (faire)10. Ils une tasse de th. (vouloir)Translate the following sentences into French.11. Hello, doctor. I am sick.12. What is the matter?13. Yesterday, I had a fever.14. Now I am coughing.15. And I have a runny nose.16. Ah, you have the flu.17. I am going to write you a prescription.18. I would also like to take your temperature.19. I am prescribing a cough syrup.20. You should buy some tissues. Identify the initial value and rate of change for the graph shownA coordinate plane graph is shown. A line passes through the y-intercept at 1 and through the point 5 comma 4.Initial value: 1, rate of change 3 over 5.Initial value: 3 over 5., rate of change: 0Initial value: 1, rate of change 5 over 3.Initial value: 5 over 3., rate of change: 0 please give the answer very fast The foot of a ladder is placed 9 feet away from a wall. If the top of the ladder rests 13 feet up on the wall, find the length of the ladder.4 feet15.81 feet8.81 feet13 feet you are mohit mishra , residing at 54,Jawahar colony, Indore (M.P.). Write a letter to the collecter of your district complaining against the poor water supply in your locality In most unsaturated fatty acids found in animal fats, vegetable oils, and biological membranes, the cis isomer predominates. true false Given y = f(u) and u=g(x), find =f(g(x))g'(x) for the following functions.dxy = cos u, u = 4x - 3dydx = f'(g(x))g'(x) = 0 find the area of the triangle Why is this vers an example of iambic pentameter? Someone to help me with these math problems please !!! Find the perimeter of quadrilateral ABCD with vertices A(0, 4), B(4, 1), C(1, -3), and D(-3, 0). The water cycle is a closed system, meaning no water enters from beyond the system nor leaves thesystem. What does that say about the importance of keeping water on Earth free from pollution?