Write a program (PYTHON) that ask the user to enter two integers. The program will multiply the two integers. Create a loop that runs 4 times to accept 4 pairs of integers. Print the numbers and product along text that describes your output.

(Example:

This first number is:

The second number is:

The product is:

)

Answers

Answer 1

The python program is an illustration of loops; Loops are used to perform repetition

The python program

The program written in python, where comments are used to explain each action is as follows:

#The following loop ensures that the instruction is repeated 4 times

for i in range(4):

   #This gets the first number

   num1 = int(input("This first number is: "))

   #This gets the second number

   num2 = int(input("This second number is: "))

   #This prints the product

   print("The product is:",(num1 * num2))

Read more about Python programs at:

https://brainly.com/question/24833629

#SPJ1


Related Questions

HELPPPPPPPPPPP


What is the best definition of a programming language?
OA. A complex thought process that breaks down difficult problems to
find their solutions
OB. The internal language a computer uses to communicate with other
computers and devices
C. The language that developers use to communicate with one
another about software design
OD. A language that instructs a computer how to carry out functions.

Answers

Answer:

A language that instructs a computer how to carry out functions.

Explanation:

Write a program to convert kilometers/hr to miles/hr. The program should produce a table of 10 conversions, starting at 60 km/hr and incremented by 5 km/hr. The display should have appropriate headings and list each km/hr and its equivalent miles/hr value. Use the relationship that 1 kilometer = 0.6241 miles. Implement this program using the FOR loop. Sample output is given below: write a c++ programe Page 1 of 2 I KM per hour Miles per hour 60 37.4460 65 40.5665 70 43.6870 46.8075 80 49.9288 85 53.0485 90 56.1690 95 59.2895 100 62.4100 105 65.5305​

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

   float speed_in_km_per_hr = 60;

   

   // Output table head

   cout << "km/hr  miles/hr." << endl;

   

   for (int i = 0; i < 10; i++)

   {

     // Convert KM/hr to miles/hr

     float speed_in_miles_per_hr = speed_in_km_per_hr * 0.6241;

     

     // Output speeds

     cout << speed_in_km_per_hr << "     " << speed_in_miles_per_hr << endl;

     

     // Increase by 5

     speed_in_km_per_hr = speed_in_km_per_hr + 5;

   }

     

   return 0;

}

Explanation:

Which measure is best to use to avoid outliers from corrupting the average?

Answers

A measure which is best to use to avoid outliers from corrupting the average is: C. mode.

What is an outlier?

An outlier can be defined as a numeral that is either unusually too small or large in comparison with the overall pattern of the numerals contained in a data set.

In Statistics, mode is a measure which is best to use to avoid outliers from corrupting the average because it takes into consideration the most frequently occurring numerals in a data set.

Read more on outlier here: brainly.com/question/10600607

#SPJ1

Which emerging technologies will have more injury on our day to day country & How?​

Answers

Explanation:

Complete the sentence with the words below stop push direction slow down move shape speed up pull A force is a. or a.

Which of these agents of education empowers the other..........
A. Family
B. SCHOOL
C. Media
D. Church

Answers

Answer:

B. school

Explanation:

Because the school is where you learn and gain knowledge

B. School.

Explanation; Education is the main factor in school, Therefore B seems like the only right answer. Hope this helped:)

What allows a person to interact with web browser software?
O user interface
O file transfer protocol
O networking
O URLS

Answers

Answer:

user interface

Explanation:

Write a for loop that displays the following numbers exactly like this (you must use a loop):

3 7 11 15 19

Hint: notice the pattern of the numbers

Answers

Answer:

I will use c++ for this...

#include <iostream>

using namespace std;

int main() {

 int num = 0;

 int curr = 0;

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

   num = 3 + curr;

   cout << num << " ";

   curr += 4;

 }

}

public class Pyramid {

 public static void main(String[] args) {\

            int h = 7;

      System.out.println("Pattern A");

              for(int i = 1; i <= h; ++i)

              {

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

                      System.out.print("+");

                  }

                  System.out.println();

              }

      System.out.println();

      System.out.println("Pattern B");

              for (int i = 1; i<=h; ++i)

              {

                for(int j = h; j >=i; --j){

                    System.out.print("+");

                }

                  System.out.println();

              }

          }

      }

