1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sloan [31]
4 years ago
13

Assignment: Write a complete MIPS program that implements the algorithm below (in C ). This algorithm calculates the factorial f

or the value of m. You should setup "m" as a variable in your program so that it is easy to change this value and rerun the program to get a different result. In case you are unsure of what a factorial is, it is the multiplication of an integer with all integers from 1 to that integer. One special case is the the value of zero factorial is 1. So, for 5 factorial (written as 5!), the value is 5*4*3*2*1
Computers and Technology
1 answer:
bekas [8.4K]4 years ago
4 0

Explanation:

There are various basic computer programming languages and one of them is the C language, the base of many computer lanuages.

The code of finding factorial is written below;

CODE

#include<stdio.h>

int main (void)

{

    int i,

   int factorial =1,

   int input;

   printf("Enter a number for finding its factorial: ");

    scanf("%d",&input);

   if (input == 0)

factorial = 0

 eles

    for ( i =1; I < = input ;i++)

        factorial = factorial*i;

   

    printf("Factorial of given %d is: %d",input,factorial);

    return 0;

  }

You might be interested in
that average july high temperature is 85 degrees fahrenheit in new york, 88 degrees fahrenheit in denver, and 106 degrees fahren
goblinko [34]

Answer:

public class num8 {

   public static void main(String[] args) {

       System.out.println("Average Temperature in New York is 85 degrees fahrenheit");

       System.out.println("Average Temperature in Denver is 88 degrees fahrenheit");

       System.out.println("Average Temperature in Phoenix is 106 degrees fahrenheit");

   // Calculating the new average Temperatures

       System.out.println("The New Average Temperature in New York " +

               "is "+ ((0.02*85)+85 )+ " degrees fahrenheit");

       System.out.println("The New Average Temperature in Denver " +

               "is " +((0.02*88)+88 )+ " degrees fahrenheit");

       System.out.println("The New  Average Temperature in Phoenix " +

               "is "+((0.02*106)+106 )+ " degrees fahrenheit");

   }

}

Explanation:

  1. Using Java first display the previous average temperatures for the three cities as given in the question
  2. Then calculates the new average temperature by multiplying by 0.02, because of a 2 percent increase in the average temperature
  3. Display the new temperature using the System.out,println

8 0
3 years ago
What is a current trend in ERP systems?
motikmotik

Answer:

cloud per

Explanation:

because it still is continuing to rise till the very day. It is now become generally accepted with most epr systems

5 0
3 years ago
What else can Xbox do to help reduce negative online behavior? (250 minimum)
alexandr402 [8]

Answer:

Negative:

  • Cheating by using mods or exploiting game glitches.
  • Account tampering.
  • Gamerscore or achievement tampering.
  • Account theft.
  • Marketplace theft.
  • Harassment.

Positive:

  • That is why Xbox is getting more high technology  with there devices :
  • Makes sure everything they do is above board. If they see another player doing something illegal, they report it.
  • Understands the difference between competitive behavior and bullying, and between friendly banter and verbal harassment.
  • Knows not to post anything that could harm or harass another player.
  • Keeps their language clean.

Explanation:

4 0
4 years ago
What does the Java Virtual Machine seek first?
Lady_Fox [76]

Answer:

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

Explanation:

The Java Virtual Machine seek first class loader, where this machine load, link and initialize the classes.

However, at the architecture level, when you are running java code in different machine/operating systems, it will seek first firewall.

5 0
3 years ago
. List four different ways automation can be used in testing?
hichkok12 [17]

Answer:

Automation testing can be used for:

<u>Input-output test :</u> If the main function of your software is to transform input data into output data you can configure a new test by providing a new input/output pair, then the test will check to see if the output matches with the expected values.

<u>Unit test :</u> This test is a script to check the return values of a specific code by initializing it and calling his methods. This is a part of a test-driven development process.

<u>Integration test :</u> This test is a code level script that does a complete check process involving multiple objects. For example, you might make a test for “buy a product” which checks to see if the database is updated, if the data is correct of the person is correct, and if the person placing the order gets the right confirmation email.

<u>Smoke Tests:</u> This test is executed immediately after implementation on production to ensure that the application is still functioning.

6 0
3 years ago
Other questions:
  • What does a graphic organizer do
    6·1 answer
  • The first widely adopted windows product, ____, featured a standardized look and feel, similar to the one made popular by apple'
    11·1 answer
  • In a proper webpage, which tag holds all of a webpages visible HTML?
    5·1 answer
  • ____ assigns a risk rating or score to each information asset. Although this number does not mean anything in absolute terms, it
    8·1 answer
  • Which of the following is not a type of Internet Job Board? Options Resume Blaster Professional Association Target Applicants We
    8·1 answer
  • Which best describes the benefits of renting a home
    12·2 answers
  • Puter Science (IS)
    14·1 answer
  • Select the correct answers
    9·1 answer
  • Which of the following is a set of security controls designed to protect payment account security such as a credit card transact
    13·2 answers
  • HELP ME PASS!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!