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
enot [183]
3 years ago
7

What is the definition of a program?

Computers and Technology
2 answers:
Georgia [21]3 years ago
7 0
It’s a collection of code ;)
brilliants [131]3 years ago
5 0
I’m pretty sure that a program is a collection of code
You might be interested in
Using language c, find the nth Fibonacci, knowing that nth Fibonacci is calculated by the following formula: - If n = 1 Or n = 2
Nina [5.8K]

Answer:

#include <stdio.h>

int fib(int n) {

 if (n <= 0) {

   return 0;

 }

 if (n <= 2) {

   return 1;

 }

 return fib(n-1) + fib(n-2);

}

int main(void) {

 for(int nr=0; nr<=20; nr++)

   printf("Fibonacci %d is %d\n", nr, fib(nr) );

 return 0;

}

Explanation:

The code is a literal translation of the definition using a recursive function.

The recursive function is not per se a very efficient one.

4 0
3 years ago
Suppose that a laptop identifies its processor as follows: AMD’s A84500M. What does the AMD represent?
zalisa [80]

Answer:

Advanced Micro Devices

Explanation:

4 0
3 years ago
Which condition will cause the statement block of the if statement to execute only when count is 0?
maxonik [38]

Only when the count is 0 will the if statement's statement block be executed because of the if count == 0 condition.

<h3>What is an if statement?</h3>
  • A program is guided to make decisions based on predetermined criteria using the IF statement, which is a decision-making statement.
  • If a certain condition is satisfied (TRUE), one piece of code is run, and if it is not, another set of code is run, and so on.
  • A conditional statement, also called a conditional expression, conditional flow statement, or conditional processing, is a set of guidelines that are followed when a specific condition is satisfied.
  • Because IF a condition is satisfied, THEN an action is taken, it is sometimes referred to as an If-Then statement.

To learn more about if statement, refer to:

brainly.com/question/18736215

#SPJ4

4 0
2 years ago
Write a program to implement the algorithm that you designed in Exercise 21 of Chapter 1. Your program should allow the user to
Murrr4er [49]

Answer:

total = 0

items = int(input("Enter the number of items ordered: "))

for i in range(items):

   price = float(input("Enter the price of item " + str(i+1) + ": "))

   total += price

if total < 200:

   total += (items * 10)

   

print("Bill is $" + str(total))

Explanation:

*The code is in Python.

Ask the user to enter the number of items ordered

Create a for loop that iterates depending on the number of items ordered. Inside the loop, ask the price of each item and add it to the total

After the loop, check the total. If it is smaller than 200, add 10 for each item to the total

Print the total

4 0
4 years ago
Please answer these for me!!
ollegr [7]

2 2 1 1 i think  i may be wrong tho

3 0
3 years ago
Other questions:
  • Study the editorial cartoon Participation in Youth Sports Down by Dan Landgren Jr.
    6·2 answers
  • HELP PLEASE
    7·2 answers
  • What is the answers please
    10·1 answer
  • What is the advantage of using the clipboard task pane?
    7·1 answer
  • .
    8·1 answer
  • Why do we need IP Addresses in order for the Internet to function properly?
    7·1 answer
  • Escribe todas las posibles combinaciones que pueden haber entre 4 bits.
    11·1 answer
  • Assume three jobs arrive at approximately the same time (arrival time are all 0), but Job A arrives slightly before Job B, and J
    13·1 answer
  • Can you distinguish between the following examples and determine which one is NOT creative work? a. software b. slogan c. screen
    15·1 answer
  • Which of the following is NOT a computer peripheral?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!