A programmer notices the following two procedures in a library. The procedures do similar, but not identical,
things.

Procedure square (n) returns the value n2

Procedure cube (n) returns the value n3

Which of the following procedures is a generalization of the procedures described above?
A. Procedure Add (n, m), which returns the value n + m
B. Procedure Fourth (n), which returns the value n4
C. Procedure Polynomial(n), which returns the value n3 +n2
D. Procedure Power (n, m), which returns the value nm

Answers

Answer 1

Answer:

D. Procedure Power (n, m), which returns the value n^m

Explanation:

Given

[tex]square(n) \to n^2[/tex]

[tex]cube(n) \to n^3[/tex]

Required

The generalization

The given functions are power functions which returns the power of n to a certain value.

The power sequence follows:

[tex]fourth(n) \to n^4[/tex]

[tex]fifth(n) \to n^5[/tex]

[tex]sixth(n) \to n^6[/tex]

------

-----

--

[tex]power(n,m) \to n^m[/tex]

Hence, (d) is correct


Related Questions

What is the output of:

print (8 % 4)

Answers

Answer:

0

Explanation:

The statement, print(8 % 4) will produce the output 0 ;

The print statement is an inbuilt function which is used to output a typed string or display result of a Mathematical calculation and so on.

The expression in the print statement gives 0;

8%4 means, the remainder when 8!is divided by 4 ; 8 /4 gives 2 without a remainder. Meaning that :

8%4 = 0

Hence, print(8 % 4) = 0

help,these are true and false and tick and cross ​

Answers

Answer:

1.

a.true

b.false

2a internal

Explanation:

hope it helps you

If a user has just added a simple triangle shape into a diagram, how can the triangle be adjusted? Check all that
apply.

O by making it bigger

O by adjusting it to be SmartArt

O by making it smaller

O by adjusting it to be different style

O by making it thinner

O by making it thicker

O by adjusting it to be a different color

O by rotating it

Answers

Mark Brainliest please

Answer :

By making it bigger
By adjusting it to be SmartArt

I just need some help working out this Java code! I can list the instructions below:
Modify the CountSpaces program so that contains a String that holds your favorite inspirational quote. Pass the quote to the calculateSpaces method and return the number of spaces to be displayed in the main method.

We're given this to start however I have been struggling as there are two classes and it's been confusing me. Thanks so much for any help! All good and God Bless!

public class CountSpaces
{
public static void main(String[] args)
{
// write your code here
}
public static int calculateSpaces(String inString)
{
// write your code here
}
}

Answers

Answer:

public class CountSpaces

{

   public static void main(String[] args)

   {

       String quote = "The concept of infinity is meaningless inside of an insane human mind.";

       int nrSpaces = calculateSpaces(quote);

       System.out.println("Nr spaces in your quote is " + nrSpaces);

   }

   

   public static int calculateSpaces(String inString)

   {

       int count = 0;

       

       for (int i = 0; i < inString.length(); i++) {

           if (inString.charAt(i) == ' ') {

               count++;

           }

       }

       return count;

   }

}

Explanation:

In this example there is only one class, and since all methods are static the true concept of the class is not even being used.

1. Ngangingazi Ukuthi Ukulalela Abazali Nothisha Bami Kuletha Impumelelo
Enhle Kangaka.
[50]​

Answers

Answer:

yebo kumele ubalalele ngoba ayikho into yakho eyophumelela ungabalalelanga abazali

According to the author, "U.S. Security strategy and U.S. Identity towards Internet governance are all anchored in the idea of freedom." On what basis does the author make that claim?

Answers

Answer:

The answer

Explanation:

How Many types of application Software are there?​

Answers

Answer:

there are 2 types of application software

who established computer​

Answers

Answer:

Charles Babbage

Explanation:

I studied abt him

. Create a java File call Sales.Java contains a Java program that prompts for reads in the sales for each of 5 salespeople in a company. It then prints out the id and amount of sales for each salesperson and the total sale. 2. Compute and print the average sale. 3. Find and print the maximum and minimum sale. 4. After the list, sum, average, max and min have been printed, ask the user to enter a value. Then print the id of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered. 5. Instead of always reading in 5 sales amounts, in the beginning ask the user for the number of sales people and then create an array that is just the right size. The program can then proceed as before

Answers

Answer:

The program is as follows:

import java.util.*;

public class Sales{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int salesPeople;

 System.out.print("Number of Sales People: ");

 salesPeople = input.nextInt();

 int[] salesID = new int[salesPeople];

 float[] salesAmount = new float[salesPeople];

 float total = 0;

 for(int i = 0; i<salesPeople;i++){

     System.out.print("ID: ");      salesID[i] = input.nextInt();

     System.out.print("Amount: ");      salesAmount[i] = input.nextFloat();

     total+=salesAmount[i];  }

