Write a pseudo code to complete the factorial of 5 recursively and print the value on the screen. I’ll mark brianliest

Answers

Answer 1

Answer:

number = int(input('Enter number: '))  

factorial = 1

for i in range(1, number + 1):

   factorial = factorial * i

print(factorial)

You will need to input 5 when you run the code. Or you can add change the "number" to "number = 5"


Related Questions

what is the main reason for adding somebody into the BCC list for an email?​

Answers

Answer:

protecting email address privacy

Explanation:

for securing and privacy reasons and it is for the best

Hawaii and japan are examples of islands made by? You have to write it.

Answers

Answer:

Volcanic activity

ASKING AGAIN CAUSE I GOT A WEIRD LINK
¸ . ★ ° :. . • ° . * :. ☆¸ . ★ ° :. . • ° . * :. ☆ ¸ . ★ ° :. . • ° . * :. ☆ ¸ . ★ ° :. . • ° . * :. ☆
the purpose of the ___________ element is to group together a set of one or more [h1] element so that theyre treated as a single heading
a. header
b. hgroup
c. h1group
d. group

Answers

Answer: A.) Header
Answer Explanation: Process of elimination

Write a program that accepts an integer value called multiplier as user input. Create an array of integers with ARRAY_SIZE elements. This constant has been declared for you in main, and you should leave it in main. Set each array element to the value i*multiplier, where i is the element's index. Next create two functions, called PrintForward() and PrintBackward(), that each accept two parameters: (a) the array to print, (b) the size of the array. The PrintForward() function should print each integer in the array, beginning with index 0. The PrintBackward() function should print the array in reverse order, beginning with the last element in the array and concluding with the element at index 0. (Hint: for help passing an array as a function parameter, see zybooks section 6.23) As output, print the array once forward and once backward.

Answers

Answer:

The program in C++ is as follows:

#include <iostream>

using namespace std;

void PrintForward(int myarray[], int size){

   for(int i = 0; i<size;i++){        cout<<myarray[i]<<" ";    }

}

void PrintBackward(int myarray[], int size){

   for(int i = size-1; i>=0;i--){        cout<<myarray[i]<<" ";    }

}

int main(){

   const int ARRAY_SIZE = 12;

   int multiplier;

   cout<<"Multiplier: ";

   cin>>multiplier;

   int myarray [ARRAY_SIZE];

   for(int i = 0; i<ARRAY_SIZE;i++){        myarray[i] = i * multiplier;    }

   PrintForward(myarray,ARRAY_SIZE);

   PrintBackward(myarray,ARRAY_SIZE);

   return 0;}

Explanation:

The PrintForward function begins here

void PrintForward(int myarray[], int size){

This iterates through the array in ascending order and print each array element

   for(int i = 0; i<size;i++){        cout<<myarray[i]<<" ";    }

}

The PrintBackward function begins here

void PrintBackward(int myarray[], int size){

This iterates through the array in descending order and print each array element

   for(int i = size-1; i>=0;i--){        cout<<myarray[i]<<" ";    }

}

The main begins here

int main(){

This declares and initializes the array size

   const int ARRAY_SIZE = 12;

This declares the multiplier as an integer

   int multiplier;

This gets input for the multiplier

   cout<<"Multiplier: ";    cin>>multiplier;

This declares the array

   int myarray [ARRAY_SIZE];

This iterates through the array and populate the array by i * multiplier

   for(int i = 0; i<ARRAY_SIZE;i++){        myarray[i] = i * multiplier;    }

This calls the PrintForward method

   PrintForward(myarray,ARRAY_SIZE);

This calls the PrintBackward method

   PrintBackward(myarray,ARRAY_SIZE);

   return 0;}

13. Place where names, addresses and email information
is stored

Answers

Answer in ur email

Explanation:

BRAINLIEST WILL BE GIVEN

which technique can you use on your pages to improve ratings in search engines

a. on-page
b. search review
c. off-page
d. off-site

Answers

Answer:

mine is search review

Explanation:

so u can know if its bad or good rewiev s are very helpfull

1-DESIGN TAB....................2-LAYOUT TAB .

1-wordart styles,

2-table size,

1-Table styles,

2-alignment,

1-draw borders,

2-rows and columns

Answers

design tab

wordart stylestable stylesdraw border

layout tab

table sizerows and columnsalignment

Answer:

The person above is correct.

Explanation:

Enumerate a couple of reasons why it would be impracticable for the external devices to be connected directly to the processor or the system bus

Answers

Answer:

(a) Difference in data transfer rates

(b) Difference in word lengths

(c) Different peripherals with different modes of operation

Explanation:

There are several reasons. Some of them have been listed in the explanation section. A brief explanation is as follows

(a) Difference in data transfer rates

Some peripherals have fast transfer rate while some have slow transfer rates compared to the processor they are being connected to. This difference in the rates implies that a high speed system bus will find it difficult to communicate with a (say) low speed peripheral.

(b) Difference in word lengths

Another consideration is the word lengths. Often times, peripherals and the bus they are being connected with will have a different word lengths.

(c) Different peripherals with different modes of operation

In computer architecture, a processor can not be used to interact with peripheral of different mode of operations. In other word, each peripheral have its own mode and will require different means of connection.

Note that common skills are listed toward the top and less common skills are listed toward the bottom. According to O*NET, what are some common skills needed by Accountants? Select four options

mathematics
reading comprehension
equipment maintenance
quality control analysis
active listening
writing

Answers

Answer:

I. Mathematics.

II. Reading comprehension

III. Active listening

IV. Writing

Explanation:

O*NET is the short for Occupational Information Network and it is a comprehensive online database that is uniquely designed to provide information about job requirements, staff competencies, work styles, abilities, skills and other resources. Thus, O*NET is the primary source of occupational information for the private and public sector of the United States of America. Also, it helps to identify and develop the work styles, skills, activities and abilities of various occupations of the American workforce.

According to O*NET, some common skills needed by Accountants include the following;

I. Mathematics: an accountant is required to have a good knowledge of different mathematical concepts such as arithmetic, calculus, algebra, statistics, etc., as well as their application to the field of accounting.

II. Reading comprehension: he or she should be able to read and understand the informations contained in all work-related documents.

III. Active listening: accountants are required to pay adequate attention to the informations that are given by the customers without interjections.

IV. Writing: they should be able to compose well-written and clear textual informations about work-related activities.

Answer:

I. Mathematics.

II. Reading comprehension

III. Active listening

IV. Writing

Explanation:

Select the correct answer.
Which principle of animation is prominent in this picture?
A.staging
B.arcs
C.anticipation
D. timing

Answers

The principle of animation reflected in the image is the arcs principle.

What is animation?

Animation refers to the action of recreating actions and movements by using drawings or models.

What are the principles of animation?Animation is regulated by specific principles, some of them include:Anticipation: Showing the movement or position that anticipates an action.Timing: Making an action fast or slow by using a specific number of frames.Staging: Using specific elements to stage one action and avoiding unnecessary elements.Arcs: Showing the natural movement of a specific action.

Based on this, the principle used in the image is the arcs because it emphasizes the natural curve or natural movement of someone playing golf.

Learn more about draw in: https://brainly.com/question/4853831

Answer:

B. arcs

Explanation:

What happens once the Insert tab is used in PowerPoint to insert a chart into a presentation?
A separate data sheet opens in which to enter data for the chart.
The user is prompted to link to an external Excel spreadsheet
The user can edit the chart directly
Nothing happens

Answers

Answer:

A (because you can't have a chart without information, right?)

brainliest plz

Explanation:

Describe an association or rhyming phrase you have used to remember information. Was this a useful technique for you? Why or why not?

Answers

Answer:

I used the names George Clooney and Tim Allen to remember the pairs of nitrogenous bases in DNA.

Explanation:

DNA is composed of nucleotides, however the nucleotides are formed by nitrogenous bases called Adenine, Guanine, Cytosine and Thymine. Each nucleotide has a nitrogenous base, but these bases form pairs, allowing the nucleotides to come together. The pairs are formed solely by Timine and Adenine or Guanine and Cytosine.

As I needed to remember the formation of the pairs to do my biology test, I associated the first letter of each base, with the initials of two famous names.

As Guanina is paired with Cytosine (G-C), I associated this pair with the initial letters of the name George Clooney. As Timina is paired with Adenina (T-A), I associated this pair with the initials of the name Tim Allen.

2. Which of the following is not one of the guidelines for using instant messaging?A.You can use in place of all face-to-face communication.
B.Keep messages short.
C.Never text or send an instant message when you are angry.
D.Use it for casual conversations.​

Answers

Answer:

A. You can use in place of all face-to-face communication.

Explanation:

Hope this helps

Select the phrases that apply to Java classes or methods.

chart a list of inputs
hide the information
passing by reference
order of operations
passing by value
break a loop
testing conditions
specific computer action
create a new object

Answers

Answer:

graficar una lista de entradas

graficar una lista de entradas

crear un nuevo objeto

condiciones de prueba

romper un ciclo

romper un ciclo

Explanation:

In order to multitask, a computer must have two or more processors. True or False

Answers

Answer:

False

Explanation:

:) brainliest pls

