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
emmasim [6.3K]
3 years ago
12

(in PYTHON) Write a function in REPL.it that uses three parameters, and squares the first, calculates mod 5 of the second parame

ter, and quadruples the third parameter. The function should be called, and that value stored in a variable, and then outputted using the print( ) function.
Computers and Technology
1 answer:
tatiyna3 years ago
4 0

Answer:

I wrote this myself, it should be working. I think this is what the instructions were looking for.

The code below should return

Squared: 1296  

Mod: 0        

Quadrupled: 16

Explanation:

def threeParams(squared, mod, quadruples):

   array = [squared, mod, quadruples]

   array[0] = squared ** 2

   array[1] = mod % 5

   array[2] = quadruples * 4

   return array

valueArr = threeParams(36, 15, 4)

print(f"Squared: {valueArr[0]}\nMod: {valueArr[1]}\nQuadrupled: {valueArr[2]}")

You might be interested in
Pls help me pls I’m struggling
evablogger [386]

Answer:Turn Right () Degrees (block)

The turn right () degrees block is a Motion block and a stack block. The block turns its sprite's direction the specified amount of degrees clockwise.

6 0
3 years ago
What is the binary number system? ​
Scilla [17]
DescriptionIn mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit.
6 0
3 years ago
Linda installed a special pool for the hydrotherapeutic treatment of severe arthritis, as prescribed by her doctor. The cost of
stellarik [79]

Answer:

Linda is entitled to deduction (before any AGI limitations) of $896 in one year of installation of the pool.

Explanation:

Following is explained calculation for deduction (before any AGI limitations) that is Linda entitled to in the year of installation of the pool.

Given that:

Cost of Installing the pool = $22,400

Paid by insurance company = $5,600

So by deducting the price paid by insurance company from total cost the balance becomes:

Balance = $22,400 - $5,600 = $ 16,800

As the pool increased the value of house by $7,840 so we will deduct this amount from balance:

Balance = $ 16,800 - $7,840 = $8,960

As the useful life given for pool is 10 years so we will divide the balance with 10 to obtain the deduction amount for 1 year:

Deduction amount for one year = $8,960/10 = $8,96

Hence $8,96 will be deducted in one year installation.

i hope it will help you!

7 0
4 years ago
To uncompress the data back into its original binary state. True or False
sweet [91]

Answer:

The answer to the given question is "True".

Explanation:

To uncompress the information to their original binary status we use Lossless compression. It is a technique for decompresses data. This technique reduces a file's size. It no reduce the quality of the file. In other words, we can say that It is used for rewrites the data. and it uncompresses the file more efficiently, the initial archive. That's why the answer to this question is "True".

7 0
3 years ago
A spreedsheet program display data in a special document called a
Tamiku [17]
Google sheets. or excel. 
7 0
3 years ago
Read 2 more answers
Other questions:
  • The two main types of conditionals are???? (computer science)
    5·1 answer
  • Name at least two primary forms of identification needed to obtain a learner’s license.
    10·2 answers
  • As you are working on the Datacenter Edition server, you install a card to connect a set of RAID drives. After the card and driv
    8·1 answer
  • When adopting and implementing a Software as a Service (SaaS) platform such as Salesforce for your business, which responsibilit
    7·1 answer
  • Which of the following is part of the process of publishing a website?
    7·2 answers
  • Amber wants to give her audience copies of her presentation so they can follow along and take notes. What option should Amber ch
    9·2 answers
  • Lesson 12: while loops with the farmer. Number 9.
    10·2 answers
  • I need help fixing “Love Nikki” game on my phone. I had it on my phone and it worked just fine but then igot a new phone and tri
    8·1 answer
  • Which longstanding restaurant chain closed its last location in lake george, new york?.
    10·1 answer
  • QUESTION 9
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!