(in PYTHON) Write a function in REPL.it that uses three parameters, and squares the first, calculates mod 5 of the second parameter, and quadruples the third parameter. The function should be called, and that value stored in a variable, and then outputted using the print( ) function.

Answers

Answer 1

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]}")


Related Questions

You develop an app, and you don’t want anyone to resell it or modify it. This is an example of: A
an operating system.

B
open source software.

C
proprietary software.

Answers

Answer:

C, proprietary software

Explanation:

Proprietary software, also known as non-free software, is computer software for which the software's publisher or another person reserves some rights from licensees to use, modify, share modifications, or share the software. It sometimes includes patent rights.

Ill give 100 points to whoever gives me the CORRECT answer. I keep getting syntax errors when I do the "add:" part. Can someone walk me through this code?
Part A One of the biggest benefits of writing code inside functions is that we can reuse the code. We simply call it whenever we need it! Let’s take a look at a calculator program that could be rewritten in a more reusable way with functions. Notice that two floats (decimal numbers, but they can also include integers) are inputted by the user, as an operation that the user would like to do. A series of if statements are used to determine what operation the user has chosen, and then, the answer is printed inside a formatted print statement. num1 = float(input("Enter your first number: ")) num2 = float(input("Enter your second number: ")) operation = input("What operation would you like to do? Type add, subtract, multiply, or divide.") if operation == "add": print(num1, "+", num2,"=", num1 + num2) elif operation == "subtract": print(num1, "-", num2,"=", num1 - num2) elif operation == "multiply": print(num1, "*", num2,"=", num1 * num2) elif operation == "divide": print(num1, "/", num2,"=", num1 / num2) else: print("Not a valid operation.") Your job is to rewrite the program using functions. We have already looked at a function that adds two numbers. Using that as a starting point, we could call the add function from within our program in this way: if operation == “add”: result = add(num1, num2) print(num1, "+", num2,"=",result) Now it’s your turn to do the following: Type all of the original code into a new file in REPL.it. Copy the add function from the unit and paste it at the top of your program. Write 3 additional functions: subtract, multiply, and divide. Pay careful attention to the parameters and return statement. Remember to put the three functions at the top of your Python program before your main code. Rewrite the main code so that your functions are called. Part B There are many different ways that a user could tell us that he or she would like to add two numbers in our calculator program. The user could type “add”, “Add”, “ADD”, or “+”, to name a few possibilities. Of cour

Answers

Answer:

sorry but there is not enough information to complete this

Explanation:

working on rewriting my code so i can paste it here! itll be done in a sec

Personal digital assistants are: Group of answer choices artificial intelligence systems that leverage rules or examples to perform a task in a way that mimics applied human expertise. handheld computing devices meant largely for mobile use outside an office setting. systems that provide rewards and usage incentives, typically in exchange for a method that provides a more detailed tracking and recording of customer activity. small chip-based tags that wirelessly emit a unique identifying code for the item that they are attached to. transaction processing systems that capture customer purchases.

Answers

Answer:

its about digital science

Explanation:

You are the administrator for a small network. You have approximately 50 users who are served by a single Windows server. You are providing Active Directory, DNS, and DHCP with this server. Your clients all use Windows workstations. Last week, an employee quit. A replacement has been hired and will be starting next Monday. The new user will need to have access to everything the previous user had, including document files held in the Home folder. You need to set up an account for the new user that all the access required. What should you do?

Answers

Answer:

Rename the existing account, and change the name fields to match the new employee.

Explanation:

As you appoint new employer that need all the access to everything that the previous user had, including the documents files held in the Home Folder.

So, As an administrative of the network, you should Rename the existing account, and change the name fields to match the new employee.

A privacy prevention technique by using a unique number while installing a
software to prove the software originality.

-Product Keys
-License agreement
-Holograms
-Software permission​

Answers

Product keys ? I’m not too sure on what ur asking

Answer:

Product keys

Explanation:

Which property do you use to align an element horizontally with the left or right edge of its parent element?
A.) position
B.) z-index
C.) float
D.) clear

Answers

A thank me later:) give me hearts

1. Describe a recent modern "story" you heard, read, or saw. Explain how that story taught you an important idea about life, family, or society. Be sure to talk about where/how you heard/read about the story in your description.

