Write a program that can add, Subtract, multiply and divide entered numbers.

Answers

Answer 1

In Python:

def add(x, y):

   return x + y

def subtract(x, y):

   return x - y

def multiply(x, y):

   return x * y

def divide(x, y):

  return x / y


Related Questions

What happens to the Menu Bar when the
object (image, shape, etc.) is "active"?

Answers

Answer: Ok so Sorry about this but I will answer thing at 10:20 tommorow I promise

Explanation:

Select the correct locations on the image.
In which of these images would the rule of thirds become an evaluating factor?

Answers

Answer:

apple

Explanation:

the one of the apple is right

What are the data type(s) will be used to declare the variable(s) needed to
create the algorithm?*

1.. integer only
2.. real only
3..integer and real
4..real and string

Answers

The three primitive data types used in this course are int (integer numbers), double (decimal numbers), and boolean (true or false). Each variable has associated memory that is used to hold its value.

IT professionals ensure servers connected to the network operate properly. (2 points) True False

Answers

Answer:

True

Explanation:

Thats one of their most important jobs

Which type of game is least likely to need a structured narrative?


a first-person shooter, ,

an adventure game ,

a role-playing game ,

a sports game







Question 4

Answers

Answer:

an adventure game

Explanation:

It is this because people explore more than rather have certain dialouge or storylines like perspective games. so in that case i hope this answer helps!!!

Language is Python
9.9 LAB: Count input length without spaces, periods, exclamation points, or commas

Given a line of text as input, output the number of characters excluding spaces, periods, exclamation points, or commas.

Ex: If the input is:

Listen, Mr. Jones, calm down.
the output is:

21

Answers

Answer:

text = input('Please enter a line of text')

text = text.replace(" ", "")

text = text.replace(".", "")

text = text.replace("!", "")

text = text.replace(",", "")

print(len(text))

Explanation:

i answered this same exact question the other day.

line by line, the first line asks for input with a prompt.

the second line replaces spaces, the next one replaces periods, the next exclamation marks, the next commas. then the last line prints the total number of characters

In this exercise we have to use the computer language knowledge in python to write the code as:

the code is in the attached image.

In a more easy way we have that the code will be:

text = input('Please enter a line of text')

text = text.replace(" ", "")

text = text.replace(".", "")

text = text.replace("!", "")

text = text.replace(",", "")

print(len(text))

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

what is keyboard buffer tell me the answer nicely and I will give brainlitst​

Answers

Answer:

A keyboard buffer is a very small partition of memory that is usually stored in the computer memory in random access memory (RAM) and captures all the keystrokes made on a keyboard.

Explanation:

Which telemetry is used for monitoring astronauts in space​

Answers

Answer:

I believe it is medical telemetry

It’s Astroskin for there health the use the to help them in space

What kind of loop repeats until something else (determined by the program) happens?
iterative number loop
condition-controlled loop
count-controlled loop
forever loop

Answers

Answer:

The Condition-controlled loop

Explanation: Because its called a Condition and it does not stop untill something happens thats why its called "condition".

Answer: It's Condition-controlled loop

Explanation: The meaning of condition-controlled loop is Blocks will keep repeating until a condition is satisfed, Also beacuse I already did the quiz.

Types of cloud storag?

Answers

Answer:

There r 3 types of data storage: object storage, file storage, and block storage. Each offers their own advantages and have their own use cases: Object Storage - Applications developed in the cloud often take advantage of object storage's vast scalablity and metadata characteristics.

What is printed when the following code has been executed?
int x = 15;
int y = 4;
System.out.println((2 * x + y) % x);
15
4
34
2
19

Answers

Hey it is 15 hope this helps

- Discuss the input-process-output model as it relates to program development.
- Explain the purpose of each step and how that information is used in each step.
- What would be the impact on overall program performance if one of these steps was not included?

Answers

This is called IPO cycle.IPO stands for Input Process Output.All parts are necessary .

Lets see example.

Look at the program created in python below.

[tex]\tt num=int(input("Enter\:a\: number:"))[/tex]

[tex]\tt for\:i\:in\:range(3):[/tex]

[tex]\qquad\tt print(i*x)[/tex]

Suppose you missed the input or don't give that then you won't get an output.