Answer:

True

Explanation:

Explain what Fahd did wrong in the scenario below. Fahd is running ten programs at once on his laptop when it suddenly freezes up. To fix this problem, Fahd buys a new battery for his laptop.

Answers

Answer:

Well first off. if the laptop froze that doesn't mean the battery is dead to the point where a simple rest of the laptop wouldn't work out.

What are some other sites similar to brainly? By similar I mean being able to ask a question and answer them based on categories.

Answers

Answer:

jiskha.com

Explanation:

Answer:

Quora and Yahoo answers are alright

Choose the correct option that completes the sentence.
Cybersecurity measures should promote the
and
of data.

Answers

What are the answer options?

The practice of defending systems, networks, and programs from online threats is known as cybersecurity.

What is Cybersecurity?

These cyberattacks often aim to gain access to, change, or erase private information; demand user ransom; or hinder normal business processes.

Setting up efficient cybersecurity measures is particularly challenging today because there are more devices than people and attackers are becoming more inventive.

A cybersecurity approach provides many degrees of security for the systems, networks, programs, or data that one wants to keep secure. An organization's people, processes, and technology must all work together to provide a solid defense against cyberattacks.

Therefore, The practice of defending systems, networks, and programs from online threats is known as cybersecurity.

To learn more about Cybersecurity, refer to the link:

https://brainly.com/question/27560386

#SPJ2

HELPPPPPPPPP MEEEEE :):):):):)
which of the following is one of the seven key places where keywords can appear to improve a sites findability


a. header

b. link text

c. contact link

d. footer

Answers

I believe it’s b. Link text

What is the output from main (below) after the following function is called. void calculateCost(int count, double& subTotal, double& taxCost) // definition { if ( count < 10) subTotal = count * 0.50; else subTotal = count * 0.20; taxCost = 0.1 * subTotal; } int main() { double tax = 0.0, subTotal = 0.0; calculateCost(15, subTotal, tax); // function call cout << "The cost for 15 items is " << subTotal << ", and the tax for "<< subTotal << " is " << tax << endl; return 0; }

Answers

Answer:

     

Explanation:

What do fair use and copyright laws help you understand ?

Answers

Explanation:

we can understand about the systematic laws and surely we can be aware of such things also it promotes the correct use of our technology and innovations.

In its most general sense, a fair use is any copying of copyrighted material done for a limited and “transformative” purpose, such as to comment upon, criticize, or parody a copyrighted work. ... In other words, fair use is a defense against a claim of copyright infringement.

list the first prime minister of St Vincent and the grenadines​

Answers

Robert Milton Cato (June 3rd, 1915 - February 10, 1997)

grouping keywords into separate lists for different sections for a website is known as

a. researching
b. comparing
c. organizing
d. brainstorming

Answers

Answer:

C

Explanation:

A is when you surf the web for facts.

B is just finding the difference between 2+ things.

D is when you think of a bunch of ideas firsthand before officially planning anything.

