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
Serhud [2]
3 years ago
10

What is the difference between algorithm and program?

Computers and Technology
1 answer:
Dennis_Churaev [7]3 years ago
8 0

Answer: The difference is that an algorithm is a precise step-by-step plan for a computational procedure that mainly begins with input value, yields, and output value. While a program is instructions written in code to explain to a computer what to do. Like how the CPU can send a command to the GPU to tell it what image to make. The better the CPU the better and faster it can read and complete it's given instructions.

Explanation: Trust me with this.

You might be interested in
Suppose a variable is passed By Value to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub
algol [13]

Answer:

"The value of the variable will remain the same which is already have when the sub-processor is called".

Explanation:

The above question said that:-

void fun(int a)

{

  a=a+1;

}

void main()

{

  int a=5;

  fun(a);

}

//what will be the value of a in the main function after the fun function is excuted.

  • Then the answer is: the value of a will be 5 in the main function.
  • It is because when the fun function is called, then a variable that is defined in the fun function is a local variable for fun function. That scope after the fun function is null.
  • The a variable inside the fun function is a different variable and the main function a variable is also a different variable.
  • So when the user prints the value of a variable inside the fun function, it will give the result as 6.
  • But when he prints the value of a variable inside the main function, then it will give the value as 5.
4 0
3 years ago
The ____ command sends a small tcp/ip packet to another ip address and awaits a response.
Anuta_ua [19.1K]
In *nix, the ping command keeps on sending ICMP packets unless the "-c" (count) argument is passed. In Windows, ping defaults to 4 ICMP packets.
7 0
3 years ago
What is a modem and what are its uses?
Bond [772]

Answer:

a combined device for modulation and demodulation, for example, between the digital data of a computer and the analogue signal of a phone line. Basically, a modem is used to connect the analog world to the digital world. In other words, you can say it is the device that is used to convert the analog signal to digital signal

Explanation:

6 0
2 years ago
Read 2 more answers
Create a geometry application For this exercise you will create a module named ‘shapes.py’ and a program that uses it. The modul
Maurinko [17]

Answer:

See explaination

Explanation:

# shapes.py

import math class Circle: def __init__(self, radius = 0): self.__radius = radius self.__area = math.pi * self.__radius ** 2 self.__circumference = 2 * math.pi * self.__radius def set_radius(self, radius): self.__radius = radius self.__area = math.pi * self.__radius ** 2 self.__circumference = 2 * math.pi * self.__radius def get_radius(self): return self.__radius def get_area(self): return self.__area def get_circumference(self): return self.__circumference class Rectangle: def __init__(self, length = 0, breadth = 0): self.__length = length self.__breadth = breadth self.__calc_area() self.__calc_perimeter() def __calc_area(self): self.__area = self.__length * self.__breadth def __calc_perimeter(self): self.__perimeter = 2 * (self.__length + self.__breadth) def set_length(self, length): self.__length = length self.__calc_area() self.__calc_perimeter() def set_breadth(self, breadth): self.__breadth = breadth self.__calc_area() self.__calc_perimeter() def get_length(self): return self.__length def get_breadth(self): return self.__breadth def get_area(self): return self.__area def get_perimeter(self): return self.__perimeter

# testShapes.py (Main program)

import shapes if __name__ == "__main__": print("a. Circle") print("b. Rectangle") choice = input("\nChoose a Shape to continue: ") if choice == "a": radius = int(input("\nEnter Radius of the Circle: ")) myCircle = shapes.Circle(radius) print("\nArea of Circle:", myCircle.get_area()) print("Circumference of Circle:", myCircle.get_circumference()) reset = input("Do you want to change Radius (y/n): ") if reset == "y" or reset == "Y": radius = int(input("\nEnter new Radius of the Circle: ")) myCircle = shapes.Circle(radius) print("\nArea of Circle:", myCircle.get_area()) print("Circumference of Circle:", myCircle.get_circumference()) elif choice == "b": length = int(input("\nEnter length of Rectangle: ")) breadth = int(input("Enter breadth of Rectangle: ")) myRectangle = shapes.Rectangle(length, breadth) print("\nArea of Rectangle:", myRectangle.get_area()) print("Perimeter of Rectangle:", myRectangle.get_perimeter()) reset = input("Do you want to change Length and Breadth (y/n): ") if reset == "y" or reset == "Y": length = int(input("\nEnter new length of Rectangle: ")) breadth = int(input("Enter new breadth of Rectangle: ")) myRectangle = shapes.Rectangle(length, breadth) print("\nArea of Rectangle:", myRectangle.get_area()) print("Perimeter of Rectangle:", myRectangle.get_perimeter()) else: print("Invalid choice!!! \'", choice, "\'\nExiting...")

7 0
3 years ago
​ A(n) ____ is a website that allows multiple users to contribute content and edit existing content.
Inessa05 [86]

Answer:a)​wiki

Explanation: Wiki , which is operated by the wiki software ,is a website that provides the knowledge content to the various users.The site content is written in the basic form of language using the markup language.The text present in the content can be change accordingly.

Other given options are incorrect a e-zine is a type of electronic magazine on the computer system,blog is known as the journal in online mode,and search engine is used for searching any particular component on system. Thus the correct option is option(a).

8 0
3 years ago
Other questions:
  • For all those among our fans and SpongeBob fans which is better SpongeBob or amount us
    11·2 answers
  • What happens when you double-click one of the graphic options in the middle panel of the choose a smartart graphic dialog box?
    14·2 answers
  • To display measurements on the ruler while changing column widths, hold down the ________ key while dragging the marker.
    13·1 answer
  • What font option will elevate part of the text to a higher level and decrease its size? A. Subscript
    8·1 answer
  • Senior executives at a global manufacturing company are determining the key performance indicators they'll use to judge how effe
    15·1 answer
  • when I was playing Mobile legends bang bang online Match The game logged Me out and when I was Trying To reconnect it failed and
    5·1 answer
  • PLEASE HELP
    14·1 answer
  • 5) How is the operating system on a desk top computer different from the operating system on a smart phone?​
    8·1 answer
  • Carlie was asked to review a software prject for her company and determine what materials are needed. Whihc part of project mana
    15·1 answer
  • Which of the following is not a use of a hash function
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!