Does anybody know the answer to 5.7.5: Factorial of Code HS? I can’t figure it out

Answers

Answer 1

In this exercise we have to use the knowledge of computational language in JAVA to describe a code, like this:

The code can be found in the attached image.

To make it easier the code can be found below as:

function myFunction(num){

n = 0;

total = 1;

while (n < num){

  total *= (num - n);

  n+=1;

}

return total;

}

alert(myFunction(6));

See more about JAVA at brainly.com/question/2266606

Does Anybody Know The Answer To 5.7.5: Factorial Of Code HS? I Cant Figure It Out

Related Questions

CORRECT ANSWER GETS BRAINLIEST!
Explain why it is important for an engineer to have knowledge of different materials .

Answers

Answer:

An engineer must have knowledge of different materials because an engineer will be working with a variety of materials and must know how to utilize or interact with them properly.

what is meant by GPS?​

Answers

Answer:

The Global Positioning System.

Answer:

Global Positioning System

Explanation:

Python problem:
Write a program in which the program guesses the number that the user is thinking about. Example of

output per screen:

Think of a number from 1 to 4.

Answer S (yes) or N (no) to my questions.

Is the number thought to be greater than 2? S

Is the number thought to be greater than 3? N

The number thought about is 3

See you next time!

Answers

print("Think of a number from 1 to 4")

print("Answer S (yes) or N (no) to my questions.")

choice = input("Is the number thought to be greater than 2? ")

if choice == "S":

   choice = input("Is the number thought to be greater than 3? ")

   if choice == "S":

       print("The number thought about is 4")

   elif choice == "N":

       print("The number thought about is 3")

elif choice == "N":

   choice = input("Is the number thought to be greater than 1? ")

   if choice == "S":

       print("The number thought about is 2")

   elif choice == "N":

       print("The number thought about is 1")

print("See you next time!")

This works for me. Best of luck!

Please help with coding assignment.

Java

Write a method where you have to generate random numbers between 1 to 9 until you get the number 5, and you do it j number of times. (j represents how many times you can generate.) If you do get to 5 under j number of times, you skip a line and end the method. Write the method stopAtFive.


public int stopAtFive (int j)

Answers

Answer:

import java.util.Random;

class Main {

   

   public int stopAtFive (int j) {

      Random rand = new Random();

      int number = 0;

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

          number = rand.nextInt(9)+1;

          System.out.println(number);

          if (number == 5) {

              System.out.println();

              break;

          }

      }

      return number;

   }

   

   public static void main(String args[]) {

       Main main = new Main();

       main.stopAtFive(20);

       main.stopAtFive(20);

   }

}

Explanation:

Your requirements do not say what has to be displayed or returned from the method, but you can use this as a starting point.

Yvonne found an article online that relates to her research topic, but the article does not cite the author. What
should Yvonne do?
O She should decide to use the article without citing it.
O She should decide to avoid using the article.
O She should write the information in her own words.
O She should determine the website's credibility.
will mark brainliest

Answers

Answer:

d

Explanation:

bye

Yvonne found an article online that relates to her research topic, but the article does not cite the author. so she should determine the website's credibility.

How do you outline internet site credibility?

Simply put, it is the distinction between a handsome web website online and one designed with a purpose. For many customers, their advent for your enterprise happens on your internet site. Your major goal, after they arrive, is to instill a feeling of trust.

Links to/from different websites display the web website online is well-respected. The credentials of the author(s) are valued. Articles include citations and references. News memories are few, however, include details.

Read more about the research topic:

https://brainly.com/question/25257437

#SPJ2

Which range function will generate a list of all even numbers between 12 and 84 inclusive? range (12, 86, 2) range (11, 84, 3) range (12, 86, 4) range (10, 84, 2)

Answers

Answer:

The answer is "range (12, 86, 2)".

Explanation:

The range() function generates a numerical sequence across items. In the above-selected choice, the range function is correct because it takes three parameter values "start, stop, and step". In this choice, it takes three number values "12, 86, and 2", in which 12 is the starting point, and 86 is the ending point, and 2 is used for print even numbers between them, that's why the other choice is wrong.

Miguel has a problem with the output on his laptop. Which of the following could be the source of the problem?
O the memory chip
O the speaker
O the microphone
O the keyboard

Answers

Answer:

the speaker

Explanation:

all if the rest are input devices so it must be the speaker I guess

Who is Mr.Anonymous?

Answers

Answer:

me

Explanation:

me

Answer:

a random person

Explanation:

Anne creates a web page and loads a CSS style script along with the page. However, the entire page appears black and she cannot see any of the
text she has entered. What is the possible could be causing this issue?