Brainliest? (❁´◡`❁)

Which of the following traversals would print all of the elements in the 2D array of integers nums
in column-major order?

Answers

Answer:

This is from three days ago im

guessing you got the answer if you can get it to me that would be awesome

The traversals would print all of the elements in the 2D array of integers nums in column-major order is  for(int row = 0; row < nums[0].length; row++) { for(int col = 0; col < nums.length; col++){System.out.println (nums[row][col]); } }. The correct option is c.

What is a 2D array?

A matrix is another name for a 2D array. Look at the example below to learn how to generate a 2D array of integers: integer matrix [2][3] = 1, 4, 2, 3, 6, 8; The first dimension [2] denotes the quantity of rows, and the second [3] the number of columns.

Use the new keyword, a space, the type, the number of rows in square brackets, and the number of columns in square brackets to build an array, as in new int[numRows][numCols]. A 2D array has as many elements as its number of rows twice its number of columns.

Therefore, the correct option is c) for(int row = 0; row < nums[0].length; row++) { for(int col = 0; col < nums.length; col++) { System.out.println(nums[row][col]); } }.

To learn more about a 2D array, visit here:

https://brainly.com/question/27171171

#SPJ6

The question is incomplete. Your most probably complete question is given below:

a) for(int col = 0; col < nums.length; col++) { for(int row = 0; row < nums[col].length; row++) { System.out.println(nums[col][row]); } }

b) for(int row = 0; row < nums.length; row++) { for(int col = 0; col < nums[0].length; col++) { System.out.println(nums[col][row]); } }

c) for(int row = 0; row < nums[0].length; row++) { for(int col = 0; col < nums.length; col++) { System.out.println(nums[row][col]); } }

d) for(int row = 0; col < nums[0].length; col++) { for(int row = 0; col < nums.length; row++) { System.out.println(nums[row][col]); } }

In addition to assessing whether each of your independent variables has an effect on the dependent variable, a factorial ANOVA also allows you to:
A) use multiple dependent measures in a single analysis.
B) control for a third variable that might be related to your dependent measure prior to
investigating the independent variable of interest.
C) determine whether the effects of one factor depend on the other factor.
D) partition out the variability due to individual differences and the variability due to
measurement error.

Answers

Answer:

C) determine whether the effects of one factor depend on the other factor.

Explanation:

ANOVA is analysis of variance which helps to understand whether the population mean are equal or not. It is statistical model which is used by the businessmen to analyze their business performance. ANOVA also determines whether the effect of one factor are related or dependent on other factor.

Using complete sentences post a detailed response to the following.

Instead of placing CSS code in a separate file, your friend places it in the same file as the HTML. Your teacher says that that is okay as long as it is surrounded by style tags. Which option do you think is better? Why?

Answers

Answer:

Using an external style sheet is always better for readability and maintainability.

External style sheets can be referenced and reused by many different pages. A local <style> tag could be used on each .html document, but this would mean that any CSS changes made would need to be updated within each style tag, on each .html document. By putting it onto an external style sheet, you only need to update the CSS in one location for it to be used throughout the website.

C++

Assume the existence of a Window class with integer data members width and height. Overload the << operator for the Window class-- i.e., write a nonmember ostream-returning function that accepts a reference to an ostream object and a constant reference to a Window object and sends the following to the ostream: 'a (width x height) window' (without the quotes and with width and height replaced by the actual width and height of the window. Thus for example, if the window had width=80 and height=20, << would send 'a (80 x 20) window' to the ostream object.) Don't forget to have the function return the proper value as well. Assume the operator has been declared a friend in the Window class.

Answers

Answer:

Following are the code to the given question:

#include <iostream>//header file

using namespace std;

class Window //defining a class Window

{

private:

int width, height;//defining integer variable

public:

friend ostream& operator << (ostream& stm, Window& width)//defining a friend function that takes two parameters

{

return stm<<"a ("<<width.width<<" x "<<width.height<<") window"; //use return keyword that return its values

}  

Window(int width, int height): width(width), height(height)//defining parameterized constructor that inherit width and height in its parameters  

{}

};

int main() //Main method

{

Window w(80,90);//calling class constructor

cout<<w;//print object value

return 0;

}

Output:

a (80 x 90) window

Explanation:

In the above code, a class "Window" is defined that uses a friend function "ostream& operator" is declared that uses the "ostrea&" as a data type to hold two-variable "stm and w" in its parameter, and declared the parameterized constructor to hold value by inheriting width and height in its parameters.

Inside the main method, a class object is created that calls the constructor and uses the print method to print object value.

you would use conditional formatting on a cell when you want to _____

Answers

Answer:

to format a cell based on the value in it

Explanation:

you would use conditional formatting on a cell when you want to format a cell based on the value in it.

Reason -

Conditional formatting allows you to format a cell based on the value in it.

For example, if you want to highlight all the cells where the value is less than 30 with a red color, you can do that with conditional formatting.

How would you highlight cells with negative values in it?

You can use conditional formatting.

One of the disadvantages of cable technology is that: while it works well for television signals, it is ineffective for data transmissions required by the Internet. while it works well for television signals, it is ineffective for data transmissions required by the Internet. none of the available options are true. none of the available options are true. it is incompatible with most modern communication systems. it is incompatible with most modern communication systems. systems used by many providers require customers to share bandwidth with neighbors. systems used by many providers require customers to share bandwidth with neighbors.

Answers

Answer:

systems used by many providers require customers to share bandwidth with neighbors

Explanation:

One of the disadvantages of cable technology is that systems used by many providers require customers to share bandwidth with neighbors. This ultimately causes many problems since cables would need to be extended to reach every single user that will be sharing the bandwidth. This would mean cables all over the place. Also, it is very difficult to limit the bandwidth per person, meaning that if anyone is using up all of the bandwidth through the cable, the rest of the individuals connected would not have the bandwidth that they need or are paying for.

Which of the following best explains how messages are typically transmitted over the Internet? The message is broken into packets that are transmitted in a specified order. Each packet must be received in the order it was sent for the message to be correctly reassembled by the recipient’s device. The message is broken into packets that are transmitted in a specified order. Each packet must be received in the order it was sent for the message to be correctly reassembled by the recipient’s device. A The message is broken into packets. The packets can be received in any order and still be reassembled by the recipient’s device. The message is broken into packets. The packets can be received in any order and still be reassembled by the recipient’s device. B The message is broken into two packets. One packet contains the data to be transmitted and the other packet contains metadata for routing the data to the recipient’s device. The message is broken into two packets. One packet contains the data to be transmitted and the other packet contains metadata for routing the data to the recipient’s device. C The message is transmitted as a single file and received in whole by the recipient’s device.

Answers

Answer:

A The message is broken into packets. The packets can be received in any order and still be reassembled by the recipient’s device. The message is broken into packets. The packets can be received in any order and still be reassembled by the recipient’s device.

Explanation:

Network packets are used to send data across a network. These can be routed in any order independently of one another as they will all eventually reach their destination device.

Other Questions
Do inelastic goods ever go on sale? using ethylene (h2c=ch2) as your only source of carbon atoms, outline a synthesis for 3-hexanone. What is the main purpose of sustainability? FILL IN THE BLANK. viruses are often isolated from cells by filtration based upon the fact that they ______. Cullumber Corp. is considering purchasing one of two new diagnostic machines. Either machine would make it possible for the company to bid on jobs that it currently isnt equipped to do. Estimates regarding each machine are provided here.Machine A Machine BOriginal cost $75,700$189,000Estimated life 8 years8 yearsSalvage value 00Estimated annual cash inflows $19,800$39,800Estimated annual cash outflows $4,990$10,100Calculate the net present value and profitability index of each machine. Assume a 9% discount rate. (If the net present value is negative, use either a negative sign preceding the number eg -45 or parentheses eg (45). Round answer for present value to 0 decimal places, e.g. 125 and profitability index to 2 decimal places, e.g. 10.50. For calculation purposes, use 5 decimal places as displayed in the factor table provided.)Machine A Machine BNet present value enter a dollar amount rounded to 0 decimal placesenter a dollar amount rounded to 0 decimal placesProfitability index enter the profitability index rounded to 2 decimal placesenter the profitability index rounded to 2 decimal placesWhich machine should be purchased?select a machine Machine BMachine A should be purchased. PLEASE HELP!!!!!!!!!!!!!!!!!WILL MARK BRAINLIESTWhat is 5,890,000 in Scientific Notation? Book ALL THAT SHE CARRIEDMiles develops her argument by charting multiple generations of African Americans from slavery to freedom. Choose at least three historical themes from Miless book. Then, demonstrate how the three historical themes are reflected in the other assigned readings from the semester. Pay attention to chronology as you assess the links between Miless book and the other course readings. What are the major differences between powers of the House and Senate? Mr. And mrs. Khan paid interest on their mortgage this year. They also had deductible home-related expenses. The interest and expenses total an amount greater than the standard deduction. Which action can they take to reduce their income tax liability?. An electrician charges a $40 call-out fee and $80 per hour. On a particular job, the electrician charged $360. How long did the electrician work for? What conflict occurs in the passage rules of the game an internal conflict within the mother? How does an mis automated inventory system help management create accurate sales forecasts? a. It instantly updates inventory levels. B. It tracks depreciation costs on machinery. C. It tracks variable expenses. D. It indicates wastage of resources. E. It tracks accounting costs. Mary Shelley wrote Frankenstein to express her fear of humanity tampering with nature. The passage you have read is when the narrator discovers the error of his ways. How does the author establish the theme that man should not tamper with nature? which of the following factors best explains why the portuguese did not engage in direct trading relations with west african states until the fifteenth century? Lack of the necessary navigational and maritime technologyLack of European interest in African goodsDirectives from the pope to limit trade between Christians and AfricansFear of death from tropical diseases In a certain city, there are about one million eligible voters. A simple random sample of size 10,000 was chosen to study the relationship between gender and participation in the last election. The results were:MenWomenVoted23663611Didn't Vote14992524If we are testing for a relationship between gender and participation in the last election, what is the p-value and decision at the 5% significance level? Select the [p-value, Decision to Reject (RH0) or Failure to Reject (FRH0)]a) [p-value = 0.019, RH0]b) [p-value = 0.140, RH0]c) [p-value = 0.019, FRH0]d) [p-value = 0.010, RH0]e) [p-value = 0.140, FRH0] What is foreshadowing in Chapter 2 of mice and men? What is range and types of range? Why does Mongo seed grow faster in the dark? What ethical responsibility do we as a society have to others and to the world? In regards to economic assistance. What does a community contain that a population does not?OA. Abiotic factorsOB. Multiple organismsOC. Biotic factorsOD. Multiple speciesTRUNSMATERUNMINGTREENUE(2000)