2. Describe a simulation game you've played recently or have heard about (you may even propose a simulation game idea yourself). Explain why that game fits the definition ofba simulation.

3. in an age of books, films, television, why are games important?

4 think of a game you enjoy. For that game, Describe some of its objectives, rules, operstion, obstacles, and outcomes.

5. What is the main difference between a video game and other types of games (board games, card games, tag, etc.)? What are the similarities?​

Answers

due to recent times there has been injustice. the movement im talking about is blm or alm. theese rough times when socitey cant agree with each other. during theese times its taught me alot about both sides arguments. may 25 2020 "i cant breathe i cant breathe i cant breathe" george floyed was killed may 25 2020 this is when this whole mess started. building being burnt down to crips. people raiding the streets. people getting hurt. the pain some people felt was to much to handle that they dealt with it wrong. here is were alm comes in. alm all lifes matter, mexican lifes matter, black lifes matter, muslims lifes matter, chinnese life matetr white lifes matter unborn lifes matter and much more. blm supporters disagree that all lifes dont matetr untill black lifes do and that alm didnt exist until blm did. theese tough times taught me society needs to stick togther now more then ever and that the skin tone your size your religon dosent matter just how you treat other.

a simulation game. a stimulation game i propose is a simulation game were you live normal life. get a job pay rent and ect. which would teach kids how to work and how to earn money how to pay taxes. this game would be perfect to teach kids the importance of money and that money isnt earned easy. how i imagine it is the game is all about investing buying a better house getting a good job and not going bankrupt. you could even start a buisness which other players can shop in. this game would be the perfect fun and educational game.

in an age of books, films, television, why are games important? games can come in diffrent forms some teach you how to stay safe. some teach you how to run a buisness. some can even teach you how to invest. game can be educational and fun at the same time! games are great for whenever its raining outside and you have some spare time to get cozy and enjoy a game. some games can even bost your mental strength with puzzels and maze's which help your brain stay healthy.

my favorite game, is a board game monopoly. its a game were you invest in properties and NOT go bankrupt! its a fun game with lots of obstacles i enjoy that you play it with lots of people because in real life you will have obstacles people will try and get in your way.

a video game and a board game. the diffrence is video games can be good but can take a bad turn wuick to much is bad for you and like drugs can become addictive and somtimes even dangerous with hackers. a board game is safe because you just play it with your faimly and friends and there is no virus no hackers. there can be cheaters but much safer than video games. the simarlity is that they both can bost your mental stregth and keep your brain active with lots of thinking on the best move.

this took so long so i hope you like it!

(Java)
The extends keyword is used to:

a. to copy a parent class

b. to get access to methods and constructors of a parent class

c. make an int longer

Answers

The answer is c your welcome
ASMWER is 2
Because u wouldn’t want to copy a parent class for sure so that’s out of the option!

Describe how you will lunch a web browser using the start menu​

Answers

Answer:

The steps are described as follows:

Click on the start menu button on your keyboardPlace the mouse pointer in the search areaType in the name of the browser (eg. Microsoft Edge or Internet Explorer etc.)Press enter on the keyboard or you click open/startWait, while the browser opens

Explanation:

The steps are self-explanatory

Answer:

Kindly check explanation

Explanation:

To launch a web browser using the start menu:

Click on the windows icon or start menu to open a search option, then type the name of your preferred browser, maybe Chrome, Firefox, safari, explorer or any other. Once the appropriate searched item pops up, place the cursor on the appropriate or preferred browser icon. Once the cursor is on the browser icon, you can either left click on the muse to display the available options, the right click on launch or start on the menu displayed. OR you can double click the the right side of the mouse to launch directly.

Jane is applying for an entry-level position as a support specialist at an IT firm. She is creating a résumé and needs to add her current skills.

Which of the following is most relevant to the job?
A. Computer
B. Creativity
C. Math
D. Sensitivity

Answers

A. Computer

I’m sorry if I’m incorrect but I’m pretty sure that right

Need help with the last one or if I got the others wrong

Answers

i think the answer would be c? if im wrong my apologies.

8.7 Code Practice: Question 2 edhesive

Answers

In this exercise we have to have knowledge of computational language in python, so we find the code.

How to define list in Python?

In Python, a list is represented as a sequence of objects separated by commas and enclosed in square brackets [], so an empty list, for example, can be represented by square brackets without any content.