The Input-Output Model is a multifunctional graph that shows the inputs, outputs, and processing activities needed to convert inputs into outputs.

The Input-Output Model:

The modeling is sometimes set up to incorporate any storage that occurs during the process. The inputs reflect the external flow of data and commodities into the operation.

All actions necessary to transform the inputs are included in the processing stage. The data and materials that flow out of the process of transformation are the outputs.

A small engineering business, for example, feels there are issues with its hiring procedure.

Several of the newly hired junior engineers stayed at the business for less than a year.

This is a significant expense for the company, since hiring and training new professionals is expensive and time consuming. The human resources department chooses to assemble a team of people with a lot of expertise in hiring new engineers. One from their first jobs is to create a hiring process input-output model. They come up with the following.

Find out more information about 'Input-output model'.

https://brainly.com/question/25519126?referrer=searchResults

What is a segmentation?

Answers

Answer:

Segmentation means to divide the marketplace into parts, or segments, which are definable, accessible, actionable, and profitable

A reference is _____.

Answers

Answer:

a written or spoken comment that mentions somebody/something

the action of mentioning or alluding to something.

ive atleast 10 examples of FAKE anti-virus and anti- spyware software

Answers

Answer:

Explanation:

protegent

spysheriff

doctor antivirus

winwebsec

spybouncer

thespybot

malwarealarm

macsweeper

spywarestop

spylocked

What protocol is used to discover the hardware address of a node with a certain IP address?

Answers

Answer: ARP hope this helps

Complete the following sentences by either filling in the blank or writing out the rest of the sentence (when there is a … ):

The internet is made up of _________ networks that all connect together to make a ____________ network.

The job of a router on the internet is to…


Clients allow people to…


Servers store _____________________ and send those to _____________ over the internet.


The internet is physically connected across the world using _______________


Computers break up information, like photos and emails, into ________________



The ___________ protocol tells computers how to break up the information and orders it.


The ________________ protocol tells the packets where they are going and where they are coming from.


The packets get to their destination by…


When the packets get to their destination, the __________ protocol…



Computers get the _______________ of servers by asking the ______________



Computers use the _____________ protocol to display a webpage.

Answers

Answer

hundreds,  massive, connect to the internet gigabytes, people, computers,

bytes, TCP/IP, TCP, internet, TCP, answers, questions, HTTP

Explanation:

How have computers affected education?​

Answers

Explanation:

Computers have supplied infinite resources for learning and made education more flexible and easy to access. Students can now gain knowledge and information not only from classroom assignments and libraries but also from available online resources.

Computers provide teachers and students the means to communicate quickly via email. Online grading systems also make it easier to view and audit a student's progress. In addition, computers open doors to social media, providing students and teachers tools to interact, collaborate and communicate.

In which of these images would lines become an evaluating factor?

Answers

Answer: The fish?

Explanation:

Answer:

birds in flight  and railroad tracks

Explanation:

i got it right

Describe psychographic differences among the past five generations of Americans that you learned about in this course. What type of game would you create for each generation based on that generation’s psychographic characteristics? Give reasons for your choices. You may do some online research to find existing games (if any) that may appeal to each generation of players.

Answers

Answer:

sorry I don't know about this question

a. Get a value for x from the user.

b. Test to determine if x is positive. If not, tell the user that he or she has made a mistake.

c. Take the cube root of x.

d. Do Steps 1.1, 1.2, and 1.3 x times

Answers

Program (Python):-

[tex]\tt x=int(input("Enter\:your\:number:"))[/tex]

[tex]\tt if \:x<0:[/tex]

[tex]\tt \qquad print("You\:have\:made\: mistake")[/tex]

[tex]\tt else:[/tex]

[tex]\qquad\tt print("Well\:done")[/tex]

[tex]\tt cuberoot=x**1/3[/tex]

[tex]\tt print("Cube\:root=",cuberoot)[/tex]

[tex]\tt for\:i\:in\:range(x):[/tex]

[tex]\qquad\tt print(x)[/tex]

Sample output

Enter your number:-8

You have made mistake

Cuberoot=-2

-8

-8

-8

-8

-8

-8

-8

-8

For what purpose does a programmer use flowcharts and pseudocode?