 System.out.println("ID\t\tAmount");

 for(int i = 0; i<salesPeople;i++){

     System.out.println(salesID[i]+"\t\t"+salesAmount[i]);  }

 System.out.println("Total Sales: "+total);

 System.out.println("Average Sales: "+total/salesPeople);

 Arrays.sort(salesAmount);

 System.out.println("Minimum Sales: "+salesAmount[0]);

 System.out.println("Maximum Sales: "+salesAmount[salesPeople-1]);

 float sales;

 System.out.print("Print records that exceed: ");      sales = input.nextFloat();

 System.out.println("\nID\t\tAmount");

 int count = 0;

 for(int i = 0; i<salesPeople;i++){

     if(salesAmount[i]>sales){

         System.out.println(salesID[i]+"\t\t"+salesAmount[i]);

         count++;      }  }

 System.out.print("Total sales records that exceed "+sales+" are: "+count);

}

}

Explanation:

See attachment for program source file where comments are used as explanation

the first day anna read a quarter of the book. on the second day she read a third of the remainder. noticed that after two days he had 80 pages left unread. how many pages did the book have?​

Answers

Answer:

160 pages

Explanation:

[tex]Day\ 1 = \frac{1}{4}[/tex]

[tex]Day\ 2 = \frac{1}{3}Remainder[/tex]

[tex]Left = 80[/tex]

Required

The number of pages

Let the number of pages be x.

So, on day 1; we have:

[tex]Day\ 1 = \frac{1}{4}x[/tex]

After day 1, there are:[tex]\frac{3}{4}x[/tex] left ----------------- i.e x - 1/4x

On day 2, we have:

[tex]Day\ 2 = \frac{1}{3} * \frac{3}{4}x[/tex]

[tex]Day\ 2 = \frac{1}{4}x[/tex]

At this point, we have:

[tex]Day\ 1 = \frac{1}{4}x[/tex]

[tex]Day\ 2 = \frac{1}{4}x[/tex]

[tex]Left = 80[/tex] ---- pages left

The summation of all must equal x, the book pages

[tex]Day\ 1 + Day\ 2 + Left = Total\\[/tex]

[tex]\frac{1}{4}x + \frac{1}{4}x+ 80= x[/tex]

Simplify the left-hand side

[tex]\frac{1}{2}x+ 80= x[/tex]

Collect like terms

[tex]x - \frac{1}{2}x= 80[/tex]

Simplify

[tex]\frac{2-1}{2}x= 80[/tex]

[tex]\frac{1}{2}x= 80[/tex]

Multiply by 2

[tex]2 * \frac{1}{2}x= 80*2[/tex]

[tex]x = 160[/tex]

5.2
Explain ONE reason why the special equipment is used when
testing eyesight for a driver's licence.
(2)​

Answers

Answer:

In order to reduce the risk of accidents on the roads.

Explanation:

The special equipment is used when  testing eyesight for a driver's license in order to reduce the risk of accidents on the roads. Good eyesight is very important for good and safe driving so to find out the eyesight of the driver, the license officer used special equipment in order to check driver's eyes. If the eyesight is good, the officer provide license to the person otherwise not so that no accidents happen on the road.

what do you understand by the terms:
I)input
ii)process
iii)storage
iv)output

Answers

an output device translate information processed by the computer into a form which you can understand.

input device are used to enter information such as letters, numbers, sounds or picture into a computer.

Have you searched Buzz Ch.at on playstore​

Answers

Answer:

Reorder terms.

y=52x−1

Cancel the common factor of 22.Factor 22 out of −2-2.

y−4=5x2+52⋅(2(−1))y-4=5x2+52⋅(2(-1))

Cancel the common factor.

y−4=5x2+52⋅(2⋅−1)y-4=5x2+52⋅(2⋅-1)

Rewrite the expression.

y−4=5x2+5⋅−1y-4=5x2+5⋅-1

Multiply 55 by −1-1.

y−4=5x2−5

Indicate whether the following statements are true or false:

a) Viruses protection programs only scan a computer's data for harmful viruses. True or False?

b) Software piracy is the authorised distribution and use of computer programs. True or False?

c) An individual has no right to examine the contents of any personal record representing him/her. True or False?

d) Information should not be held for longer than necessary.
True or False?

e) The privacy of the individual should be protected. True or False?

Answers

Answer:C

Explanation:I got it correct on the computer

Answer: a False (they scan for all of them)

b True

c False

d True

e True

Explanation:

Select the three reasons that the gaming industry is set to grow.

A) more colleges offering jobs in game design

B) a decrease in the average age of gamers