So, to make it simpler, the code can be found below as:

w = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for x in w:

if(x[0]=='A'):

print(x)

See more about python at brainly.com/question/26104476

Answer:

w = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for i in range(len(w)):

     if w[i][0] == "A":

               print (w[i])

Explanation:

Using complete sentences post a detailed response to the following.

Why do you think coding languages generally include the ability to create comments? What would those comments be used for? Include both how they can help a single developer and how they would help multiple developers working together on a single project.

Answers

Answer:

java or python

Explanation:

What are the different data types that a variable can be in computer programming?

Answers

Answer:String (or str or text)

Character (or char)

Integer (or int)

Float (or Real)

Boolean (or bool)

Explanation:

Based on what you know about the Sort and Find functions, return to the database file to determine the answers to the following questions.

In which year did most people update their contact information?

1988

2010

2011

2012

Answers

Answer:

2010

Explanation:

Most of the people updated their information in the database in the year 2010. The database files have different functions which enable the sorting of data according to the contact information with year wise filter.

Answer:

It’s 2012

Explanation:

You want to use the sleep function in your program and only the sleep function. The following line of code will allow you to do so.
time import sleep

Answers

Answer:

from time import sleep

Explanation:

Not sure what the question is, but assuming the question is "How would you import only sleep from time?" and the language is python, this is the answer.

9. Draw a flowchart to find the area of rectangle. (A = /B* H)
1 Add File​

Answers

Answer:

See Photo

Explanation:

Area of rectangle = length * width

---- According to problem: A = /B*H

---------Note: Dropped the "/", if needed just change what happens in the diamond

Pls help me computer science discoveries

Answers

Answer:

jdinwoahdjsioadjsakodsiaohdeioajfnsohfujkdshksyfneowjdfikdjiadjsadhnsuidghaiudbnha

Explanation:

Use the drop-down menus
to complete the steps for reducing the mailbox server storage,
1. To access Mailbox Cleanup tools, navigate to_____the tab, and click Cleanup Tools.
2. Once in the Mailbox Cleanup dialog box, there are different options to choose from, such as_____________
or Empty Deleted Items,
3. The____________
function moves items off the server to an online Office 365 folder.

Answers

1. enter back stage view

Answer:

1. File

2. AutoArchive

3. Online Archive

Explanation:

Which of the following describes how modern operating systems function?: A
They use punch cards to store and retrieve data.

B
They manage hardware and resources.

C
They handle one task at a time.

Answers

Answer:

Try B

Explanation:

how do hand tools,Farm implements and farm equipment differ from one another

Answers

Farm equipment helps the workers with the work they are already doing and farm implements do the work in there own

what is computer give definition ​

Answers

Answer:

computer is

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

Which types of computer hardware are internal?

Answers

Answer:

Here are some :) (sorry if there are too many)

Explanation:

RAM (Random Access Memory): It's a fast-access memory that is cleared when the computer is powered-down. RAM attaches directly to the motherboard, and is used to store programs that are currently running.

Video Card/GPU (Graphics Processing Unit): It's a specialized processor originally designed to accelerate graphics rendering.

Sound Card: USB sound "cards" are external devices that plug into the computer via USB.

Storage: SSD (Solid State Drive): It is a data storage device that uses solid-state memory to store persistent data.

HDD (Hard Disk Drive): It is a non-volatile storage device which stores digitally encoded data on rapidly rotating platters with magnetic surfaces. Just about every new computer comes with a hard disk these days unless it comes with a new solid-state drive.

CPU (Central Processing Unit/ sometimes just called a processor) It's a machine that can execute computer programs, and sometimes called the brain of the computer.

Motherboard: The motherboard is the body or mainframe of the computer, through which all other components interface. It is the central circuit board making up a complex electronic system.

Firmware: Firmware is loaded from the Read only memory (ROM) run from the Basic Input-Output System (BIOS). It is a computer program that is embedded in a hardware device, for example a microcontroller.

Power Supply: The power supply as its name might suggest is the device that supplies power to all the components in the computer.

CD-ROM Drive: There are two types of devices in a computer that use CDs: CD-ROM drive and a CD writer. The CD-ROM drive used for reading a CD. The CD writer drive can read and write a CD.

Floppy Disk: A floppy disk is a type of data storage that is composed of a disk of thin, flexible(“floppy”) magnetic storage medium encased in a square or rectangular plastic shell.

Internal Storage: Internal storage is hardware that keeps data inside the computer for later use and remains persistent even when the computer has no power.

Disk Array Controller: A disk array controller is a device which manage the physical disk drives and presents them to the computer as logical units.

On some computers the speakers are internal as well. :)

Elige una metodología presentada en la lectura para aplicar la prospectiva (Método Delphi o Construcción de escenarios) y de manera gráfica represente cada metodología y sus fases.

Answers

Answer:

Método Delphi

Explanation:

El método Delphi es un método experto que se ha utilizado ampliamente en la investigación de futuros. En la actualidad, el método Delphi involucra típicamente de 15 a 40 expertos en dos o tres rondas.  

La selección de un panel de expertos que represente de manera integral a las partes interesadas relevantes es un paso crucial en el estudio. La primera ronda, a menudo realizada a través de entrevistas, busca preguntas relevantes y motiva al panel a seguir trabajando. En la siguiente ronda, los panelistas evalúan las declaraciones prospectivas y justifican sus respuestas con diferentes perspectivas. Una característica clave del método es dar respuestas sin nombre, es decir, de forma anónima.

El método Delphi es especialmente adecuado para tratar un tema complejo o que cambia rápidamente, para el cual se pueden identificar expertos o partes interesadas (como ciertos grupos de población) u organizaciones (desarrollo tecnológico, problema social) que estén particularmente familiarizados con él.

El proceso Delphi produce una variedad de perspectivas, hipótesis y argumentos que se someten a pruebas y argumentaciones de expertos abiertos. El proceso busca filtrar las opiniones en opiniones de la comunidad compartidas o disidentes. Ambos resultados son valiosos. Puede haber desacuerdo no solo sobre los argumentos sino también sobre los objetivos, la probabilidad y la conveniencia de las alternativas.

ways to be your best digital self?

Answers

To be your best digital self just remember that everything you do on the internet STAYS on the internet. There’s no way around it. Be mindful of what you post, say, and do online. Don’t let that, however, stop you from showing something you love to do or talking about something you’re interested in. Being your best digital self requires restraint and knowledge. Think to yourself, do I really want to send this message? this picture? this threatening message? Be safe rather than sorry. Don’t let that stop you from being you. Have fun :) !

HELP MEEE PLEASE!!!
Match the description with the information system it represents.

1. The use of a computer program to determine the diagnosis of a patient

2. The use of a computer program to forecast an earthquake

3. The use of a computer program to create a presentation

Decision support systems
Knowledge-based system
Office automation system

Answers

Answer:

b goes with 1 c goes with 3 and a goes with 2

Explanation:

Program with variables upload instructions

Answers

Answer:

Here, I made sure to incorporate variables just in case. You could change it to whatever you need.

Explanation:

v1 = "Hello world!"

v2 = "Spam"

v3 = "Eggs"

v4 = "SpamEggs"

v5 = "Spam Eggs"

v6 = "Spam Eggs"

v7 = 7.9

v8 = 20

v9 = 13

v10 = 5

v11 = 13

v12 = 10.8

v13 = 2.7

print(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)

if you don't want it all on one line you could just print each variable individually :)

Answer:

Print(“Hello World!”)

Print(“Spam”)

Print(“Spam+Eggs”)

Print(“Spam Eggs”)

Print(“Spam Eggs”)

Print(“7_9”)

Print(“2”+”0”)

Print(“1”+”3”)

Print(“5”)

Print(“1”+”3”)

Print(“1”+”0”+”.”+”8”)

Print(“2”+”.”+”7”)

Explanation:

I think i did it lol, not sure

List the two page orientations in Microsoft word​

Answers

Answer:

Portrait and landscape

Explanation:

please rate brainiest for my progression

Son los inventarios en proceso que hacen parte de la operación en curso y que se deben tener en cuenta antes de empezar a transformar el material directo.

Answers

Answer:

When an inventory is purchased the goods are accounted in the raw material but when this raw material is to be converted in finished goods it is transferred from raw material to processing of raw material into finished goods and when the process is completed when the raw material turns into finished goods the goods are then accounted for as finished goods.

Explanation:

When an inventory is purchased the goods are accounted in the raw material but when this raw material is to be converted in finished goods it is transferred from raw material to processing of raw material into finished goods and when the process is completed when the raw material turns into finished goods the goods are then accounted for as finished goods.