A- to execute code
B- to translate code into assembly language
C- to communicate the steps needed to write a program
D- to communicate methods to test code

Answers

When there’s a quizlet theirs a way. So the answer is C. Pls give brainliest.

Which of the following expressions in Java is equal to 4?

3% 7
7 % 3
17 % 7
11 % 7
28 % 7

Answers

Answer:

3% 7

Explanation:

because 7 because seven ate nine and three was lonely so seven decided to also eat three and became a lesser number somehow because three apparently was not as big as the number 9 so maybe eating three caused him to go down to 4

The expression "11 % 7" in Java is equal to 4.

The "%" operator calculates the remainder of a division operation.

In Java, the "%" operator is used to calculate the remainder of a division operation.

So, let's evaluate each expression and see which ones equal 4:

3 % 7 = 3 (remainder of dividing 3 by 7)

7 % 3 = 1 (remainder of dividing 7 by 3)

17 % 7 = 3 (remainder of dividing 17 by 7)

11 % 7 = 4 (remainder of dividing 11 by 7)

28 % 7 = 0 (remainder of dividing 28 by 7)

Based on these evaluations, the expression "11 % 7" is equal to 4.

To learn more about programming visit:

https://brainly.com/question/14368396

#SPJ3

what are computer specification​

Answers

Answer:

They are basically all of your computer's information. It displays everything that has to do with the computer like model name, processor speed and etc.

They are basically all of your computer

Philip took pictures with his smartphone and save them into his computer unless you delete the photos from the computer they will remain strong because the a computer has a​

Answers

Answer:

Storage drive

Explanation:

1. Philip took pictures on a smartphone; given

2. Philip saved pictures from smartphone onto computer; given

Philip saved the pictures onto the computer. This means that the data was transferred from the phone's storage drive onto the computer's storage drive. Storage drives are strong/hard storage mediums. This means that the storage drive will not be deleted on each start-up, unlike weak/soft storage of random access memory (RAM).

HDD = Hard Disk Drive; strong/hard medium (non-volatile); a mechanical actuator etches data into magnetic platters.

SSD = Solid State Drive; strong/hard medium (non-volatile); NAND logic gates on electronically erasable programmable read-only memory (EEPROM) chips are controlled through a SSD controller

RAM = Random Access Memory; weak/soft medium (volatile); Double Data Rate (DDR) Synchronous Dynamic Random Access Memory modules (SDRAM) are controlled most commonly through a central processor unit (CPU) or through a dedicated memory chip (specialized tasks most commonly).

Number 1 is what part of an application







Title Bar


Ribbon


Quick Access Toolbar


Status Bar

Answers

Answer:

The correct answer is Quick acces tool bar. You litteraly probably don't even use brainly anymore lol.

Explanation:

I absolutly confirm this is correct.

The number 1 is the part of an application that is considerably known as the Quick Access Toolbar. Thus, the correct option for this question is C.

What does the Quick Access toolbar contain 1 point?

The customizable Quick Access Toolbar contains a set of commands that are independent of the currently displayed tab on the ribbon. You can move the Quick Access Toolbar from one of the two possible locations, and you can add buttons that represent commands to the Quick Access Toolbar.

According to the context of this question, the quick access toolbar is located in the title bar of the application window but can be configured to display below the ribbon usually consisting of the number 1 part of an application.

Therefore, number 1 is the part of an application that is considerably known as the Quick Access Toolbar. Thus, the correct option for this question is C.

To earn more about Quick access toolbar, refer to the link:

https://brainly.com/question/13523749

#SPJ6

A field name can be up to 64 characters long

Answers

Answer:

Explanation:

cool ..........................,...............................

When you use a library in your code, how do you give attribution?

Answers

When you use a library in your code, you give attribution: by writing the source, title, author and license in your code.

Attribution can be defined as a process which typically involves the citation (reference) of an original source of information such as a library, quote, paraphrase or summary, especially by using the author's full name, source, and job title (position) as the case may be.

In software development, you give attribution when you use a library in your code by writing the following:

The source in your code.The title in your code.The author in your code.The license in your code.

Read more: https://brainly.com/question/21172316

What is another name for a switch A.Number system B.Variable C.Logic Gate D.Boolean

Answers

Answer:

logic gate

