You wrote a program to find the factorial of a number using recursion. 4! =

Answers

Answer 1

Answer:

24

Explanation:

Anything "factorial" is the result of multiplying the number by itself and all numbers below it, so:

4! = 4 × 3 × 2 × 1 = 24

There's no other info for this question so I assume you just wanted the answer, but as an example of a program here's a function that would work it out for you by using recursion in javascript, to use this you would call factorial(4) like at the bottom:

function factorial(num) {

 if (num < 0)  

       return -1;

 else if (num == 0)  

     return 1;

 else {

     return (num * factorial(num - 1));

 }

}

factorial(4);


Related Questions

Conclusion for primary memory

Answers

Answer:

primary memory is also called main memory and also it stores information in the computer

Explanation:

А ________ provides an easy way for workers to Interact with thelr computers.

System Call

Command Prompt

FAT

GUI

Answers

THE ANSEER TO THIS IS GUI

steps to run a Q-BASIC programme

Answers

Answer:

Cls

Read

Input

Print

END

Which option in a Task element within Outlook indicates that the task is scheduled and will be completed on a later
date?
O Waiting on someone else
O In Progress
O Not started
O Deferred

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct option for this question is Deferred.

When you create the task in outlook and scheduled and that will be completed on a later date shown is Deferred. Because deferring is an act of postponing something that was due soon and you have scheduled to do it later.

The other options are not correct because:

when you add task not started set as "Not started".    

When you change the progress percentage to something other than 0%, set it to "in progress".  When you change the progress percentage to 100%, set it as "completed".  Waiting on someone else means a task is waiting for others to get completed.  

Deferred is the task element of the Outlook that indicates that the task is schedules and will be completed later. Thus, option D. is correct.

What is deferred option?

The deferred option is the option that allows the user to postpone the task that is schedules in the current date to any other future date. This option is present in the task element of the Outlook.

Therefore, option D. Deferred is correct.

Learn more about deferred option, here:

https://brainly.com/question/13482025

#SPJ5

Janelle wants to research information about a local politician's recent public appearances. Which tool should she use for this?
A printed newspaper with a local news section.
A digital library that has a section on politics.
A physical library where the politician has appeared.
Search engines filtered to only show news sites.

Answers

Answer:

Search engines filtered to only show news sites.

Explanation:

A printed newspaper could have come from any time

A digital library barely gets updated

I'm pretty sure I saw those same books 3 years ago

Yeah you get the jig

Edhesive 9.10 Question 3

terms = [“Bandwidth”, “Hierarchy”, “IPv6”, “Software”, “Firewall”, “Cybersecurity”, “Lists”, “Program”, “Logic”, “Reliability”]

Answers

Answer:

your on unit 9 of edhesive?

Explanation:

def swap (ar, a, b):

   temp = ar[a]

   ar[a] = ar[b]

   ar[b] = temp

terms = ["Bandwidth", "Hierarchy", "IPv6", "Software", "Firewall", "Cybersecurity", "Lists", "Program", "Logic", "Reliability"]

print(terms)

for i in range(len(terms)):

   for j in (range(i, len(terms))):

       if(terms[i] > terms[j]):

           swap(terms, j, i)

print(terms)

I got a 100% of edhesive

What additional uses of technology can you see in the workplace? List ways technology impacts
other careers not discussed in this module, such as finance, government, non-profits, and
agriculture.

Answers

People can be making the technology, technology can be used to help solve problems and help further educate people with what they are working on. Technology impacts agriculture because their are certain technology to help farmers farm fast and help water the land without needing a human to do it. Technology can help finance by helping people add and subtract rather than doing in their hand.

For the second one just answer what game engines are please, you don't have to explain.

Answers

Answer:

game architecture, game framework or gameframe

Who is the person that creates fun and challenging levels and works closely with environment modelers & animators?

Answers

Answer:

An animation modeler creates the CG character, environment, and hard surface models of an animated feature in three dimensions. They work closely with art directors to be sure that all models conform to the intended design and visual style of the animated film.

Explanation:

i hope this is what u mean lolsss

What statement best describes percentage values in CSS?
It's the fraction of the value that came before it.
O It's the smallest controllable element on the screen.
O It's always the width of an indent.
It's a value that is relative to the width of its HTML element or to the page.

Answers

Answer:

D.It's a value that is relative to the width of its HTML element or to the page.

Explanation:

Hope it's right

Answer:

D

Explanation:

Select the correct answer.
Maggle is preparing a business report. Which types of keys will she use to type out words and numbers?
O A alphanumeric keys
OB. navigation keys
C.
function keys
OD. control keys

Answers

Answer:

A. Alphanumerical key