What is the trick in this code is using a nested for loop?

The trick in this code is using a nested for loop

The outer for loop runs from i = 0 to the height of the triangle (in this case 7)

The inner for loop which prints the (+) sign runs from j = 0 to j<=i

It prints the + using the print() function and not println()

In the pattern B the loop is reversed to start from  i = height

Time and space are examples of an infinite loop, but I would also include human life. The water cycle is an example of a while loop since it will continue as long as the earth and water do. But the planet Earth probably won't last forever.

For loop: As the previous commenter noted, someone who works hard every month would be regarded as a for loop.

To learn more about infinite loop ,for loops, while loops refer to:

brainly.com/question/13148070

#SPJ7

What is the "Driver's Compact Law"?

Answers

Answer:

Explanation:

The Driver License Compact is an interstate compact used by States of the United States to exchange information concerning license suspensions and traffic violations of non-residents and forward them to the state where they are licensed known as the home state.

The Driver License Compact is an interstate compact used by States of the United States to exchange information concerning license suspensions and traffic violations of non-residents and forward them to the state where they are licensed known as the home state.

The code __ will display the filename of the current workbook. ​

Answers

code field displays file names


The primary memory consists
.... and ...
a) Pendrive b) Hard Disk c) RA
d) Scanner e) ROM

Answers

Answer:

RAM and ROM

Explanation:

Primary memory is random access memory that a processor or computer accesses first or directly. It enables a processor to access running execution apps and services stored in a specified memory address.

Answer:

ROM and RAM (c And e)

You work at a computer store and a client approaches you, asking you to recommend a computer that she can buy for her son who wants to use the computer for gaming.
Identify the components to consider and provide examples of certain specifications to each component that would be suitable to work for a gaming computer. Also provide the best type of cooling system.

Answers

A good gaming computer shall have at least an i5 processor with liquid cooling system with a good graphic card to ensure lag-free gaming.

What are the essentials of a good computer?

A good computer shall have all the connectivity options with good features and best-in class performance. Storage capacity should be high. Furthermore, processor shall be of top-notch and latest quality.

Hence, the essential technical specifications of a computer.

Learn more about computers here:

https://brainly.com/question/21080395

#SPJ1

Fara is a bit frustrated with trying to write computer programs. Which of the following might be helpful? A. systems software B. typing practice C. new hardware D. presentation software

Answers

Answer:

D

Explanation:

Presentation software is defined as computer programs designed to allow the user to present information in an engaging way such as with text, pictures, sound and video. PowerPoint is an example of a presentation software.

During the POST process, the BIOS uses two (2) different ways to notify you of a problem, Error beep codes and error messages, explain how they work.​

Answers

Error beep codes works by giving different kinds of codes as each codes stands to tell the user the issue with the computer  and error messages are known to be in massage format.

How BIOS report when there's an error?

The BIOS is known to use three methods for reporting errors. They are;

Beep codesError/status codesOnscreen messages

Therefore, one can say that Error beep codes works by giving different kinds of codes as each codes stands to tell the user the issue with the computer  and error messages are known to be in massage format.

Note that A good error message contains the problem identification, reason in details and the  solution if it is known to be possible.

Learn more about BIOS from

https://brainly.com/question/1604274

#SPJ1

Select the skill that matches the following definition.​

treating others the way you want to be treated regardless of ethnicity, religion, gender, or orientation:
work ethic
integrity
respect
leadership

Answers

Answer: Respect

Explanation: Treat others with respect if you want to be treated with respect

Juan plans on using an algorithm to make cookies. What is the step that he should follow immediately after he makes the cookies? A. be sure that he has read the directions properly B. clean everything up C. review his experience D. decide what to bake next

Answers

The step that Juan should follow immediately after he makes the cookies is to review his experience.

What is algorithm?

An algorithm is known to be the way used for handling a problem or carrying out a computation.

Note that The step that Juan should follow immediately after he makes the cookies is to review his experience as he will be able to know if his algorithm  is correct or not.

Learn more about algorithm from

https://brainly.com/question/25978728

#SPJ1