Explanation:

took the test lol



does industry-recognized certifications (microsoft office suite) boost your resume and
increase your earning potential?

Answers

Answer:Having Microsoft Office training can make you more productive, confident, and satisfied with your job. ... Productivity is crucial to success in the administrative assisting field, and your employers will thank you for it. 3. Industry-recognized certification will boost your resume and increase your earning potential.

Explanation: i no it

Other Questions
what is the term for comparing your current progress toward a goal to that goal in order to determine effort allocation? -1/3x-1/6=2/9 solution what is the polystyrene? "Yeehaw!" or "Yeehaw"? Using the slope formula, find the slope of the line through the given points.(1,6) and (3,4) Please HELP!!!!!!!!!!!!!!!!!!!!! Using Newton's First Law, explain why, in a frictionless environment, a car that is under motion will not stop moving? Pls help i will mark brainliest plsWhat were the advantages and the disadvantages of a charioteer life?based on the reading bellow pls helppppppppp 1. Does the essay accurately describe the artwork? Does it mention the important featuresthat make the artwork distinctive? Explain.2. Do you think the writer's arguments make sense based on the visual evidence? Do youfind the arguments convincing? Why or why not?3. How would you have analyzed this art? What different points would you have made, andwhy?(link will be below) In the water cycle, at some point water vapor (gas) turns back into a liquid, wecall this precipitation. The liquid is typically in the form of rain, snow, or hail.Which of the following properties is the reasoning behind the formation of a rain?(Multiple Choice)a. Universal Solventb. CohesionC. Adhesiond. Surface Tensione. Homeostasis which types of institutions award associate degrees? PLEASE HELP ME!!!I need this ASAP please You will need to consolidate your trouble tickets A) 52 B) 78 C) 96 D) 39 Which table shows a proportional relationship between x and y?A. x y2 43 64 9B. x y3 49 1615 20C. x y4 125 156 18D. x y1 42 83 15 50,000 is 20% of what? 40 Points! I'm counting on you TT 1. Los sbados mis padres __________________(asistir) a una clase de yoga. asistimos asisten asisto2. La novia de Miguel ______________________(abrir) la puerta. abres abren abre3. Tus padres ___________________(aprender) el espaol aprendemos aprenden aprendes4. Usted __________(asistir) a la clase los lunes y mircoles. asisten asistimos asiste5. La familia ________(creer) que es importante compartir actividades. cree crees creen6. Mi hermana y yo __________________(deber) estudiar ms. debo debe debemos7. T y tu familia ______________________(vivir) en los Estados Unidos. vives vive viven8. Mi hermana ____________________(comer) bananas y cereales. como comimos come9. Mi amigo _________________(compartir) su sndwich. compartes comparte comparto10. correctLos estudiantes ___________ unos libros.leemosleenleo11. Nuestro abuelo ________________(compartir) sus experiencias. describe describen describimos12. Sus amigas ____________________(escribir) en su diario.escribimosescribenescribo13. Los hijos de Mara ___________________(escribir) mucho en la escuela. escribe escribes escriben14. Mis padres ____________(deber) practicar msdebendebedebo15. Mi madre y yo ______________(beber) t japonesa.bebenbebemosbebo16. T _______________(correr) los viernes.corrocorrescorre17. El programador ___________________(comprender) usar computadoras. comprende comprenden comprendemos18. Yo______________(vivir) en una casa muy bonita. vive vivo vivimos19. Yo __________________(decidir) estudiar ciencias. decido decide decidimos20. Mis compaeros de clase y yo _____________________(recibir) una A. recibo recibimos reciben What is 91835 rounded to the nearest Highest Place Which term describes the variable x in this program?x = int(input("Enter a score or enter -1 to end. "))while x != -1: x = int(input("Enter a score or enter -1 to end. "))an iteration countera sentinel valuea string counter a loop counter Which of the following statements regarding the Mongol conquests is most accurate?Select one:a. Kublai Khan forced conquered people to adopt Mongol language and religion under Yuan Dynastyb. The Mongols conquered what was left of the Abbasid caliphate centered in Baghdadc. The Mongols were driven off of the Korean Peninsula by the Japanesed. The government of the Golden Horde in Russia promoted cultural interaction with Western Europ