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
Nookie1986 [14]
4 years ago
14

Translate the following C program to Pep/9 assembly language. It multiplies two integers using a recursive shift-and-add algorit

hm. mpr stands for multiplier and mcand stands for multiplicand.A recursive integer multiplication algorithm#include int times(int mpr, int mcand) { if (mpr == 0) { return 0; } else if (mpr % 2 == 1) { return times(mpr / 2, mcand * 2) + mcand; } else { return times(mpr / 2, mcand * 2); }}int main() { int n, m; scanf("%d %d", &n, &m); printf("Product: %d\n", times(n, m)); return 0;}
Computers and Technology
1 answer:
Artemon [7]4 years ago
3 0

Answer:

Explanation:

Data BP

You might be interested in
A computer ____ is the amount of data (measured in bits or bytes) that a cpu can manipulate at one time
garik1379 [7]

A computer BIT is the amount of data that a CPU can manipulate at one time.

8 0
3 years ago
An impeller pump in an outboard motor uses an impeller made of
Lapatulllka [165]
The answer is (c.) synthetic rubber

The impeller pump in some outboard motor is made of synthetic rubber. The purpose of the impeller in the motor is for the cooling. It is used to pump the water to the engine from below. It has a standard design and it only uses rubber as the material.
4 0
3 years ago
How many base cases are in the functionabove?
baherus [9]

Answer:

The answer is (b). 1.

Explanation:

In the code there is only 1 base case .

the base case is as following:-

if(n==0)

return 0;

this is the base case.

Base case is the most important statement in the function that uses recursion because without base case the recursion calls will keep on going and we will get a run time error.

5 0
3 years ago
What is your definition of Green/Eco Driving?
Masja [62]
Using/driving with an electric car or using car that is ecologically friendly (less pollution) Ex.Bio Fuel
8 0
3 years ago
a __________ uses software and/or hardware to prevent unwanted access to a computer or computer system.
Crank
Anti virus software
6 0
3 years ago
Other questions:
  • To maintain audience interest in a multimedia presentation, use animations or transition features to control when objects or tex
    13·1 answer
  • What component of a computer system holds the operating system when the computer is not running
    6·2 answers
  • Consider two sets S1 and S2 of size 3 and 2 each.
    13·1 answer
  • A properYour customer has connected a 1000-watt microwave oven and a 600-watt mixer to a 15-amp branch service line for the kitc
    11·2 answers
  • Write code that inserts userItem into the output string stream itemsOSS until the user enters "Exit". Each item should be follow
    5·1 answer
  • # q7 - create function readFileFirstLast() to meet the conditions below
    10·1 answer
  • What is one step taken when solving a computer software problem?
    6·2 answers
  • Bradley is working on a program that uses different classes in specific relationships. Help him remember what these relationship
    14·1 answer
  • Which of the following statements is true of licensing procedures for IT professionals?
    6·2 answers
  • Select the correct answer.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!