Explanation:

pl please give me points

PLEASE HELP ASAP!!!!!!!!!!!







Is this statement true or false?

A type of image you can use in your document is called clip art.


true


false

Answers

Answer:

True

Explanation:

its true i just took the test

What type of scaling is each of these?
horizontal or vertical
adding a server:

adding memory to a server:

Answers

Answer:

Adding a server: Horizontal Adding memory to a server: Vertical

Explanation:

Answer:

adding a server: horizontal

adding memory to a server: vertical

Explanation:

edge 2022

Complete the following statement by selecting all possible answers.
A router sends data

to the correct computer.

to all computers.

where it should go.

based on the data’s destination.

in a loop.

Answers

Answer:

to the correct computer

where it should go

based on the data's destination

Explanation:

took the assignment on edg :)

Answer:

to the correct computer

where it should go

based on the data's destination

Explanation:

Read the following scenarios carefully and select a suitable storage device for each situation. Make sure to justify your choice by talking about the characteristics of your chosen storage device such as Capacity, Speed, Portability, Durability and Reliability.

(a) “A military contractor has been asked to produce a new all-terrain tablet PC which will be used by the armed forces when out in combat situations. Cost is not an option, lives could well depend on how reliable this tablet PC is under extreme conditions.” [6](write a whole paragraphy)
I will be giving out brainliest to best answer

Answers

Answer:

SSD drive or sd card

Explanation:

Optical wouldn't have enough data and could get easily damaged by the movement of the armed forces.Hard Drives would be insanely bad as if you even slightly moved while it were moving you would corrupt data. SSD doesn't get damaged as easily as these two and can hold a sufficient amount of data for its size.

Storage device are the hardware that are used to store huge amount of data. Storage device like SD cards and SSD cards can be used in military operations as these are hard and cannot break easily and store huge data.

What is Storage device?

Storage device are any type of computing hardware that are used for storing, porting or extracting data. Storage devices can hold and store information both temporarily and permanently. They may be internal or external to a computer device.

SD cards are the best device used for storing big data files and playing them back. SSDs on the other hand, are optimized for running the operating system partition of a computer. One device has a simpler role while the other needs to be smarter and more adaptable. These are the most compatible storage devices which can be used for military functions.

Learn more about Storage device here:

https://brainly.com/question/11599772

#SPJ2

A local bank has just one branch. It sets up a peer-to-peer network for all devices on the system. The bank would like to be able to have one technician administer the entire network from his location outside the bank without having to go to the bank each time there is a problem. Will this be possible for the technician?

Answers

Answer: C. It will not work because it needs to use a server in a central location to allow for the remote access they want.

Explanation:

The options are:

A. It will not work because it is not possible to have the technician administer from one single location.

B. It will work as long as a LAN network is established to facilitate the communication between devices.

C. It will not work because it needs to use a server in a central location to allow for the remote access they want.

D. It will work if it uses a WAN network to bring in all of the LAN networks to one central location.

A peer-to-peer network occurs when computer's are connected together and hence share resources are connected and share resources.

In the scenario in the question, the technician cannot administer the entire network from his location outside the bank. The technician will need to go to the bank whenever a problem occurs. This is due to the fact that there I need for a server that is in a central location in order to allow for the remote access they want.

Answer:

It will not work because it needs to use a server in a central location to allow for the remote access they want.

Explanation:

what does the network access server (NSA) do?

Answers

network access server (NAS) is a computer server that enables an independent service provider (ISP) to provide connected customers with Internet access. A network access server has interfaces to both the local telecommunication service provider such as the phone company and to the Internet backbone

Nonverbal communication skills can promote teamwork. True False

Answers

Answer:

its true

Explanation:

i just got done with this assignment.

Answer:

tre

Explanation:

How many 1000-Watt lights can be plugged into a standard 120-Volt, 15-Amp outlet? (Hint: W/V=A)

Answers

Answer:

The answer is 1

Explanation:

(03.04 MC) While working in a group, two members are not getting along. You ask each one what is happening, and they both say they don't know why the other person is mad. You bring the two members together, so they can discuss the issue. What should be their first step in this conflict resolution? O Agree upon the problem Brainstorm possible solutions O Identify the issue O Negotiate a solution​

Answers

Answer:

Agree upon the problem Brainstorm possible

Explanation:

Answer:

Is C, Identify the issue

Explanation:

I got it right on my test.

Which of these is NOT an example of application software?

1Points
A
An operating system

B
A word processor

C
An email platform

D
A video game

Answers

Answer:

A, an operating system.

The rest are applications that runs on an operating system.

Which of the following is the BEST reason to use cash for making purchases?

Answers

