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
aleksandr82 [10.1K]
1 year ago
13

write a command-line program which prompts the user for a series of decimal integer values separated by spaces. display each dec

imal integer along with its equivalent binary value.
Computers and Technology
1 answer:
zepelin [54]1 year ago
5 0

A number expressed by 0s and 1s is referred to as a binary literal (binary digits). Integral types (byte, short, int, and long) can be expressed in Java using a binary number system.

The integral value might be prefixed with 0b or 0B to specify a binary literal. By constantly dividing the supplied number by 2 until we receive 0 as the quotient, we can convert a decimal number to a binary number in the simplest way possible. The binary value of the specified decimal number is then obtained by writing the remainders in reverse order. Any of the digits 0 through 9 can be found in a decimal integer literal. The octal integer literal, as opposed to the decimal integer literal, is used to interpret integer literals that start with the number 0.

Learn more about binary here-

brainly.com/question/19802955

#SPJ4

You might be interested in
The Color Picker tool enables you to work with color selections. Which of the following color models are used by the Color Picke
zhannawk [14.2K]

Answer:

RGB-Red, green, blue

Explanation:

4 0
4 years ago
A class researching the world’s population would like to include a graph that shows historical changes. They have information fr
Elanso [62]

A professor who publishes world population research in a journal

3 0
3 years ago
List two advantages and two disadvantages of Satellite Based<br> Augmentation Systems
Lelechka [254]

Answer:

Following are the advantages and disadvantages of Satellite Based

Augmentation Systems is given below .

Explanation:

Advantages

  • The previous ground mission segment to Space Segment system monitoring, satellite tracking, and regulate surface facility of the geocentric structure.
  • The satellite based  augmentation Systems is more accurate also this system is reliable and enhanced  then the previous satellite system.

DisAdvantages

  • In satellite based  augmentation systems some circumstances are occur  where people's life is at risk or when a type of legal or economic assurance is needed then Satellite Based  Augmentation Systems is invaluable.
  • The cost of making satellite based  augmentation systems is expensive as compare to other system .
7 0
3 years ago
Write a Python program that will take as input 5 integer values and will output the average of the odd values and the average of
8_murik_8 [283]

Code:

Here is the code. Also screenshot of the code and text file containing the code have been attached here.

This code has been written in Python 3.0

# getting input

lst = [ ]  

n = 5  

for i in range(0, n):  

   ele = int(input())  

   lst.append(ele)

print(lst)

# getting odd numbers and even numbers from list and compute average

odd_sum = 0

even_sum = 0

odd = 0

even = 0

for i in range(0, n):  

   if lst[i] % 2 == 0:

       even_sum = even_sum + lst[i]

       even = even + 1

   elif lst[i] % 2 > 0:

       odd_sum = odd_sum + lst[i]

       odd = odd + 1

       

odd_avg = odd_sum/odd

even_avg = even_sum/even

print("there were",odd,"odd numbers in input")

print("there were",even,"odd numbers in input")

print("average of odd numbers in the list",odd_avg)

print("average of even numbers in the list",even_avg)

6 0
3 years ago
____ was the first-generation cellular telephone system.​ a. ​Advanced Mobile Phone Service (AMPS) b. ​Global System for Mobile
Over [174]

Answer:

Global system for mobile

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Let K(x, y) denote the statement "x knows y" and D denote the domain of all people. Express the following English sentences as a
    9·1 answer
  • The time between requests to a web server is exponentially distributed with mean 0.5 seconds. NOTE: This is a multi-part questio
    8·2 answers
  • What is the most efficient way to include a space after each paragraph?
    13·2 answers
  • Which best describes a VPN?
    14·2 answers
  • Please help me out with my essay
    15·1 answer
  • A technician selected the GUI interface on a wireless router and added a DNS address of 208.67.220.220. The technician then imme
    6·1 answer
  • How long would it take a 8 bit computer to calculate π to the thousandth place?
    8·1 answer
  • What was the first e-commerce service?
    10·1 answer
  • Who wants brainliest? First to answer gets it....
    12·2 answers
  • Iam trying to find a way to code in Scratch that will let me take away the first two and last two letters of a word. For example
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!