At a murder scene, you have started making an image of a computer’s drive. You’re in the back bedroom of the house, and a small fire has started in the kitchen. If the fire can’t be extinguished, you have only a few minutes to acquire data from a 10 GB hard disk. Discuss your options for preserving the data

Answers

To preserve data, If you've previously emptied the RAM and registry, you may simply disconnect the power from the rear of the PC and remove the drive from the case; otherwise, if you want to save the entire system, you can carry the entire case with you.

What is a hard disk?

A hard disk drive or hard drive is a storage device that store data in an electronic device.

Thus, to preserve data, If you've previously emptied the RAM and registry, you may simply disconnect the power from the rear of the PC and remove the drive from the case; otherwise, if you want to save the entire system, you can carry the entire case with you.

Learn more about hard disk

https://brainly.com/question/14504942

#SPJ1

Discuss the importance of following a well-integrated change control process on IT projects. What are the consequences that can result from not following the best practices?

Answers

The projects that deal with the information system and the computer technology are called IT projects. To reduce the redundancy rates the change control processes are followed.

What is redundancy?

Redundancy is the state of the dismissal or the unuseful components that are the extra parts of the system and can act as the error. So, to avoid redundancy useful resources should be allocated.

To avoid the error and confusion between the two groups working on the same data. These types of changes are important for projects like small tasks, QC and QA, and for the big project research and development.

Therefore, to reduce the redundancy rate well-integrated changes are adopted.

Learn more about IT projects here:

https://brainly.com/question/15239278

#SPJ1

A Python file that contains variables and functions and can be used in other programs is called a

Answers

Answer:

module

Explanation:

class - something that can be used to create objects

documentation - provides information on the program and how to use it

dictionary - a set of keys and terms that match with keys

Which statement best describes how the programming layer of abstraction in
a computing system functions?
A. It processes data using switches.
B. It allows computers to make animations.
C. It provides an interface for users to input data.
D. It processes data to perform computations.

Answers

The statement that best describes how the programming layer of abstraction in a computing system functions is that It provides an interface for users to input data.

What is the abstraction about?

In computer science, an abstraction layer is known to be full generalization of a kind of concept or algorithm, that is seen far from any particular implementation.

Note that generalizations is due to a lot of similarities that are best contained by models that shows similarities present in a lot of specific implementations.

Therefore, The statement that best describes how the programming layer of abstraction in a computing system functions is that It provides an interface for users to input data.

Learn more about abstraction from

https://brainly.com/question/7994244

#SPJ1

What is the value of this expression:
‘there' == 'here'

Answers

Answer: undefined

Explanation:

just gonna answer it instead of it being a comment

How could you use the sqrt function from the math module to print the square root of 16?

Answers

Answer:

b

Explanation:

It is not "import sqrt" because import is used to add a module, and "sqrt" is not a module.

It is not sqrt(16) because we need to use the math. prefix so that python recognizes that sqrt is a function from the math module.

The two types of Desktop Publisher (DTP) frames for entering information are ... and ...​

Answers

Answer:

digital pages and virtual paper pages

The two types of Desktop Publisher (DTP) frames for entering information are digital pages and virtual paper pages.

What do you mean by Desktop publishing?

Desktop publishing may be defined as the process of creating or manufacturing documents through the utilization of page layout software on a personal computer. It may be characterized as the utilization of personal computers in order to design books and booklets that are intended to be printed by inkjet or laser printers.

There are two types of pages that are used for the same intention of designing books, booklets, documents, etc. These pages are known as digital pages and virtual pages. Both these pages are used for specific functions in order to allow users, businesses, and other organizations, to self-publish a wide variety of content.

Therefore, digital pages and virtual pages are the two types of Desktop Publisher (DTP) frames that are used for entering information.

To learn more about Desktop publishing, refer to the link:

https://brainly.com/question/7221406

#SPJ2

You work at a computer store and a client approaches you, asking you to recommend a computer that she can buy for her son who wants to use the computer for gaming.
Identify the components to consider and provide examples of certain specifications to each component that would be suitable to work for a gaming computer

Answers

Answer:

Explanation:

Here are the most important specs and details you need to keep your eye on when making a computer purchase.

RAM. RAM is short for Random Access Memory. ...

Processor. ...

Storage. ...

Screen Size. ...

Resolution. ...