You could get a better deal.

Companies get charged when someone makes a card purchase. So if you pay in cash you could get a better deal. Like when you are buying a car, you can get a better deal because you are paying upfront and on the spot so they wont have to worry about you missing paymenyd

(Java)Convert the QuartsToGallons program to an interactive application. Instead of assigning a value to the number of quarts, accept the value from the user as input.

class QuartsToGallonsInteractive
{
public static void main(String[] args)
{
// Modify the code below
final int QUARTS_IN_GALLON=4;
int quartsNeeded=18;
int gallonsNeeded; int extraQuartsNeeded; gallonsNeeded=quartsNeeded/QUARTS_IN_GALLON; extraQuartsNeeded=quartsNeeded%QUARTS_IN_GALLON;
System.out.println("A job that needs " + quartsNeeded + " quarts requires " + gallonsNeeded + " gallons plus " + extraQuartsNeeded + " quarts");

}
}

Answers

import java.util.Scanner;

public class QuartsToGallonsInteractive

{

public static void main(String[] args)

{

Scanner scan = new Scanner(System.in);

final int QUARTS_IN_GALLON=4;

int quartsNeeded=0;

System.out.println("How many quarts do you need?");

quartsNeeded = scan.nextInt();

int gallonsNeeded, extraQuartsNeeded;

gallonsNeeded=quartsNeeded/QUARTS_IN_GALLON;  

extraQuartsNeeded=quartsNeeded%QUARTS_IN_GALLON;

System.out.println("A job that needs " + quartsNeeded + " quarts requires " + gallonsNeeded + " gallons plus " + extraQuartsNeeded + " quarts");

}

}

I hope this helps!

To modify a program is to rewrite the program in another way.

In order to make the program an interactive program, we have to remove the following program statement:

final int QUARTS_IN_GALLON=4;

The above program statement assigns 4 to the variable QUARTS_IN_GALLON.

This means that:

Each time the program is run, the value of QUARTS_IN_GALLON is always 4.

Next, we replace the statement with:

Scanner input = new Scanner(System.in)

int QUARTS_IN_GALLON;

QUARTS_IN_GALLON = input.nextInt();

So, the complete modified program is:

class QuartsToGallonsInteractive{

public static void main(String[] args){

Scanner input = new Scanner(System.in)

int QUARTS_IN_GALLON;

QUARTS_IN_GALLON = input.nextInt();

int quartsNeeded=18;

int gallonsNeeded; int extraQuartsNeeded; gallonsNeeded=quartsNeeded/QUARTS_IN_GALLON; extraQuartsNeeded=quartsNeeded%QUARTS_IN_GALLON;

System.out.println("A job that needs " + quartsNeeded + " quarts requires " + gallonsNeeded + " gallons plus " + extraQuartsNeeded + " quarts");

}

}

Read more about interactive program at

https://brainly.com/question/15683939

In a paragraph of no less than 125 words Compare and contrast paraphrasing and summarising

Answers

Answer:

Paraphrasing is stating what someone else has said in different terms, making it easier to explain.

Summarising is explaining something that has happened while removing information that is not crucial to the explanation.

Hope this helps

A bottom-up approach is better for smaller problems.

Answers

Answer:

The correct answer is true.

Sorry for late answer.

Hope this helps.

Explanation:

I got it right on edge.

Answer:

True

Explanation:

draw block diagram of the computer system​

Answers

Computer Block Diagram System: Mainly computer system consists of three parts, that are central processing unit (CPU), Input Devices, and Output Devices. The Central Processing Unit (CPU) is divided into two parts again: arithmetic logic unit (ALU) and the control unit (CU) Fig Block Diagram of the computer

Select the correct text in the passage.
Select the sentence that is not the correct use of technology in parenting.
Technology has helped parents to access a vast information resource due to the presence of the internet. They can show a range of education
material like nursery rhymes, stories, scientific concepts, and so on conveniently on their smartphones. Teachers can coordinate with the
parents about the child's progress due to smartphones and various applications on it. Some parents have replaced the customary practice of
reading a bedtime story to children with a television show of the child's choice.
Reset
Next

Answers

Answer:

some parents have replaced the customary practice of reading a bedtime story to childern with a television show of the child's choice

Explanation:

dash is a set of communication standard using for transferring file information between computers in a network​

Answers

Answer:

protocol

Explanation:

hope this helps.

What is one benefit of using electronic sticky notes?

They can be used to jot down messages.
They have a drawing-to-notes feature.
They can be searched by subject.
They clip online articles and images.

Answers

They can be used to jot down messages
Hope it helps ! Plzz put me as a brainlies

