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


Your sister has just emailed you an attached file with the invitation list for her upcoming party.
Which of these tells you what type of file it is?
A. Folder name
B. File name
C. Extension
D. Call Number

Answers

Answer:

The file Extension so the answer is C

C. The extension is the answer to your 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

Why did the spelling and grammar checkers in Word miss the errors highlighted in yellow?


please help, im vv confused

Answers

Answer:

I do believe that it is a grammar mistake.

ACTIVITY NI MATCHING TYPE Directions: Match Column A with Column B. Write the letter of the correct answer on the space provided before the number a. Trion your nails b. visits the dentist c. scrub your hands with soap and water d. wear deodorant taking a bath 18111411 hely wear suitable clothes at work g. avoidis open wounds while working with food h. Regularly out your hair. 1. Use a seperate towel or cloth wiping hands. . keep sanitizer. 10.​

Answers

Answer:

Mark me a brainless plss i need that i am blink plss

1.(154)10=(?)2
help me! I will give 25 points.​

Answers

Dang dude that seems like a head problem hopefully you’ll get the answer soon

A field name can be up to 64 characters long

Answers

Answer:

Explanation:

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

Draw a conceptual sketch of your laptop. Identify the keyboard, screen, power source, and storage device and etc. using arrows and labels.

Answers

Answer: 12345678910111213141516171819202122

Write a program in c++ to input a number print the sum of all the odd factors.​

Answers

Answer:

#include <bits/stdc++.h>

using namespace std;

//calculate sum of odd factors

int sum(int n) {    

int res = 1;  

 while (n % 2 == 0)  

 n = n/ 2;    

for (int i = 3; i <= sqrt(n); i++)

{      

int count = 0, total = 1 ;  

    int temp = 1;    

  while (n % i == 0) {  

       count++;      

   n = n / i;        

 temp *= i;        

 total += temp;    

  }      

res = res*total;  

 }  

 if (n >= 2)

   res *= (1 + n);  

 return res;

}

int main()

{

   int n = 20;  

 cout<<"sum of odd factors is : ";  

 cout <<sum(n);    

return 0;

}

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



Where do you place the logical test argument in an IF function formula?
O before the IF function
O the first argument listed after IF
the second argument listed after IF
O the third argument listed after IF
Intro
Don

Answers

Answer:

the first argument listed after IF

yw

Which of the following factors is most likely to result in low shipping and handling costs? A higher than average hourly pay rate for material handlers A rare but high-in-demand packaging material A promotion for free shipping on orders over a predetermined order total All of the above​

Answers

Answer: A higher than average hourly pay rate for material handlers

Explanation:

Shipping and handling cost describes costs related to the total cost of an ordered item which are included in the fees used to deliver the item to the buyer. Hence, the correct option is C

Shipping and handling cost usually depend on the size of the item, the buyer's location and fragility of the item purchased.

From the options given, handling and shipping fee may be reduced as a result of free promotional shipping on orders.

Handler and drivers who are paid above average will result in increased shipping fee and rare in-demand items won't come cheap either.

Hence, low shipping fee will most likely be as a result of promotion for free shipping on orders over a predetermined order total.

Learn more : https://brainly.com/question/20533392

where and when to implement such network.

Answers

i think it is a

and it is b , so haha

To what extent do you agree with the assertion that “Collection development begins with community analysis”. (Give reasons to buttress your answer).

Answers

I completely agree that Collection development begins with community analysis; this is because the goal of collection development is to meet the information needs of everybody in a user community.

Collection development is a term used to describe the gathering and maintenance of library materials and resources such as textbooks, audiovisuals, and electronic materials for the community users to assess.

Collection development involves many processes, but it is better to begin with community analysis to know what type of resources, information, or materials is needed in that community.

It is from the community analysis and conclusion reached; other steps can then be followed sequentially.

Also, note that through community analysis, one can determine the present users of the library and their major interests.

Hence, in this case, it is concluded that community analysis is vital in the collection development in library and information management.

Learn more here: https://brainly.com/question/24837376

Wht roles do computer play at home?​

Answers

Computers are used at homes for several purposes like online bill payment, watching movies or shows at home, home tutoring, social media access, playing games, internet access, etc. They provide communication through electronic mail.

(a) Distinguish between hyperlink and homepage.​

Answers

Homepage is the entire page that opens when you open the browser and hyperlink is a link that takes you to another page.

Create a timeline of the evolution of computers.

Doesn’t have to be extra or super detailed