C) an expanding market on mobile phones

D) expanding markets in Asia

E) new accessories that will attract more players

Answers

The answers are A, C, E

Answer:

expanding markets in Asia, new accessories that will attract more players, an expanding market on mobile phones

Explanation:

todas las computadoras son controladas por hardware?

Answers

Answer:

"La placa base está compuesta de más partes que alimenten y controlen el equipo. A diferencia del software, el hardware es una entidad física. ... Sin embargo, sin la creación de hardware para realizar tareas dirigidas por software a través de la unidad central de procesamiento, el software sería inútil."

Explanation:

(Sorry, I don't know much Spanish, so there might be mistakes. I hope this helps you.)

A ____ is an icon that does not directly represent a file, folder or application but serves as a link to it?​

Answers

Answer:

Shortcut

Explanation:

A file can be defined as a computer resource that avails end users the ability to store or record data as a single unit on a computer storage device.

Generally, all files are identified by a name, icon, size, and type (format) such as audio, image, video, document, system, text, etc.

Furthermore, files are organized or arranged in directories. These directories are paths that describes the location wherein a file is stored on a computer system.

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer on how to perform a specific task and solve a particular problem. Thus, it's a computer program or application that comprises of sets of code for performing specific tasks on the system.

In Computer science, it's possible to create a shortcut in several directories (locations) on a computer, so as to reference a file, folder or software application and serve as an executable link.

Hence, a shortcut is an icon that does not directly represent a file, folder or application but serves as a link to it.

Additionally, deleting the shortcut of a data file, folder or software application would not permanently delete or uninstall the main data file respectively.

Please help me with my question ​

Answers

Answer:

1. Template

2. Name of the website

3. Signature of the instructor

What can always be seen in the Styles gallery?

O built-in styles with samples

O the original formatting of the document

O changes that have been made to the document's text

O examples of the last five formats used

Please help ASAP

Answers

Examples of the last five formats used

Answer:

examples of the last five formats used

please mark me as brainliest i dont have 1 yet :/

How are sensors and microprocessors used to control a central heating system which uses an oil burner as the source of heat

Answers

Answer:

sensors are used to measure physical quantities such as temperature, light, pressure, sound, and humidity. They send signals to the processor . a security alarm system may have an infrared sensor which sends a signal when the beam is broken.

Explanation:

im just smart lol

Why did Stephen Hawking stop playing hide and seek?

Answers

Answer:

because she keeps using a metal detector.

Kirstie needs a computer for word processing, emailing, downloading high definition TV
series from an online store and basic photo editing.
Which computer would you recommend for Kirstie? Give reasons for your answer.

Answers

NmmkkjdijdjrjrjdjirjrkdidiL028

Choose the issue that is occurring from the drop-down menu. During the , development teams transform the requirements into a software application design. During the , the software design is implemented by developers in code. In the , software is evaluated for quality. Any issues with the software are logged as to be resolved by developers. Software that is maintained by developers is said to be .

Answers

Answer: See explanation

Explanation:

During the, (software design phase), developmentt teams transform the requirements into a software application design.

During the (software development phase), the software design is implemented by developers in code.

In the (software evaluation phase), software is evaluated for quality.

Any issues with the software are logged as (bugs) to be resolved by developers.

Software that is maintained by developers is said to be (supported).

Answer:

1) 2

2) 1

3) 2

4) 2

5) 3

Explanation: just did it

You are calculating commissions for sales staff at work. Employees receive ten dollars for every item sold. Your boss also wants to know the grand total paid to all employees as commission. How would you set this up in an Excel workbook and would you use absolute references, relative references, or both?

Answers

Answer:

To find the grand total paid to all employees as commission, we note the following;

The amount received by employees as commission for each item sold, r = $10.00

The information the boss wants to know = The grand total paid to all employees as commission

Let 'n' represent the the total sales, we have;

The grand total commission = Total sales × Commission

1) On MS Excel, four columns are created, labelled, Serial number, Employee Name, Number of Items Sold, Commission

2) In the second row, in the cell under the Commission column heading, Input the formula '=(Cell reference of adjacent Number of Items Sold) × 10' in the cell

3) Copy the the above formula to all the cells in the Commission column by clicking on the cell containing the formula, moving the mouse to the bottom right corner of the cell, and when the mouse pointer changes to a cross sign, left click and hold and drag to all the cells in the column

4) Input the formula =SUM(Argument) in the blank cell below the created Commission list

Where;

Argument = The reference to the range of cells containing the values in the Commission column

5) The output of the =SUM formula is the grand total paid to employees as commission

Explanation:

Diana has created a graphic design portfolio for a major project. What kind of portfolio would increase Dlana's chances of getting selected?
OA
a portfolio with some case studies of her graphic design work
OB.
a portfolio with graphic designs in her favorite theme
Ос.
a portfolio containing contact numbers of references
OD.
a portfolio that emphasizes large images and many colors
OE. a portfolio that emphasizes her qualifications and experience

Answers

Answer:

Hello There!!

Explanation:

I believe the answer is O A. a portfolio with some case studies of her graphic design work.

hope this helps,have a great day!!

~Pinky~

what is an operating system​

Answers

Answer:

An operating system is the primary software that manages all the hardware and other software on a computer. The operating system, also known as an “OS,” interfaces with the computer’s hardware and provides services that applications can use.

the software that supports a computer's basic functions, such as scheduling tasks, executing applications, and controlling peripherals

Jax earned 144 points on a research project. In this situation, what is the number 144? Group of answer choices data information knowledge output

Answers

Answer: data

Explanation:

Data refers to symbols or numbers that aren't meaningful. It's an an individual unit which consists of raw materials. Data hato be interpreted in order to become meaningful. They are fact or figures. Examples of data include 24, London, 144 etc.

Information on the other hand is a data that has been processed. e.g. Bob has an aggregate score of 144. Based on the question given, the number 144 is a data as it isn't meaningful yet.

Answer:

The answer is A

Explanation:

"as data"

Can anyone help me solve this?

Answers

Answer:

what should be basically be done in this question?

that’s not a question

One of the following is NOT a type of Intellectual Property

Answers

Group of answer choices.

a) Copyright

b) Trademark

c) Trade Secrets

d) Privacy​

Answer:

d) Privacy​

Explanation:

An intellectual property can be defined as an intangible and innovative creation of the mind that solely depends on human intellect.

Simply stated, an intellectual property is an intangible creation of the human mind, ideas, thoughts or intelligence. They include intellectual and artistic creations such as name, symbol, literary work, songs, graphic design, computer codes, inventions, etc.

Generally, there are different types of intellectual property (IP) and this includes;

a) Copyright

b) Trademark

c) Trade Secrets

However, privacy is a type of intellectual property.

What is a number that refers to the position of an item on a list?
variable
parameter
operator
index
PLZ HELP IM TIMED

Answers

Answer:

Parameter

Explanation:

a parameter is an argument that is used to call something, for example in an array when 0 is referenced as the first element in the array.

Other Questions
Suppose that we want to evaluate the effect of several variables onannual saving and that we have a panel data set on individuals collected in January1990 and January 1992. If we include a year dummy variable for 1992 and use firstdifferencing, can we also include age in the original model? Explain. What will happen when the country'scurrency is undervalued? Question 5 of 45Why was the United Nations formed after World War II?A. To prevent any one country from wielding too much military powerO B. To punish the totalitarian countries responsible for starting thewarC. To encourage cooperation rather than conflict among globalpowersD. To create a balance of power between democracies andcommunist states How does the skin regulate body temperature?Group of answer choicesby increasing sweat productionby producing vitamin Dby retaining waterby regulating fat content in the epidermis Explain the difference in How the tree and the fox get carbohydrates to use for energy Solve for x.none of these 21.868.266.42Please helppp Is this a complete sentence? Please help due today What development helped improve trade in the Midwest? Bianca recently bought a rope that is 25 yards long. Find the length in feet please help confused tyy 14cm and 31cm and 34cm equal Aurlien parle de ses projets (plans) et des projets de sa famille et de ses amis. Mettez les verbes au futur.in pic: from bleak house which statement describes a way in which Mr.Skimpole attempts to obtain the money he needs? 3. Simplify, 27+3]{14-3(15-5) -53-51-19 Read this sentence from the section "First Tree Planted by Mrs. Taft."Because of this novel characteristic which singles out Washington from other cities, coupled with the fact that the trees are now in full splendor, a short history of their appearance in the capital city is of interest.How does the word "novel" affect the meaning of the sentence?It suggests that cherry trees grow natively in Washington, D.C.It emphasizes how unusual it is for a U.S. city to have so many cherry trees.It implies that the cherry trees are a new addition to Washington, D.C.It shows that cherry trees have become common in many U.S. cities. If you had to right a paper for New York Times talking about human rights, what would you right? Suppose the 100 people in society X all know the same 10 facts, while the 10 people in society Z specialize, with each person knowing 5 unique facts as well as 5 facts also known by the other 9 members of the society. If the standard of living is roughly equivalent to the average number of social facts known per person, which society has a higher standard of living SOMEONE HELP 60 POINTS!!!!! When creating business publications, these two factors must be determined before planning the layout. Libby wants to buy 290 raspberry yogurts. They are sold in packs of 4. How many packs does she need to buy?