Answers

Answer: B. "She might have set backround-color in body to black in the CSS file"

Explanation: I took the test and got 100%

Why do you think many Nepalese want to go abroad? Give some opinion.​

Answers

Answer:

Due to lack of job opportunities

Due to income inequality

For improvement of living standard

to highly get paid

Can you tell from the masses of the reactants which one of the reactants will be the limiting reactant? Defend your answer (use an equation within your defense).

Answers

Answer:

No, usually you would do the math first before deciding which is the limiting reactant

Explanation:

2H₂(g) + O₂(g) -----> 2H₂O(g)

3mol= Hydro

2mols= O₂

The limiting reactant would be the smaller number after we divide the number of moles by the coefficient

H:1.5 3mol/2(c) =1.5

O2: 2 2mol/1(c)=2

Hydrogen is lower = limiting reactant

This function chooses the screen to display based on the score.What is the correct way to call this function?

Answers

Answer:

checkWin();

Explanation:

its in the code

Answer:

checkWin ( ) ;

Explanation:

It is show inside the code

Which of these are correctly formatted Python dictionaries? Check all that apply. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}; dict = (‘Name’: ‘Mary’, ‘Age’: 13, ‘School’: ‘XYZ School’) dict = [“Programming Basics”, “Introduction to Python”] dict = {‘season’: ‘fall’, ‘weather’: ‘cool’}; dict = ’[‘laptop’, ‘computer’, ‘hard drive’]

Answers

Answer:

A. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}

Explanation:

Since python does not use type when declaring a variable, you must make sure you make your variables correctly or else it won't compile correctly. Lists use braces[]; Strings use quotes, "" or ''; Integers are just declared with a number(s); Dictionaries use brackets{} and inside are attributes of something. For instance, you can use dictionaries to describe ages, {'"Bryan": 6, "Alex": 13, etc.} Sort of like a json file. Dictionaries also tend to use uppercase letters when describing something. The only answer that has all the attributes correct is A. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}

hope i helped :D

The correctly  formatted Python dictionaries is dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}. Thus, option A is correct.

What is Python?

Python is a widely used high-level programming language. Its design concept prioritizes code readability by employing heavy indentation.

Python is garbage-collected and dynamically typed. It is compatible with a variety of programming paradigms, including structured, object-oriented, and functional programming.

Because Python does not utilize type when defining variables, you must ensure that you create your variables appropriately or they will not compile successfully.

Lists make use of braces[]; Strings use quotation marks, "" or "; Integers are simply identified by a number(s); Brackets are used in dictionaries to represent qualities of something.

For example, you may use dictionaries to define ages, such as "Bryan": 6, "Alex": 13, and so on. Similar to a json file. When describing anything, dictionaries also utilize capital letters. A. dict is the only solution that has all the properties correct.

Hence, option first is correct.

Learn more about Python here:

https://brainly.com/question/18502436

#SPJ2

an article about technology based world. urgent

Answers

17/11/2020

By Your name

Technology is the most useful form of science for the general population. In simple words, technology is when we take the concepts of science and transform them into gadgets and devices that are useful to us as human beings. When we look around us, almost everything is a result of or a form of technology.

For example, the device you are using right now is a form of technology made for communication, or the refrigerator in your kitchen is a use of science that helps to keep your food fresh and cool. With these examples, we see how dependent we are on technology and how important it is for us in our daily lives.

It isn’t easy to imagine our lives without using any form of technology. For the smallest of communications, we tend to turn to our mobile phones. Even most of the food we eat is packaged in factories using various technologies. Thus, imagining a life without technology is impossible. It is not only a fact of life but also a necessity for all of us.

In fact, the smartphone, that is, a mobile phone which can connect to the internet, is becoming one of the fastest-growing and most accessible forms of technology around the world. On a smartphone, you can click photographs, browse the internet, listen to music, and use social media. With the advent of smartphone technology, the practical purpose of not only communicating with your friends is met, but also so many others, as mentioned.

Thus, in today’s world, the importance of technology becomes more and more as the years pass. Scientists have done so much to advance humans using technology, and we still have a long way to go.

what does this map key show

Answers

Answer: where is the map key? I don't see it

Explanation:

Which are reasons to use collaborative learning? Check all that apply.
to solve problems
to discuss topics
to save study time
to complete tasks
to study material
Plz help

Answers

Answer:

i say the answers are

A. to solve problems

B. to discuss topics)

D. to complete tasks

E. to study material

Explanation:

I say it's NOT (C. to save study time) because you are still taking times to study

Answer:

A, B, D, E

Explanation:

PLZ ANSWER ALL MY QUESTION. Which line of code will display the variable num rounded to the nearest tenth?

A.print(num, round)

B.print(round(num, 1))

C.print(num rounded)

D.print(round(num,.1))

Answers

Answer:

A

Explanation:

Create a formula that multiplies the salary in column C with the percentage (to be added) in column D and places the result in column E. Fill the whole column with that formula.

Answers

Answer:

Assuming data input starts in the second row of the worksheet of the excel spreadsheet application, in the second cell of column E, input the formula "= C1 * D1". Then copy the formula down the column by dragging the right-bottom corner downward.

Explanation:

Microsoft Excel is a spreadsheet application used for statistical analysis of data. It provides several built-in formulas, graphs, and storage links to calculate, represent, and retrieve or store data to remote and local storage.

To make a dynamic formula, the equal to sign is typed before any column variable, then a short cut key combination or dragging the right-bottom corner to the end of the used worksheet can be used to copy formulas.

In Python, a.....
is a type of variable that holds a value which is not changed.
O permanent
unchangeable variable
O fixed variable
O constant

Answers

Answer:

Constants.

Explanation:

In some languages, it is possible to define special variables which can be assigned a value only once – once their values have been set, they cannot be changed. We call these kinds of variables constants.

Answer:

Constant

Explanation:

a constant  is a type of variable that holds a value which is not changed.

Type a message (like “sir i soon saw bob was no osiris”) into the text field in the asciitohex.com webpage. Which of the encodings (binary, ASCII decimal, hexadecimal, or BASE64) is the most compact? Why?

Answers

Answer:

BASE64

Explanation:

The encoding c2lyIGkgc29vbiBzYXcgYm9iIHdhcyBubyBvc2lyaXM= is the shortest.

Answer:

BASE64

Explanation:

BASE64 is the most compact encoding because it is the shortest encoding of "sir i soon saw bob was no osiris".

Animation is primarily a visual art, so in many cases, you could turn off the
soundtrack and still know what is happening.

Answers

Answer:

yes as long as the motions and form of the person,place,or thing that is being moved in a clear and clean way and strictly sticks to the story or title of what you may be watching, its all about the story being told rather than the sound that it makes.

Explanation:

which componet is the smallest unit in a spreadsheet

Answers

The cell is the smallest unit in a spreadsheet

This is 10 points. Which line of code will display the variable num rounded to the nearest tenth?

A. print(num, round)

B. print(round(num, 1))

C. print(num rounded)

D.print(round(num,.1))

Answers

Answer:print(num, round)

Explanation:print(num, round)

Answer:

B trust me i got it correct

Explanation:

Write a void method named myMethod which prints "This is a void method" (without the quotes). Your method should be declared public and static.

Answers

public static void myMethod(){

System.out.println("This is a void method");

}

I hope this helps!

Void methods are meant to return control back to the caller instead of returning a value. Hence, the void method named myMethod is declared public and static and returns This is a void method. The program goes thus :

public static void myMethod(){

System.out.println("This is a void method");

}

#a void method named myMethod which is declared as being public and static.

#Thr method returns the statement This is a void method.

Learn more : https://brainly.com/question/19113167

What are the advantages of block-based programming? What are the disadvantages?

Answers

Answer:

Block-based languages tend to have a lot of commands to choose from, making memorizing commands unneeded, and therefore easy for beginners to start coding. However, it may be slower to code in a block-based language than one where a user can quickly input commands using their keyboard. With block based programming you don't have to worry about syntax errors which is helpful.

Explanation:

Answer:

block based programming have more than one command to choose from, so there is no need to have a memorizing command, which makes it easier for beginner coders. however, using a block-based code can move slower. 

Explanation:

Which of the two do you think is the most secure mode of communicating: sending a letter using the postal service or sending an email using the internet? Justify your answer with reasons.​

Answers

Answer:

rather internet... postal services can steal ur identities, steal ur location, and see who u r sending to

Explanation:

Hope this helps! Consider Marking brainliest!

Determine which careers you can enter after completing a training program and which careers require a college degree.

Answers

Answer: statistician automotive engineer customer service specialist data modeler broadcast technician video systems technician

Explanation:

why when you are on wifi it keeps kicking you off is your class during online learning​

Answers

Sometimes, it lags on the other side or from the teachers computer so the app just kicks people out sometimes, it’s sucks I know

Answer:

because the is alot of people using wifi in the world so the wifi can be usad only for u so old the  internet is going down

Explanation:

What is the index of 7 in this list?
that list being [5, 6, 10, 7, 3, 2.5]

7
4
2
3