Operating system.

Copy and paste your code from the previous code practice. If you did not successfully complete it yet, please do that first before completing this code practice.

After your program has prompted the user for how many values should be in the array, generated those values, and printed the whole list, create and call a new function named sumArray. In this method, accept the array as the parameter. Inside, you should sum together all values and then return that value back to the original method call. Finally, print that sum of values.

Answers

The code practice illustrates the following concepts:

Arrays or ListsMethods or Functions

The program in Python

The program written in Python, where comments are used to explain each action is as follows:

#This imports the random module

import random

#This defines the sumArray method

def sumArray(myList):

   #This initializes the sum to 0

   isum = 0

   #This iterates through the list

   for i in myList:

       #This adds the array elements

       isum+=i

   #This returns the sum

   return isum

#This gets the number of values    

n = int(input("Number of values: "))

#This initializes the list

myList = []

#This iterates from 0 to n - 1

for i in range(n):

   #This populates the list

   myList.append(random.randint(0,100))

#This prints the list

print(myList)

#This calls the sumArray method

print(sumArray(myList))

   

Read more about Python programs at:

https://brainly.com/question/24833629

#SPJ1

Determine whether the compound condition is True or False.
2 <3 and 5 <1
3 <3 or 1 ≤1
not (2 == 3)​

Answers

The given compound conditions would be considered true or false as follows:

2 <3 and 5 <1 is  false.3 <3 or 1 ≤1 is true.not (2 == 3) is true.

How do you know if a statement is true or false?

A statement is said to be true if what it shows is the case, and it is false if what it shows is not the case.

Based on what is given above, The given compound conditions would be considered true or false as follows:

2 <3 and 5 <1 is  false.3 <3 or 1 ≤1 is true.not (2 == 3) is true.

Learn more about 'Compound Condition' from:

https://brainly.com/question/18450679

#SPJ1

On September 1, Year 1, a company paid an $21,600 premium on a 36-month insurance policy for coverage beginning on that date. Refer to that policy and fill in the blanks in the following table.

Answers

What is an insurance policy for coverage?

Coverage is a prison agreement between the coverage company (the insurer) and the person(s), business, or entity being insured (the insured). Reading your coverage facilitates you to confirm that the coverage meets your desires and that you apprehend your and the coverage company's duties if a loss occurs.

Read more about the insurance:

https://brainly.com/question/25855858

#SPJ1

Manny has drafted an email message and configured a delivery option "Do not deliver before: 5:00 P.M. and today's date." He shuts down his computer and leaves for the day at 4:30 p.m. What will happen at 5 p.m.?

The message will be delivered from the server.
The message will be delivered from Manny’s computer.
The message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.
The message will remain in Manny’s outbox until the computer is started, and he will be prompted to send.

Answers

In this scenario: C. the message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.

What is Microsoft Outlook?

Microsoft Outlook simply refers to an e-mail and task management software application that is designed and developed by Microsoft Inc., so as to avail end users an ability to send electronic messages, schedule and plan their work activities on a timely basis.

Based on the time schedule, what would happen is that: C. the message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.

Read more on Microsoft Outlook here: https://brainly.com/question/1538272

#SPJ1

1) What is Database? List its Uses.

Answers

Answer:

a database stores a large sum of data

Explanation:

its used to keep track of things like student names bank accounts and other things

PART 2 - Exercise 2 - Programming Assignment

Case study:

An event company asks you to design the data structure and program prototype for their running event system. The participant for the running event is expected to reach more than 1000 in various categories. You decided to use hashing function method to store the information for each participant's BIB number in the hash table.

To begin the problem solving, suppose that 10 registered runners need to be stored. The sample BIB number of the runners are: 101, 102, 103, 104, 107, 111, 121, 217, 157, and 185. Apart from BIB number, participant information also contains a name (string), category (int) -e.g., men open (1), women open (2)), and runtime (int). The default value for runtime is 0 (represent 0 minutes).

Suppose that a linked list is used as

a data structure for the hash table, create a program that a. Implement the hashing functions for this problem. You can accept up to 10 inputs from the user or read from a formatted text file of participant information.
b. Create the hashing function that will handle any collision as chaining.
c. Find a bib number and print out the information
d. Print out the content of the linked hash table.​

