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
AnnZ [28]
4 years ago
13

How can you actually divide numbers without subtraction?

Mathematics
1 answer:
Tamiku [17]4 years ago
7 0

#include <stdio.h> #include <stdlib.h>

// Function to perform division (x / y) of two numbers x and y. // without using division operator in the code. int divide(int x, int y)

{ // handle divisibility by 0. if (y == 0)

{ printf("Error!! Divisible by 0"); exit(1);

} // store sign of the result.

int sign = 1; if (x * y < 0)

You might be interested in
What is the area of trapezoid ABCD ? (Enter your answer as a decimal or whole number)
MrRa [10]
Check the picture below.

bear in mind that, the "bases" are the two parallel sides, and the height is the distance between them.

\bf \textit{area of this trapezoid}\\\\&#10;A=\cfrac{AB(BC+AD)}{2}\\\\&#10;-------------------------------\\\\&#10;\textit{distance between 2 points}\\ \quad \\&#10;\begin{array}{lllll}&#10;&x_1&y_1&x_2&y_2\\&#10;%  (a,b)&#10;A&({{ -1}}\quad ,&{{ 5}})\quad &#10;%  (c,d&#10;B&({{ 3}}\quad ,&{{ 2}})&#10;\end{array}\qquad &#10;%  distance value&#10;d = \sqrt{({{ x_2}}-{{ x_1}})^2 + ({{ y_2}}-{{ y_1}})^2}&#10;\\\\\\&#10;AB=\sqrt{[3-(-1)]^2+[2-5]^2}\implies AB=\sqrt{(3+1)^2+(2-5)^2}&#10;\\\\\\&#10;AB=\sqrt{16+9}\implies AB=\sqrt{25}\implies \boxed{AB=5}

\bf -------------------------------\\\\&#10;\textit{distance between 2 points}\\ \quad \\&#10;\begin{array}{lllll}&#10;&x_1&y_1&x_2&y_2\\&#10;%  (a,b)&#10;B&({{ 3}}\quad ,&{{ 2}})\quad &#10;%  (c,d&#10;C&({{ 0}}\quad ,&{{ -2}})&#10;\end{array}&#10;\\\\\\&#10;BC=\sqrt{(0-3)^2+(-2-2)^2}\implies BC=\sqrt{9+16}&#10;\\\\\\&#10;BC=\sqrt{25}\implies \boxed{BC=5}

\bf -------------------------------\\\\&#10;\textit{distance between 2 points}\\ \quad \\&#10;\begin{array}{lllll}&#10;&x_1&y_1&x_2&y_2\\&#10;%  (a,b)&#10;A&({{ -1}}\quad ,&{{ 5}})\quad &#10;%  (c,d&#10;D&({{ -13}}\quad ,&{{ -11}})&#10;\end{array}&#10;\\\\\\&#10;AD=\sqrt{[-13-(-1)]^2+[-11-5]^2}&#10;\\\\\\&#10;AD=\sqrt{(-13+1)^2+(-16)^2}\implies AD=\sqrt{144+256}&#10;\\\\\\&#10;AD=\sqrt{400}\implies \boxed{AD=\sqrt{20}}

so, the area for this trapezoid is then

\bf A=\cfrac{5(5+20)}{2}\implies A=\cfrac{125}{2}\implies A=62\frac{1}{2}

8 0
4 years ago
If the principle is $12,000 and the rate of interest is 6% (simple interest), what
Elza [17]

9514 1404 393

Answer:

  $12,720

Step-by-step explanation:

The amount is given by the formula ...

  A = P(1 +rt)

where P is the principal, invested at rate r for t years.

  A = $12,000(1 +0.06·1) = $12,720

The total amount after 1 year is $12,720.

7 0
3 years ago
Find the final cost to the employer.
Lena [83]
The correct answer is A) $75.85.

A discount of 20% means that the cost is 80% of the original.  80%=80/100=0.8

0.8(129) = 103.20

A discount of 30% means that the cost is 70% of the amount before discount.  70%=70/100=0.7
0.7(103.20) = 72.24

A sales tax of 5% means that it is 105% of the amount pre-tax.  105%=105/100=1.05
1.05(72.24) ≈ 75.85
8 0
3 years ago
Consider strings of four decimal digits. Which rule must be used to find the number of strings of four decimal digits that have
jeyben [28]

Answer:

36 possible ways

Step-by-step explanation:

Range of digit : 0 up to 9

To obtain the number of strings of 4 decimal digits that have exactly 3 digits that are 9s ; we use the multiplication rule :

In other to have exactly 3 digits from 4 that are 9s :

Say:

We have 3 9s and the last number could be any of the 10 possible digits except 9

First 9 = 1 possible way (since we have only one 9 between (0 to 9)

Second 9 = 1 possible way

Third 9 = 1 possible way

4th digit = 9 ways (could be any digit between 0 and 9, except 9)

Also, we consider the 4th digit's position ; as it could take up any of different positions in between the 9s = 4 ways

Using the product rule :

1 * 1 * 1 * 9 * 4 = 36 possible ways

5 0
3 years ago
What is log6^e f rewritten using the power property?
marishachu [46]

Given expression : log_6e^f ..

We need to apply power property of logs to rewrite it.

According to log rule of exponents:

log_b a^n = n log_b(a)

If we compare given expression with the rule the exponent part is f, base is 6.

Therefore, we need to bring exponent f in front of log.

Therefore, log_6e^f  = flog_6 e.

<h3>And correct option is second option flog_6 e.</h3>
4 0
3 years ago
Read 2 more answers
Other questions:
  • The population of greenville is currently 50,000 and declines at a rate of 1.2% every year. This models:
    10·2 answers
  • When solving a real word problem to find a person's age, would a negative solution make sense ?
    11·1 answer
  • What is the gcf of 28,56, and 84
    10·1 answer
  • 3/4x + 1/2 = 2/3x + 2
    10·1 answer
  • What is the probability of selecting a cherry piece? Write answer as a reduced fraction.
    14·1 answer
  • Ingram called Verizon to argue about his bill. He was paying $95.26 monthly but he argued the new bill down to $78.17. What was
    15·2 answers
  • The volume of the cone is 83.7 cubic meters. Find the diameter. Round your answer to the nearest whole number.
    6·1 answer
  • The width of two similar rectangles are 16 cm and 14 cm. What is the ratio of the perimeter?
    11·2 answers
  • Can someone pls solve this for me
    15·1 answer
  • The minimum/maximum value of the function y = a(x − 2)(x − 1) occurs at x = d, what is the value of d?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!