Answers

Answer:

The computer was born not for entertainment or email but out of a need to solve a serious number-crunching crisis. By 1880, the U.S. population had grown so large that it took more than seven years to tabulate the U.S. Census results.1937: J.V. Atanasoff, a professor of physics and mathematics at Iowa State University, attempts to build the first computer without gears, cams, belts or shafts.1943-1944: Two University of Pennsylvania professors, John Mauchly and J. Presper Eckert, build the Electronic Numerical Integrator and Calculator (ENIAC). Considered the grandfather of digital computers, it fills a 20-foot by 40-foot room and has 18,000 vacuum tubes.1985: Microsoft announces Windows, according to Encyclopedia Britannica. This was the company's response to Apple's GUI. Commodore unveils the Amiga 1000, which features advanced audio and video capabilities.2006: Apple introduces the MacBook Pro, its first Intel-based, dual-core mobile computer, as well as an Intel-based iMac. Nintendo's Wii game console hits the marke

Explanation:

This could be the computer development;

From using
Vacuum Tubes to > Transistors > Integrated Circuits > Micro Processors and to the new developping Artificial Intelligence

Write a method named removeDuplicates that accepts as a parameter a List of integers, and modifies it by removing any duplicates. Note that the elements of the list are not in any particular order, so the duplicates might not occur consecutively. You should retain the original relative order of the elements. Use a Set as auxiliary storage to help you solve this problem.

For example, if a list named list stores [4, 0, 2, 9, 4, 7, 2, 0, 0, 9, 6, 6], the call of removeDuplicates(list); should modify it to store [4, 0, 2, 9, 7, 6].

Answers

The method is an illustration of loops or iteration.

Loops are used to carry out repetitive operations.

The removeDuplicates method in Python is as follows, where comments are used to explain each line.

#This defines the method

def removeDuplicates(list):

#This initializes the output list

   outputList = []

#This iterates through the list

   for i in list:

#All elements not in the output list, are appended to the output list

       if i not in outputList:

           outputList.append(i)

#This returns the output list

   return str(outputList)

At the end of the method, the new list contains no duplicates.

Read more about similar program at:

https://brainly.com/question/6692366

HELP ASAPPPP PLSSSSS!!!!!! The purpose of capillary tubes is to:


permit oxygen and nutrients to be absorbed by cells
allow blood to complete a path between arteries and veins
reverse the flow of blood
provide a means for cell wastes to enter the blood stream

Answers

Answer:

Permit oxygen and nutrients to be absorbed by cells

Explanation:

Because ,the capillaries arw the smallest of the blood vessels they act as a bridge between the two main..vessels

If you wanted to multiply two numbers, you would use the _____ key.


-

*

=

/

Answers

* because it’s like the dot or the x

Identify the following verb by number and person by checking on the appropriate boxes.

SHE WANTS!!


second person
singular
plural
same form for both singular and plural
third person
first person PLEASE HELP!!!!!! LAUNGUAGE ARTS

Answers

second person ig Imao yeah

Answer:

Singular and third person

Explanation:

Second person: this answer is not correct as second person refers to pronouns such as “you, yourself” like in a recipe.

Singular: this is correct as a singular verb is when there is only one subject. You can also tell it’s a singular verb as the present tense ends with a “s”.

Plural: this is not plural because there is only one subject. Plus the present tense of the verb ends with an s so it’s not a plural verb. Plural verb’s present tense never ends with an s.

Third person: this is correct because the subject of the sentence is someone else. Third person pronouns include: “her, she, he, him, they, then” basically, third person is when you talk about someone else.

First person: this answer is not correct because first person refers to one’s self. So first person pronouns are: “I, me, myself”

2.Is having the right tool imperative to successful completion of task at hand? ​

Answers

[tex]\huge\underline\mathtt\colorbox{cyan}{Yes}[/tex]

Having the right tool is imperative to successful completion of task at hand.

To what extent do you agree with the assertion that “Collection development begins with community analysis”. (Give reasons to buttress your answer).

Answers

The assertion that collection development starts with community analysis is logically correct.

The collection development policy is vital for setting goals for the collection that mirror the missions of the library. It gives information to the stakeholders of the library about how the collection will be chosen, and who will make the decisions regarding the collection.

Collection development starts with community analysis. The collection plan should follow a logical process in order to be effective. The community should be taken into consideration before the plan is carried out. The more one knows about the community, the better it'll be to make the collection plan effective.

Read related link on:

https://brainly.com/question/21529943

If known vulnerabilities in software are entry points for an attacker, why are the software vulnerabilities not corrected before the software is released?

Answers

Answer:

we dont knoqw

Explanation:

The developer hasn't had enough time to address them, these flaws are referred to as "zero days." is the software vulnerabilities not corrected before the software is released.

What is software?

Software is a set of instructions, information, or computer programs that are used to operate equipment and perform certain tasks. Hardware, which is a term for a computer's external components, is the opposite of it. In this usage, "software" refers to the running scripts, programs, and apps on a device.

The procedures and software that make it possible for a computer or other electrical equipment to operate are referred to as software. Examples of the processes and programs that make up a computer system are Excel, Windows, and iTunes.

System software consists of the programs and processes required to run the computer. System software, utility software, and application software are the three subcategories of software.

Thus, The developer hasn't had enough time to address them.

For more information about software, click here:

https://brainly.com/question/985406

#SPJ2

am i the only one that finds so much bots on peoples pages lol

Answers

Nah, I see that too lol

The process of generating an image from a 2D or 3D model using computer programs is called ........

Answers

Answer:

endering or image synthesis is the process of generating a photorealistic or non-photorealistic image from a 2D or 3D model by means of a computer program. ... The term "rendering" is analogous to the concept of an artist's impression of a scene.

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

Show a parse tree and a leftmost derivation for : B = C * (A + B)
by using the grammar below:
-> =
-> A | B | C
-> +
| *
| ( )
|

Answers

Answer:

mhyfocnu,sobgu,kvngwugwe8hri

Explanation:

sovijbjxyzkuvcg

10 sentences about computer parts.

Answers

One computer part is the CPU, it’s a piece of hardware the last allows your computer to access and interact all the applications and programs. The first ever CPU chip was invented around 4 decades ago. The keyboard is another computer part and it allows the user to type letters and numbers. There are about 104 keys on a keyboard and there are different parts in it. Some of the parts include, control keys, function keys, navigation keys, numeric keypad, and so on. A mouse is another device used with the keyboard to position the cursor. It’s a hand held device that detects two-dimensional motion relative to a surface. This motion is typically translated Into the motion of a pointer on a display, which allows a smooth control of the graphical user. Memory is a device to store all of your information and saved data. The motherboard is the backbone that tied together the computers components at one spot.

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

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:

Other Questions
explain why a patient with gout is more likely to develop renal calculi. Which statement implies that Lincoln believes the living are not in control of the world in which they live? (AKS 14)A)Both read the same Bible, and pray to the same God.B)Men should dare to ask a just God's assistance.C)The Almighty has His own purposes.D)God gives us a just and lasting peace. helpppppppppppppppppppppppppppppppppppppppppppppppppp plessssssssssss screenshot The length of a side of an equilateral triangle is 10 cm. Find the height of the triangle What type of figurative language is used in Annabel Lee by Edgar Allen Poe? (provide an example) which of the following are good ways for virtual team members to get to know one another? (choose every correct answer.) please help,The largest landforms are...A: PeninsulaB: CountriesC: ContinentsD: Mountains Nepal is a beautiful garden present your logics I will mark brainly if correct I and my friend is doing a party tomorrow I want to go with something to the party like my friend is bringing macaroni and my other friend is bringing lays two 50 lays what should I go with I asked my mother to make channa chaat or rice but she says I am very busy in the housework and there is no gas so what should I go with that should also be cheap and my friends should also like it -------- is a story of a person's life.biography novelshort story What does Distributive mean in your own words? How did many delegates from northern states at the constitutional convention view slavery?A. They wanted to expand slavery into other statesB. They believed they had the right to keep slavesC.They refused to consider ending slavery D. They wanted the constitution to end slavery Solve the problems. Write the complete proof in your homework and for online (only) respond to questions or statements (if any) that are parts of your proof or related to it. Please answer quickly Write an equation of each parabola in vertex form vertex : (7, 4) point: (5, 16) Which of the following is reflected in the way you use your time?Your likes and dislikesYour stress levelYour important classes and other activitiesYour goals and priorities the price of a shirt was reduced $15 to 9$ by what percentage was the price of the shirt reduced A political campaign does not serve any purpose if citizens do not respond by __________.A.canvassing B.registering C.votingD.pollingPlease select the best answer from the choices provided(A)(B)(C)(D) Read The Four Clever Brothers, and then identify the storys main elements by filling in the table.