Jessie will make and sell the trending Baked California Maki. Her Peso mark up is 5.00. Selling price PHP 15.000. How much will be the Paercentage mark up?Use the formula Percentage mark up= Peso markup/selling price. *

Answers

Answer:

50%

Explanation:

The markup is the difference between the selling price and the cost price. If the mark up is greater than zero, it means there is a profit, if the markup is less than 0, it means there is a loss and if the markup is equal to 0, it means there is breakeven.

Percentage markup = (markup/cost price) * 100%

Selling price - cost price = markup

15 - cost price = 5

cost price = 10

Percentage markup = (markup/cost price) * 100% = (5/10) * 100% = 50%

Other Questions
The Burgesses use about 2 gallons of drinking water per day. If each water jug holds 5 gallons , how many jugs of water do they need for a month with 30 days? (20 POINTS CORRECT ANSWER GETS BRAINLIEST) Read the map.A map titled The Extent of Christianity. A key shows Christianity, circa 300 C E in purple, Christianity, circa 600 C E in orange, and Modern borders with a gray line. Purple shaded areas include Jerusalem, Palestine, and areas in the Mediterranean including regions of Greece, Rome, and Carthage, in North Africa. Orange shaded areas include Spain, Portugal, England, France,Italy, countries in Central Europe, Greece, Turkey, and North Africa.How did the Edict of Milan, which was issued in 313 CE, affect the spread of Christianity?It allowed Christianity to spread to Carthage and Jerusalem.It allowed Christianity to spread outside of Europe by 600 CE.It allowed Christianity to spread around the entire world by 600 CE.It allowed Christianity to spread throughout the entire Roman Empire. quickly describe Ponyboy, Johnny, Dally, Darry, Bob, Randy, and Cherry. Who can help me on this ? French Revolution was an uprising of the French people against the monarchy and government (17891799) True False PLEASE HELP WILL MARK BRAINLIEST!!!!The measure of an angle is 37.1, What is the measure of its complementary angle? Quadrilateral ABCD is rotated 270 clockwise about the origin. What are thecoordinates of quadrilateral A'B'C'D?D015. - 1C(1-2)B(1-5)A/5.5O A. A (5,5), B' (1,5), C' (1,2), D' (5, 1)B. A'(-5, -5), B'(-1,-5), C'(-1,-2).D'(-5, -1)C. A (5,5), B'(5,1), C'(2,1), D (1,5)D. A'(-5,5), B'(-1,5), C'(-1,2).D'(-5,1) Explain ONE of the developments of Zionism within the context of the developments in nationalism.please help ASAP In 2008, China welcomed thousands of athletes as they hosted the Olympic Games. During this time, some countries arranged for their athletes to train in neighboring countries while some were photographed arriving at Beijing's airport wearing face masks issued to them by team officials. Factories in Beijing and the surrounding region were ordered to shut down weeks ahead of the opening ceremony. Nineteen days before the Games were due to start, officials implemented restrictions on the use of private automobiles in the city. 1implemented: put into effect Which environmental issue was a big concern for many of the athletes? A. The intake of polluted air leading to illness. B. The seasonal rains would have an impact on the competition. C. The city lacked fresh drinking water during this time. D. The temperatures would be too hot to compete. Can anyone help me plz which venn diagram shows the numbers placed correctly please help me im debating with two answers but im not sure. also please explain thanks help me please!!! thank you!!! Please help ahhhhhhhhh Suppose a scientist discovers fossils of ancient horses in an area. The fossilized horses are much smaller than modern horses. They are found in the same layer as many fossilized tree trunks. Today, horses still live in the area, but it is now open grassland. How do you think the environment has changed over time, and how could this change have led modern horses to be larger than ancient horses? Please don't say anything not related. Thank you. please help asap ill give brainliestFind the surface area of a square pyramid with side length 1 mi and slant height 4 mi. Which is the same as 10 x 10 x 10? Mai runs around a 400-meter track at a constant speed of 250 meters per minute. How many minutes does it take Mai to complete 4 laps of the track? Owen and bella shared a granola bar. Bella ate 1/4 of the granola bar. Owen ate 1/3 of the bar. How much of the granola bar dis owen and bella leave uneaten? someone help me asap