Answers

Suppose that a linked list is used as a data structure for the hash table, create a program that includes steps his application counts the number of phrases in documents decided on via way of means of the user #include.

What is Programming?

It is the manner of making hard and fast commands that inform a pc the way to carry out a task. Programming may be finished the usage of lots of pc programming languages, inclusive of JavaScript, Python, and C++.

This application counts the quantity of phrases in documents decided on via way of means of the user.#include #include #include the usage of namespace std; //Function 1 int count(string word)go back word.size();}//Function 2int vowel(string word)> filename;//Open the {input|enter">enter file.inputfile.open(filename.c_str()); cout<<"nWord listing after format";cout<<"n____nn"; //If the file succesfully opened, process it.if (inputfile).

Read more about program :

https://brainly.com/question/1538272

#SPJ1

What data type does the in operator return?

Answers

[tex]\huge\red{Hi!}[/tex]

The Operator data type is any expression that is parsed and returns a value, such as tod() , gui() , rtecall() , = (comparison). An operator is a special symbol or function commonly used in expressions.

Other Questions
I am very confused and so are my classmates. WHO APPLIES B2C MARKETING? Lamar is considering two loansWhich loan will have the lowest total payback? How does o'connor depict this setting as the car moves through it? in what ways is the setting similar to or different from the one in steinbeck's passage? help me pleasetysm! Describe the method you could use to investigate the volume of hydrogen produced during the electrolysis of sodium chloride. we can use the word ... instead of research What do you think about The Black War ? Which of the following will occur withan increase in the Money Supply? The length of three boards added together is 7.2 meters. The second board is twice the length of the first. The third board is three times the length of the first. What is the length of the three boards? nate spent 3/8 of his money on clothes .he spent 510 on clothes.calculate how much money he had left over? phase changes lab, please! I need help fast deadline is really close. Which type of desert would have high daytime temperatures in summer, low temperatures in winter, and moderate precipitation plaese explain this exe i can't understand and tomorrow i have an exman of metahmatice What's the most effective method for controlling inventory ? a ) Electronically , by reviewing billing receipts b ) Electronically , by checking recent orders Oc ) Visually , by looking at discarded packaging d ) Visually , by looking at what's on the shelf 1. What point of view does the author convey in the article?a. running a rooftop farm is highly profitable.b. large cities can take advantage of the benefits of rooftop farming.c. only certain companies can have rooftop farms.d. Rooftop farms can only be done in certain citiesarticle is Rooftop views are growing greener as crops sprout up high By Chicago Tribune 1. Read the following paragraph from "Resistance to CivilGovernment" by Henry David Thoreau:This American government, -what is it but a tradition,though a recent one, endeavoring to transmit itselfunimpaired to posterity, but each instant losing some of itsintegrity? It has not the vitality and force of a single livingman; for a single man can bend it to his will. It is a sort ofwooden gun to the people themselves. But it is not theless necessary for this; for the people must have somecomplicated machinery or other, and hear its din, to satisfythat idea of government which they have. Governmentsshow thus how successfully men can be imposed upon,even impose on themselves, for their own advantage. It isexcellent, we must all allow. Yet this government never ofitself furthered any enterprise, but by the alacrity withwhich it gotout of itsway. It does not keep the countryfree. It does not settle the West. It does not educate. Thecharacter inherent in the American people has done allthat has been accomplished; and it would have donesomewhat more, if the government had not sometimes gotin its way. For government is an expedient, by which menwould fain succeed in letting one another alone; and, ashas been said, when it is most expedient, the governed aremost let alone by it.Analyze the rhetorical style of this paragraph. How doesthe style contribute to the essay's power? In particular,consider its parallelism and figurative language informulating your response. Be sure to include specificdetails from the text to support your answer. (10 points) which of these has occurred during the most recent period of globalization?A. More trade wars have flared up because of the increasing use of protective tariffs B. Developed countries have extracted natural resources from colonies C. Currency instability has led to a slowdown of international trade D. The income gap between rich and poor countries has widened The volume of a gas is 6.10 l, measured at 1.50 atm. what is the pressure of the gas in mmhg if the volume is changed to 9.74 l? Why is Mona Lisa so famous?