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
lozanna [386]
3 years ago
10

Consider the problem where you are given an array of n digits [d and a positive integer b, and you need to compute the value of

the number in that base In general, you need to compute For example: (1011 )2 = 1(11+ 1(21+0(4) + 1(8) (1021 )3 =-1(1) + 2(3) 0(9) + 1 (27) (1023)4 3(1) +2(4) 0(16)1(64) 34, and In these examples, I give the digits in the order dad2dido, which corresponds to how we would normally write these numbers, though you can assume that d, is in indexi of the array for the questions below. (Yes, the indices will be numbered 0 to n - , n1 to n.) 1. Give pseudocode for a divide-and-conquer algorithm that solves this prob- lem by dividing the digit array into two subarrays of (roughly) the same size. For example, dsd4d3d2dido would be split into dsd4ds and d2dido 2. Give pseudocode for a divide-and-conquer algorithm that solves this prob- lem by dividing the digit array into two interleaved arrays of (roughly) the same size For example, dsdjd3d2dido would be split into d,dadi and dd2do

Computers and Technology
1 answer:
Fofino [41]3 years ago
3 0

Answer:

The question is completely described and solved below:

You might be interested in
236. A system such as a printer, smart TV, or HVAC controller, typically uses an operating system on what is called a:
irakobra [83]

Answer:

Embedded System

5 0
2 years ago
Read 2 more answers
Martin wants to calculate integer multiples up to 10 for a list of numbers. For example, he needs to multiply the first number i
kifflom [539]
A for loop.






----------------------------
5 0
3 years ago
What technology was implemented on apple computer printer ports to facilitate file and printer sharing?
Shtirlitz [24]

A technology which was implemented on Apple computer printer ports to facilitate file and printer sharing is LocalTalk.

<h3>What is a printer?</h3>

A printer can be defined as an electronic output (peripheral) device that is designed and developed for printing paper documents containing texts or images on a computer system.

On Apple computer printer ports, a technology which was implemented to facilitate file and printer sharing is LocalTalk, which is typically implemented based on the physical layer of the AppleTalk networking system.

In this context, we can infer and logically deduce that a technology which was implemented on Apple computer printer ports to facilitate file and printer sharing is LocalTalk.

Read more on printer here: brainly.com/question/17100575

#SPJ1

4 0
1 year ago
Design a class named largeIntegers such that an object of this class can store an integer of any number of digits. Add operation
SpyIntel [72]

Answer:

Here the code is given as follows,

Explanation:

Code:

import java.util.Scanner;

//created class named largeintegers

class largeintegers{

   //class can hold a long number

   long number;

   //constructor to set number

  largeintegers(long number){

      this.number=number;

  }

  //getNumber method to get number

  long getNumber(){

      return number;

  }

  //below are some basic operations

  long addition(long num1,long num2){

       return num1+num2;

   }

   long subtract(long num1,long num2){

       return num1-num2;

   }

   long multiply(long num1,long num2){

       return num1*num2;

   }

   boolean compare(long num1,long num2)

   {

       return num1>num2;

   }

  public static void main(String[] args) {

      //declared to long numbers

      long number1,number2;

      //scanner class to take user input

      Scanner sc= new Scanner(System.in);

      //taking input numbers

      System.out.println("Enter a Number ");

      number1=sc.nextLong();

      System.out.println("Enter 2nd Number :");

      number2=sc.nextLong();

      //created two objects

      largeintegers object=new largeintegers(number1);

      largeintegers object2=new largeintegers(number2);

      //displaying two numbers

      System.out.println("Entered Numbers ");

      System.out.println(object.getNumber());

      System.out.println(object2.getNumber());

      //calling basic methods using created objects

      System.out.println("Some Operations on Given two Numbers ");

      System.out.println("Addition:"+object.addition(object.getNumber(), object2.getNumber()));

      System.out.println("Subtraction:"+object.subtract(object.getNumber(), object2.getNumber()));

      System.out.println("Multiplication:"+object.multiply(object.getNumber(), object2.getNumber()));

      System.out.println("Comparison:");

      if(object.compare(object.getNumber(), object2.getNumber())==true)

      {

          System.out.println("First Number is Greater than Second Number ");

      }

      else

      {

          System.out.println("Second Number is Greater than First Number ");

      }

      sc.close();

  }

}

Output:-

6 0
3 years ago
Fill in the blanks using A to J below.
Gre4nikov [31]

Answer:

A.software written to meet specific needs of company

B.Related specialized programs combined in a unified package

4 0
3 years ago
Other questions:
  • When a chart is selected, numerous customization options can be found on which Chart Tools tabs?
    11·2 answers
  • Give a command that will create a file named listing.dat, in your current (commandsAsst) directory, containing a list of all the
    9·1 answer
  • Assume the following rules of associativity and precedence for expressions:
    7·1 answer
  • B. Find Addition of Binary Numbers: 1100112 + 11012
    11·1 answer
  • What computing platform was designed to help a beginner create interactive objects that receive input from sensors and use that
    11·1 answer
  • Explain 5 service provided by Internet​
    6·1 answer
  • *
    6·2 answers
  • COMO DEFINES LAS PALABRAS COMPUTADOR Y DISPOSITIVO? MENCIONA EJEMPLOS
    13·1 answer
  • Consider legal issues and intellectual property concerns when creating computer programs?
    11·1 answer
  • In cybersecurity, a threat actor is an individual or an entity responsible for cyber incidents against the technical equipment o
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!