Any brainliest beggars will be flagged

Answers

Answer:

-1 (out of range).

Explanation:

Index '7' cannot exist in 0-indexed array of size '6'.

If return type is 'Integer' out-of-range exception should be thrown.

[ 0, 1,  2, 3, 4,  5] :: indices. (length = 6)

[ 5, 6, 10, 7, 3, 2.5 ] :: elements.

Answer: 7

Explanation: got it right on edgen

Which of the following is an example of a Syntax Error?
The program runs, but prints a warning to the console.
The program runs at first, but eventually crashes.
The program does not run at all.
O The program runs, but doesn't do what you expect.

Answers

Answer:

The correct answer is: "The program does not run at all."

Explanation:

The rules to write a program in any language are called syntax. The error in syntax of a language is called syntax error. Syntax errors are usually detected during the compilation of the program. The program cannot be run untill all syntax errors are removed.

So,

The correct answer is: "The program does not run at all."

Other Questions
William Lloyd Garrison and the American Anti-Slavery Society were knownforA)advocating immediate and uncompensated emancipationB)advocating colonization by former slaves in West AfricaC)advocating the use of tariff revenues to purchase slaves from slaveholdersD)opposing women's participation in public abolitionist meetingsE)supporting the Kansas-Nebraska Act's provisions regarding slavery What was a major reason for the early exploration and colonization of the americas by Europeans? How many grains of sand are there in 6300kg of sand? Give your answer in standard from I need held asp pls help me B. Translate the following sentences by writing the correct form of the verb.11. You-all (formal) understand the lesson.(comprender) Uds. la12. She watches television. (mirar) Ella la13. You (familiar) understand the lesson(comprender) La14. I love her. (amar) La15. She believes it (creer) LoC. Answer the questions using DOP's.16. Dnde compra Pablo los libros?compra en la librera17. Conoces la capital de Espaa? S,conozco18. Miras las telenovelas? S,miro.19. Dnde estudia Sr. Norton el espaol? Lestudia en Latinoamrica.20. Comprenden ustedes esta leccin? Si,comprendemos The record for the most rolls of wrapping paper sold for the school fundraiser is 593. Let w = the number of rolls of wrapping paper sold.Choose Yes or No to tell if each inequality represents a number that would beat the school record. w 593 w > 593 w 593 593 < w What is the purpose of setting a deadline for a goal? large leather boot is 18 feet tall. A typical men's leather boot is 1/2 foot tall. How many times as tall as a typical leather boot is the large boot? What Happened During the First Hundred Days? What is the role of enzymes primase in the DNA replication?A. Primase relaxes the DNA double helix so that other enzymes can reach the DNA.B. Primase initializes replication by building short RNA primer complementary to the template. C. Primase seals any gaps between Okazaki fragments or Fragments of DNA. D. Primase is the enzyme that connects the ribosome to the DNA. If you are following the recipe for a cake, how will the order in which you add the ingredients affect the mass of the batter? (1 point)A. It will have no effect because the order in which ingredients are mixed will not change the fact that matter cannot be created nor destroyed. B. If you add the liquid ingredients first, the final result will have less mass than if you added the dry ingredients first. This is because the dry ingredients will dissolve in the liquid ingredients. C. If you add the dry ingredients first, the final result will have less mass than if you added the liquid ingredients first. This is because the dry ingredients will be dissolved by the liquid ingredients. D. It will have no effect because heating an object never produces a chemical change and only chemical changes can create or destroy mass. Pls help me 15 POINTS?!! how is being respectful make you a good friend A variable is a quantity that can change; the word also refers to the letter or symbol that represents this quantity. In a proportional relationship, one variable is the independent variable, and one is the dependent variable. They are often called x and y, but any letters can be used.The value of the dependent variable depends on the value of the independent variable. In the relationship between number of scoops of ice cream and total price, we can call number of scoops x and total price y. Y is dependent because its value depends on x, the number of scoops you purchase.Ursula makes $5 for every 1 dog she walks. In the relationship between dollars earned and dogs walked, ________ is the dependent variable, which is often called ________.A dollars earned, y B dogs walked, y C dollars earned, x D dogs walked, x * The mass of Ganymede is 1.48E23 or ____ kilograms. the answer to the image included 2. A car starts from rest and accelerates uniformly toreach a speed of 21 m/s in 7.0 s. What was the speed ofthe object after 2.0 seconds? What causes the push that you can feel when you are in the ocean?A.currentsB.wavesC.windD.coriolis The road to tyranny we must never forget, begins with the destruction of the truth bill clinton. what does this quote mean? how do you write 57,000 in scientific notations