They clip online articles and images is one benefit of using electronic sticky notes. Thus, option D is correct.

What is images?

A visual depiction has been referred to as an “images.” The Vector graphics as well as the raster graphics are considered as the two subcategories of the image. JPEG, PNG, along with bitmap has been considered as the image file types. The image has shown just to the picture, as well as the photo, or drawing, and they interpret the audience.

In order to invention of technology or according to the invention of the technology which was the advanced in order that has been used are the benefit of the human. The oldest time has the used on that sticky notes which are the new time or era was the clip online articles as well as the images. The clip of the images has been considered as the reminder on the latter.

Therefore, The clip of the online articles as well as the images has been one benefit of the using of the electronic sticky notes.

Learn more about images on:

https://brainly.com/question/25029470

#SPJ7

Which statement describes a biotic factor interacting with the environment?

Water flows down a creek bed.
Soil contains nutrients for growth.
Deer graze through the grassland.
The sun emits solar rays that reach Earth.

Answers

Answer:

Deer graze through the grassland.

Explanation:

Biotic factors are living components of the environment that shapes the ecosystem. Abiotic factors are the non-living component of the environment.

These biotic factors are plants, animals and micro-organisms.

A deer grazing through the grassland is a a biotic factor interacting the environment. The other choices contains abiotic factors.

Abiotic factors are soil, sunlight, nutrients etc.

Answer:

C

Explanation:

Other Questions
(-4)x(4+4-(6-(-10)) ? What should a healthcare worker do upon discovering a violation of privacy rules?Notify a supervisor.Wait until someone else with more authority discovers it.Try to fix the problem yourself.Alter the records to correct the violation.HELP PLEASE I HAVE 40 MINUTES LEFT Where was the primary area of migration for the Angles, Saxons, and Jutes according to this map that tracks migration movementsduring the years of the Roman Invasions between 100 and 500 CE?A)The United KingdomB)FranceItalyD)Eastern Europe I need help with this question Help needed!!!!!! Will give brainliest if right. 2H2S + 3O2 2SO2 + 2H2O1. For every 10.0 g of H2S how many moles of SO2 are formed? What do the sources tell you about the power of the emperor? Your presentation should include the following:Detailed descriptions of what happens during:photosynthesis (the light-dependent reactions and the light-independent reactions)transitioning between photosynthesis and respirationcellular respiration or fermentationAn explanation of how the molecules in photosynthesis and cellular respiration are similar. Please include descriptions of the molecules involved in each of the processes above.Complete sentences should be used in all written descriptions and explanationsIllustrations, diagrams, or images that help explain the transition between the reactions of photosynthesis and cellular respiration.You can create your own images, or use images from websites or other sources.If you use premade images, you will need to give a reference of the source of that image and create your own unique caption to describe the image.Your presentation should be detailed and organized, but it can be presented in a variety of ways:illustrated storyslide presentationcomic stripplease i need this ASAP!!!! Audrey's bank account is currently at $75 a fee of 12.50 is deducted each month from Audreys she must maintain a balance greater than zero dollars how many months will Audrey's account stay above zero dollars Please can anyone simplyfy that and can you tell the steps? Which theme does this passage illustrate?Read the excerpt from The Call of the Wild.Then an old wolf, gaunt and battle-scarred, cameforward. Buck writhed his lips into the preliminary of asnarl, but sniffed noses with him. Whereupon the oldwolf sat down, pointed nose at the moon, and broke outthe long wolf howl. The others sat down and howled.And now the call came to Buck in unmistakableaccents. He, too, sat down and howled. This over, hecame out of his angle and the pack crowded aroundhim, sniffing in half-friendly, half-savage manner. Theleaders lifted the yelp of the pack and sprang away intothe woods. The wolves swung in behind, yelping inchorus. And Buck ran with them, side by side with thewild brother, yelping as he ran.O A good leader is strong and intelligent and treats hisfollowers well.O Only the strong survive in the wilderness.O The only way to learn something is to try it.The desire to fight for power is an instinct. Plzz helppFind the inverse function IM GIVING BRAINLIEST ( ) I'm having trouble pronouncing this Love/romance is what it means In the equation, 3b+4=7, what is the 4 25+ Points & Brainliest if your right!If you toss three coins, what are the odds in favor of getting exactly two tails and one head?A. )3:8B. )3:5C. )5:3D. )8:3 Name three reasons why the Crusades failed? i need it ASAP who ever answers first and is correct gets a brainlist and 5 stars Liquid Nitrogens temperature is minus what degress i dont know how to do this && im hella stuck Find the polar equivalent of xy=6 Los alumnos ___ de Puerto Rico. Fill in the blank. A. Eres B. Son C. Es