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
ohaa [14]
3 years ago
8

Write a recursive method, numToString, that takes two arguments: num, the number to convert, and base, the base to represent the

number in. For instance, calling numToString(10, 2) returns the decimal number 10 as the base-two (binary) string "1010". Your method should work with any base 2 <= base <= 36. g
Computers and Technology
1 answer:
AnnyKZ [126]3 years ago
6 0

Answer:

This is the required code:

Explanation:

public class NumberToString {

   public static String numToString(int num, int base) {

       final String digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

       if (num < base) {

           return "" + digits.charAt(num);

       } else {

           return numToString(num / base, base) + digits.charAt(num % base);

       }

   }

}

You might be interested in
Select the layer of the OSI model that is responsible for reformatting, compressing, and/or encrypting data in a way that the ap
Nutka1998 [239]

Answer:Presentation layer

Explanation: Presentation layer is the sixth layer belonging to the OSI model . It has the functionality of presenting the data or information in a standard and formatted way.The syntax is usually error free , well defined and adequate and thus also called as syntax layer. Presentation layer works between the application layer and the network layer.

It also performs the services of compression, encryption, decryption etc.

4 0
3 years ago
From which country samsung is​
Natasha2012 [34]

Answer: Samsung is from South Korea.

5 0
3 years ago
Read 2 more answers
Having data in a column formatted differently based on value is known as
ziro4ka [17]
I believe it’s called Excel Formula
5 0
3 years ago
1. Why do you need to take care of your computer? (Remember: Answer must include 3-5 sentences.)
elixir [45]

Answer:

prevention against malware and virus

prevent data lose

Early detection of issues

8 0
3 years ago
The _____ helps the project team to identify the main functions or features of the system and the different users or external sy
mamaluj [8]
<h2>Answer:</h2>

Use case diagram

<h2>Explanation:</h2>

A use case diagram is one of the dynamic diagrams used in Unified Modelling  Language (UML). It is used to illustrate the set of actions, services, tasks and functions that a system needs to perform and those to be performed on the system.  Use case diagrams help team members of a project to identify the main functions or features of the system as well as users and external systems that will interact with the system.

Use case diagrams have the following features;

(i) System: to depict the application itself. It is represented using a rectangular box.

(ii) Use case: to represent the system's functionalities. It is represented using an oval shape.

(iii) Actors: to represent the users of the system.

(iv) Relationships: to illustrate the relations between the actors and the use case of the system.

5 0
3 years ago
Other questions:
  • Which of the following matching is true concerning the Protocol Data Unit (PDU) and its corresponding OSI layer location?
    15·1 answer
  • In the year of our Lord 66, the Emperor Nero, being at that time in the twenty-ninth year of his life and the thirteenth of his
    10·1 answer
  • Describe how computer is in the last 35 years
    6·1 answer
  • Enter the number 2568 into the box below
    14·1 answer
  • In which phase of the software development process would probing questions be used to verify the problem definition?
    12·1 answer
  • PLEASE HELP!!!!! WILL MARK BEST ANSWER BRAINLIEST!!!~~~
    11·2 answers
  • Describe two types of storage devices?​
    15·1 answer
  • Describe the main roles of the communication layer, the network-wide state-management layer, and the network-control application
    15·1 answer
  • Guidewords for the word “serpent” may be
    8·2 answers
  • Public class Billing {
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!