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
azamat
3 years ago
10

Define the function add_mn that takes two integers m, n as arguments and returns m + 10 * n. For instance, add_mn 3 5 = 3 + 10*5

= 53. You are, however, not allowed to use addition and multiplication directly: instead, you must write a recursive solution that calls add10!
Mathematics
1 answer:
jok3333 [9.3K]3 years ago
8 0

Answer:

// C++ Program to arithmetic operationf on 2 Numbers using Recursion

// Comments are used for explanatory purpose

#include <bits/stdc++.h>

using namespace std;

// add10 recursive function to perform arithmetic operations

int add10(int m, int n)

{

return (m + product(n, 10)); //Result of m + n * 10

return 0;

}

// Main Methods Starts here

int main()

{

int m, n; // 2 Variables m and n declared as integer

cin>>m; // accept input for m

cin>>n; // accept input for n

cout << "Result : "<<add10(m,n); // Print results which is calculated by m + 10 * n

return 0;

}

You might be interested in
I WILL MARK THE BRAINIEST!!!!!!! WRONG ANSWER'S WILL BE REPORTED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
trasher [3.6K]
The correct answer should be choice A
5 0
3 years ago
-4x+4=6 <br> x=?<br> 2x+10=50<br> x=?<br> -3x-14=-5<br> x=?<br> 2/3x+2=5<br> x=?
Nadya [2.5K]
-4x + 4 = 6
x = -.5

2x + 10 = 50
x = 20

-3x - 14 = -5
x = -3

2/3x + 2 = 5
x = 4.5
5 0
3 years ago
Find the missing coefficient in the equation of the line that passes through the given point. Then write the equation in standar
e-lub [12.9K]

Answer:

1)B= 3 ; standard form y = 4x/3 + 7/3  2)A= -7 ; standard form y = 7x -3

Step-by-step explanation:

1.) <em>We can substitute the coordinates of the known point of the line: </em>

-4x + By = 7 ; (-1,1)

-4(-1) + B(1) = 7

4 + B = 7

B = 7- 4 = 3

-4x + 3y = 7

y = (4x + 7)/3

Equation 1 in standard form:  

1.) y = 4x/3 + 7/3

2.) <em>We can substitute the coordinates of the known point of the line: </em>

Ax + y = -3 ; (2,11)

A(2) + (11) = -3

2A + 11 = -3

2A = -3 -11 = -14

A = -14/2 = -7  coefficient A

-7x + y = -3

Equation 2 in standard form:

2.) y = 7x -3

Answers:

1) B= 3 ; standard form y = 4x/3 + 7/3  2) A= -7 ; standard form y = 7x -3

<h2><em>Spymore</em></h2>
4 0
3 years ago
The diagram above shows
Studentka2010 [4]

Answer:

  • m = 60°
  • n = 30°

Step-by-step explanation:

Opposite angles D and E in the rhombus are congruent. The measure of arc ADC is the same as the measure of central angle AEC. The measure of arc ABC is twice the measure of angle AEC, so the measure of arc ABC is twice the measure of arc ADC.

This means that short arcs AB, BC and CA are all 120°. Inscribed angle ABC (angle m) is half that value, or 60°.

Likewise, the angle BAC is 60°. We know that angle EAD is supplementary to angle AEC, so is 180° -120° = 60°. Segment AC bisects this angle, so angle n is 60°/2 = 30° less than angle BAC.

  angle m is 60°, angle n is 30°

7 0
3 years ago
Ven the diagram below, find the value of x:
Gennadij [26K]

Answer:

D) 31

Step-by-step explanation:

2x-7+2x+63=180

4x+56=180

4x=180-56

4x=124

x=124/4

x=31

5 0
3 years ago
Read 2 more answers
Other questions:
  • Angles 1 and 2 are complementary, and angle 1=3x+3 and angle 2=10x-4, find the degree measure of each angle
    15·1 answer
  • Questions:
    15·1 answer
  • Tags in Delaware consist of two letters followed by three numbers. If the letters can be repeated but the numbers cannot be repe
    6·1 answer
  • (3,7) 4/7 in standard form show work
    8·1 answer
  • A colleague has been tutoring six students in 11th grade to prepare for the ACT. This colleague has asked you to evaluate the pe
    13·1 answer
  • Nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<br>n
    10·1 answer
  • If guy walks from his house to school and back, how far dose he walk
    13·2 answers
  • Question is in the picture
    13·2 answers
  • The radius of a cylindrical water tank is 5.5 ft, and its height is 8 ft. What is the volume of the tank?
    11·1 answer
  • A combinatio of a translations and a reflection can always be replaced with one transformation
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!