Question

What are the four basic arithmetic operators? Give meaningful example of using each. Here is an...

What are the four basic arithmetic operators?

Give meaningful example of using each.

Here is an example with the remainder operator:

Remainder Operator: %, returns the remainder after division, 7%3 = 1.

piecesOfCandyAfterEqualDivision = piecesOfCandy % numOfPeople

0 0
Add a comment Improve this question Transcribed image text
Answer #1

An arithmetic operator takes two operands and performs the particular operation on them.

The four basic arithmetic operators are :

Addition (+)

Subtraction (-)

Multiplication (*)

Division (/)

Let’s see all the examples :

+ (Addition)

If the distance from A to B is 5 kms and distance from B to C is 10 kms ,

Then the distance from A to C = Dist. From A to B + Dist. From B to C

- In a programming language say C ,

We write is as , x= y+z;

- (Subtraction)

If bob has 5 oranges and he eats 2 oranges from them.

Number of oranges left = 5- 2 = 3

- In a programming language say C ,

We write is as , x= y-z;

* (Multiplication)

If 2 cats have 5 kittens each , then total number of kittens = 5*2 =10

- In a programming language say C ,

We write is as , x= y*z ;

/ (Division)

If we have 10 apples and we have to give it 2 people , then

Number of apples each person will have = 10/2 = 5 apples each

- In a programming language say C ,

We write is as , x= y/z;

Add a comment
Know the answer?
Add Answer to:
What are the four basic arithmetic operators? Give meaningful example of using each. Here is an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please answer all questions I. Give an example of 2. List operators for arithmetic expressions in...

    Please answer all questions I. Give an example of 2. List operators for arithmetic expressions in python. 3 Give an eample on expression in python 4. List operators for rational/boolean expression in python. 5. Is there any type conversion in the following expression, and why? 9/3.0

  • A plant has four operators to be assigned to four machines. The time (minutes) required by...

    A plant has four operators to be assigned to four machines. The time (minutes) required by each worker to produce a product on each machine is shown in the following table: Machine (min) Operator A B C D 1 11 13 8 12 2 6 11 8 7 3 13 15 14 10 4 9 16 10 8 a. Formulate a linear programming model for this problem b. Solve it by using the computer. What is an optimal solution?

  • Multiplication and Division using PIC16F PIC16 is a very basic microcontroller with the capability of limited...

    Multiplication and Division using PIC16F PIC16 is a very basic microcontroller with the capability of limited arithmetic and logical operations. It has dedicated arithmetic instructions for addition, subtraction, increment and decrement. If we want to perform a multiplication and division operations then we need to write a program for it. Multiplication is nothing but repeated addition. However, division can be implemented using repeated subtraction. This mini-project presents assembly or C language program for the multiplication and division of two 8-bits...

  • MATLAB Define the following computer programming terms and give an example of each. MATLAB example Sequence...

    MATLAB Define the following computer programming terms and give an example of each. MATLAB example Sequence Selection structure- Repetition structure - Relational operators (True = 1, False = 0) Logical operators (True = 1, False =0) And Or Less than Less than or equal to Greater than Greater than or equal to Equal to Not equal to Not ans ans Type the following relational operator commands into MATLAB in the command window one at a time. Write the results to...

  • a bottle cap manufacturer with four machines and six operators wants to see if variation in...

    a bottle cap manufacturer with four machines and six operators wants to see if variation in production is due to the machines and/or the operators. each operator is assigned to each machine with the following analysis of variance table. ll Source sum of squares ll df ll mean square Machines 114 Operators 215 Error 54 Total 383 1. What are the degrees of freedom for the machines? 2. What are the degrees of freedom for the operators? 3. What are...

  • 7- (50 points) Write a simple calculator in Python which supports four basic mathematical operators (1.e....

    7- (50 points) Write a simple calculator in Python which supports four basic mathematical operators (1.e. + - / *). You need to define a module which supports addition, deletion, multiplication and subtraction. Then import your module to your calculator file and use it in your code. The following example shows how your basic calculator needs to work. Select operation: 1.Add 2.Subtract 3.Multiply 4.Divide Enter your choice(1/2/3/4): 3 Enter first number: 12 Enter second number: 14 12 * 14 =...

  • C++ prefix 3. Add four basic mathematical operators +, -, *, and 7, the six comparison...

    C++ prefix 3. Add four basic mathematical operators +, -, *, and 7, the six comparison operators < <= > >= ==, and !=, and the input and output operators to the Rational class. Write the mathematical and comparison operators as methods. Store the numerator and denominator in reduced form. 1) Programming Exercise: p. 352 / 3 Use this code to test your program: Rational_testing.cpp entre include <iostres include "Rational3. using namespace std; int main() 5 - Rational (7.2). -...

  • Can you please explain what does each sentence mean and give an example if it’s possible?....

    Can you please explain what does each sentence mean and give an example if it’s possible?. I need to have answers for all of them please Assignment Statements- Input- cin >> Output--cout << endl<"n" Output formatting Arithmetic operators +-'* / % Relational Operators-=-= ++- Logical Operators ! && II Evaluating Expressions of mixed type Evaluating Boolean Expressions Type Conversion, Implicit Coersion Explicit-Type Casting Control Structure: Sequence, decision (branching), looping (repetition) if, if-else, if/else-if/else, nested ifs switch statement conditional statement while...

  • (a) Give an unambiguous CFG for arithmetic expression consisting of the four operations +,-,*,/ and a...

    (a) Give an unambiguous CFG for arithmetic expression consisting of the four operations +,-,*,/ and a start symbol S and terminal symbols 0,1,2,...9. Assume that *,/ havbe higher precedence than +,-. (b) Show the leftmost derivation tree of the expression 2 + 3 ∗ 5/6 − 1 using your grammar.

  • 1.What is the difference between prefix and postfix mode for the increment and decrement operators? Give...

    1.What is the difference between prefix and postfix mode for the increment and decrement operators? Give examples of each. 2.How would you prevent infinite loops in a “while” loop statement? Give an example of an infinite while loop. 3.Give an example of a simple “for” loop. 4.What is a “sentinel” used for? 5.Give an example of the “open” member function to open a file.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT