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
Nutka1998 [239]
4 years ago
12

Create a new method in your language called Times Print. This should be a void method. It should accept exactly two numeric valu

es as input, X and Y. Inside the body, it should display text like, "The value of X times Y is Z," where Z=X*Y. It should accomplish no other tasks inside the body. Call this method inside your main (or equivalent starting point) three times, each with different inputs. Check that the program runs and the output matches what you expect. Embed screenshots of the code and the program running.

Computers and Technology
1 answer:
user100 [1]4 years ago
8 0

Answer:

The code commented is given below, also the lines that start with # are comments that explains the code.

# Create a function named times_print that receives 2 values x and y

def times_print(x, y):

   # Print the formatted string

   print("The value of {} times {} is {}".format(x,y,x*y))

# Create the main function

def main():

   # Call the funciton times_print 3 times with different values

   times_print(2,3)

   times_print(4,5)

   times_print(5,6)

# Execute the main function

main()

Explanation:

The code was written using Python 3.5, and here I attach the screenshots of the program running:

You might be interested in
Which program can damage your computer? can cause damage to my computer.
svetlana [45]

Answer:

Malware is designed to cause damage to a stand alone computer or a networked pc. So wherever a malware term is used it means a program which is designed to damage your computer it may be a virus, worm or Trojan.

Explanation:

3 0
4 years ago
Read 2 more answers
The price elasticity of demand for mobile phones a. will be higher if there is an improvement in the production technology. b. w
rodikova [14]

Answer:

b. will be lower if consumers perceive mobile phones to be a necessity.

Explanation:

The price elasticity of demand is described as the percentage variation in the demanded quantity of service or goods divided by the change in the percentage of the price. And henceforth it describes the responsiveness of the demanded quantity to a price change. And now if the mobile phones are thought of as being the necessity then the price will increase as demand will increase, and hence the price elasticity of demand will be lower. And if there is an improvement in the production technology then the price will be lowered, and hence price elasticity of demand will be less as the change in the percentage of the price will be negative. And the exact definition of it as we have described above. Hence, b is correct options.

3 0
3 years ago
Four kinds of information a writer must document are: _____. A) common knowledge information B) direct quotation summary of a di
Dmitry_Shevchenko [17]
<span>The four kinds of information a writer must document are: summary of a discussion, original ideas, common knowledge information, and direct quotation. These are the fundamental information one must seek in order to fully understand the document.</span>
6 0
4 years ago
True of False - use T or F An abstract class can have instances created using the constructor of the class.
Sindrei [870]

Answer:

False

Explanation:

An instance of an abstract class cannot be created through the constructor of the class, because it does not have a complete implementation. Though, it is possible to have references of an abstract type class. Abstract classes are incomplete structures and you would have to build onto it before you are able to use it.

7 0
4 years ago
Difference between vacuum tube and transistor​
Lorico [155]

Answer:

I HOPE THE ABOVE INFORMATION WILL HELP YOU A LOT.

6 0
3 years ago
Other questions:
  • What is the use of form in HTML​
    12·1 answer
  • Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in
    11·1 answer
  • I - For any two points on the Internet, there exists only one path between the two points II - Routing on the Internet is fault
    12·1 answer
  • Websites whose URL’s contain tildes (~) are usually published by the government. True or false?
    8·2 answers
  • What are somd negetive aspects and some positive aspects of having robots as a part of workplace?
    13·1 answer
  • The five types of personal computers are: desktops, laptops, tablets, smartphones, and ________.
    13·1 answer
  • (20points)
    6·1 answer
  • how can you turn on a light switch and it not work, without turning off the power to the whole house?
    15·1 answer
  • What is computer virus?​
    12·1 answer
  • High level language is___________
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!