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
Stels [109]
3 years ago
10

Write a program that multiplies two hard-coded numbers, then prints the individual numbers out and prints their product out, all

on separate lines. You can choose the two numbers that are multiplied together.
Computers and Technology
1 answer:
sp2606 [1]3 years ago
5 0

Answer:

Written in Python:

num1 = 10

num2 = 15

print(num1)

print(num2)

print(num1 * num2)

Explanation:

The programs requires that two number be assumed and multiplied.

The program uses num1 and num2 to represent the two numbers (line 1 and line2)

These numbers were then initialized to 10 and 15, respectively (note that, you can replace these numbers with any number of your choice)

The next two lines then print num1 and num2

The last line prints the result of their multiplication

However, line by line explanation is as follows:

<em>This line initializes num1 to 10</em>

num1 = 10

<em>This line initializes num2 to 15</em>

num2 = 15

<em>This line prints num1</em>

print(num1)

<em>This line prints num2</em>

print(num2)

<em>This line prints the product of num1 and num2</em>

print(num1 * num2)

You might be interested in
OSHA requires that employers pay for most required personal protective equipment (PPE), including: A. Hard hats B. Logging boots
Triss [41]
Im not 100% but Im pretty sure the answer is A. Hard hats

Hope this helps :)

6 0
3 years ago
What service provides realtime delivery of voice or streaming media?
k0ka [10]
YouTube, Twitch, and Beam are media that you can stream on.
(If that's what you are looking for.)
8 0
4 years ago
Match the appropriate words to complete the paragraph.Wireless networks have no clear boundaries, therefore securing communicati
lawyer [7]

Answer:

a. Encryption.

b. Authentication.

c. Strong.

d. Rogue.

e. Insecure.

f. Hacking.

Explanation:

In Computer technology, authentication can be defined as the process of verifying the identity of an individual or electronic device. Authentication work based on the principle (framework) of matching an incoming request from a user or electronic device to a set of uniquely defined credentials.

Basically, authentication ensures a user is truly who he or she claims to be, as well as confirm that an electronic device is valid through the process of verification.

Encryption is a form of cryptography and typically involves the process of converting or encoding informations in plaintext into a code, known as a ciphertext. Once, an information or data has been encrypted it can only be accessed and deciphered by an authorized user.

Some examples of encryption algorithms are 3DES, AES, RC4, RC5, and RSA.

Wireless networks have no clear boundaries, therefore securing communications requires strong encryption, authentication, and strong protocols. One of the most common wireless security threats is the presence of rogue access points (APs). Rogue points can be set up for the benign purpose of free wireless access or for malicious purposes, such as gaining access to confidential data. Using an insecure wireless hotspot, like so many found in public settings, leaves you vulnerable to become the victim of hacking.

6 0
3 years ago
Once the term of copyright has expired,a work
rosijanka [135]
...??????????????????
8 0
3 years ago
Why would a programmer use a “public” variable for something like speed? Provide at least two other examples of variables a deve
agasfer [191]

It is useful for things that you don't need to redefine, and you may need to use to compute different things (such that you have different modules/functions to compute each one of these things).

<h3><u>What is a public variable?</u></h3>

A public variable is a variable that any function, sub procedure, or module can access without restriction.

Thus, if you want to define a variable only once and be able to call it from different functions or modules when you need it, you would want to make it a public variable.

An example with speed is:

You can make a simple code that for an initial speed computes the position vs time graph.

But you may want to expand that program, let's say that you make a module that also allows you to find the momentum or something like that (where you also need to use the speed).

Then defining the speed as public, is useful, as you can only call it with the module or function that you use to find the momentum.

Another example, maybe more complete.

Assume that you work with radiation physics. You define a mean energy of radiation (this would be the energy of the x-rays for example).

Now if you define that variable as public, you could use it for a lot of modules to compute a lot of different things, like fluency, kermas, etc.

Things that are really complex to compute and you may have the codes for each one in different modules/functions.

So it is really useful when you already had several codes that work with the same variable.

If you want to learn more about variables, you can read:

brainly.com/question/15683939

7 0
3 years ago
Other questions:
  • Please help me!!
    13·1 answer
  • A company is updating their office routers that handle all incoming and outgoing networking traffic. They would like the PCs to
    10·1 answer
  • The company where Derek works has tasked him with setting up and securing a SOHO router. He wants to make sure the wireless netw
    11·1 answer
  • Explain each of the three important concepts behind the Federal Networking Council's definition of the term Internet. Explain ho
    8·1 answer
  • A chart that shows the resource (project team member) along with their allocated hours for each week is known as a(n):
    10·1 answer
  • In what way was the Ohio River Valley a factor in the French and Indian War? The Ohio River Valley was controlled by both France
    8·2 answers
  • Identify a stressor in your life. Conduct an internet search to locate at least two reliable sources of information on effective
    6·1 answer
  • Line spacing refers to the amount of space between each line in a paragraph
    10·1 answer
  • If the programmer translates the following pseudocode to an actual programming language, a syntax error is likely to occur. Can
    11·1 answer
  • Define a SCHEME function, unzip, which takes a list of pairs ((a .b)... (an .bn)) and returns a pair consisting of the two lists
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!