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
Dmitry_Shevchenko [17]
3 years ago
13

Write a python program to convert a number entered by the user

Computers and Technology
1 answer:
Mashutka [201]3 years ago
7 0

Answer:

# Function to convert decimal number

# to binary using recursion

def DecimalToBinary(num):

if num >= 1:

DecimalToBinary(num // 2)

print(num % 2, end = '')

# Driver Code

if __name__ == '__main__':

# decimal value

dec_val = 24

# Calling function

DecimalToBinary(dec_val)

Explanation:

You might be interested in
Peter is explaining the steps to create a fire effect in an image to his class. Help Peter pick the correct word to complete the
Pavel [41]

Answer:

The answer would be "Blending"

Explanation:

I took the test and checked over my answers

4 0
3 years ago
What is a collision in a hash table?
Maru [420]

Answer: Collision is defined as the event that takes place when the clash appear due to the information persisting the same hash value get in contact. This mechanism occurring in the hash table is called collision and is dependent on the type of application.

Collision becomes difficult to be avoided in a large set of the hash table as the data set is difficult to be found while in small hash table it is still detectable but cannot be avoided completely.

7 0
3 years ago
Given the following header: vector split(string target, string delimiter); implement the function split so that it returns a vec
suter [353]

Answer:

see explaination

Explanation:

#include <iostream>

#include <string>

#include <vector>

using namespace std;

vector<string> split(string, string);

int main()

{

vector<string> splitedStr;

string data;

string delimiter;

cout << "Enter string to split:" << endl;

getline(cin,data);

cout << "Enter delimiter string:" << endl;

getline(cin,delimiter);

splitedStr = split(data,delimiter);

cout << "\n";

cout << "The substrings are: ";

for(int i = 0; i < splitedStr.size(); i++)

cout << "\"" << splitedStr[i] << "\"" << ",";

cout << endl << endl;

cin >> data;

return 0;

}

vector<string> split(string target, string delimiter)

{

unsigned first = 0;

unsigned last;

vector<string> subStr;

while((last = target.find(delimiter, first)) != string::npos)

{

subStr.push_back(target.substr(first, last-first));

first = last + delimiter.length();

}

subStr.push_back(target.substr(first));

return subStr;

}

4 0
3 years ago
One of the following is NOT a basic linked list operation:_________.
Llana [10]

Answer:

One of the following is NOT a basic linked list operation:_________.

g) build list from file

Explanation:

Linked list operation is the creation of trees and graphs or a chain of data elements, which are called nodes.  Each note points to the next using a pointer.  In linked lists, each node consists of its own data and the address of the next node.  A linked list, which may be single, double, or circular, forms a chain-like structure that builds from one node to the other.

4 0
3 years ago
Help me please!! Brainliest for answering this question.
cluponka [151]

That sounds like a reader's activity level

8 0
3 years ago
Other questions:
  • If it malfunctions and I can throw it, then it's a hardware problem; if I have to yell at it because there is nothing to pick up
    14·2 answers
  • ∀פפIN∀W∀ qwda dawdawdawdawd<br> BAN ME NOW
    11·1 answer
  • Below is the prototype for a function that takes two pointers to integer variables as its parameters. The purpose of the functio
    14·1 answer
  • Any one have a snnaap chhhaatt if so i need help with something n there
    15·2 answers
  • A personal business letter may be written by ?
    8·1 answer
  • Write two example use of relationships ICT
    11·1 answer
  • If you created a variable called name, what data type would that value be?
    15·2 answers
  • Relatively simple CRUD (create, read, update, delete) web applications development can be facilitated with: _________.
    9·1 answer
  • Which of these is an example of output?
    13·2 answers
  • Hurry please I’ll give Brainliest if you are right
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!