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
Vsevolod [243]
3 years ago
6

Name the error that has happened in the binary addition 0¹01+111=1000​

Computers and Technology
2 answers:
Bumek [7]3 years ago
8 0

Answer:

overflow error

Explanation:

Sometimes, when adding two binary numbers we can end up with an extra digit that doesn't fit.

notsponge [240]3 years ago
4 0
That would be the overflow error
You might be interested in
A​ _______ variable is a variable that has a single numerical​ value, determined by​ chance, for each outcome of a procedure.
7nadin3 [17]
Single variable is the answer
5 0
3 years ago
Write a program that uses a two dimensional array to store the highest and lowest temperatures for each month of the calendar ye
abruzzese [7]

Answer:

Java program is explained below with appropriate comments

Explanation:

Temperature.java

import java.util.Scanner;

public class Temperatures {

public static Scanner keyboard = new Scanner(System.in);

private static int highTemperature, lowTemperature,averageHigh, averageLow;

private static int index;//keeps track of months

private static int indexOfHighestTemp=0, indexOfLowestTemp=0;

private static int[][] highAndLowTemps = new int [12][2];//array for highs and lows

private static String[] months = new String[12];//array of monthss

public static void main(String[] args) {

inputTempForYear();

calculateAverageHigh(highAndLowTemps);

calculateAverageLow(highAndLowTemps);

findHighestTemp(highAndLowTemps);

findLowestTemp(highAndLowTemps);

//outputs results

System.out.println("Average High: "+averageHigh);

System.out.println("Average Low: "+averageLow);

System.out.println("Highest Temp and Month: "+highAndLowTemps[indexOfHighestTemp][0]+" "+months[indexOfHighestTemp]);

System.out.println("Lowest Temp and Month: "+highAndLowTemps[indexOfLowestTemp][1]+" "+months[indexOfLowestTemp]);

}

private static void inputTempForMonth(int[][] highAndLowTemps)

{

System.out.println("Input the high temperature for "+months[index]+":");

highTemperature = keyboard.nextInt();//inputs months high temp

highAndLowTemps[index][0]=highTemperature;

System.out.println("Input the low temperature for "+months[index]+":");

lowTemperature = keyboard.nextInt();//inputs months low temp

highAndLowTemps[index][1]=lowTemperature;

}

private static int[][] inputTempForYear()

{

months[0]="January";

months[1]="Febuary";

months[2]="March";

months[3]="April";

months[4]="May";

months[5]="June";

months[6]="July";

months[7]="August";

months[8]="September";

months[9]="October";

months[10]="November";

months[11]="December";//fills month array

for (index=0;index<=11;index++)//fills array with highs and lows

{

inputTempForMonth(highAndLowTemps);

}

return highAndLowTemps;

}

private static int calculateAverageHigh(int[][] highAndLowTemps)

{

for(int i=0;i<=11;i++)//finds sum of high temps

{

averageHigh=averageHigh+highAndLowTemps[i][0];

}

averageHigh/=12;//calculates average

return averageHigh;

}

private static int calculateAverageLow(int[][] highAndLowTemps)

{

for(int i=0;i<=11;i++)//finds sum of low temps

{

averageLow=averageLow+highAndLowTemps[i][1];

}

averageLow/=12;//calculates average

return averageLow;

}

private static int findHighestTemp(int[][] highAndLowTemps)

{

double max=highAndLowTemps[0][0];

int indexHigh;//index for highest

for(indexHigh=0;indexHigh<11;indexHigh++)//find highest high temp

{

if(highAndLowTemps[indexHigh][0]>max)

{

max=highAndLowTemps[indexHigh][0];

indexOfHighestTemp=indexHigh;

}

}

return indexOfHighestTemp;

}

private static int findLowestTemp(int[][] highAndLowTemps)

{

double min=highAndLowTemps[0][1];

int indexLow;//index for lowest

for(indexLow=0;indexLow<11;indexLow++)//finds lowest low temp

{

if(highAndLowTemps[indexLow][1]<min)

{

min=highAndLowTemps[indexLow][1];

indexOfLowestTemp=indexLow;

}

}

return indexOfLowestTemp;

}

}

7 0
3 years ago
Why is it important to try to make financial decisions without emotions.
Anestetic [448]

Answer:

You can really regret it right after the emotion is over

5 0
3 years ago
Read 2 more answers
Qué es un bloque de programación?
Arte-miy333 [17]

Answer:

Explanation:

El bloqueo del programa es cuando se detiene un programa. Que puede estar en un sitio web o simplemente un juego.

6 0
3 years ago
What does phishing mean?
Ilya [14]
<span>the activity of defrauding an online account holder of financial information by posing as a legitimate company

</span>
8 0
3 years ago
Read 2 more answers
Other questions:
  • Which structure is sometimes called the "gateway to memory"?
    14·1 answer
  • A spreadsheet has some values entered: Cell A1 contains 10, cell A2 contains 14, cell A3 contains 7. You enter in cell A4 the fo
    15·2 answers
  • Which of the following is an object-oriented prototype-based language? Java Pike REBOL MATLAB
    9·1 answer
  • What is cutting-edge technology
    6·1 answer
  • Some loops are controlled by ____ (or reducing) a variable and testing whether the value remains greater than some benchmark val
    15·1 answer
  • Write a program that prompts the user to enter a password and displays "valid password"
    11·1 answer
  • In a multiple-column record of a data file, ______ represent different variables and _______ represent different cases
    15·1 answer
  • Select three functions of the cell membrane.
    15·2 answers
  • Question #2
    11·1 answer
  • With software prefetching, it is important to be careful to have the prefetches occur in time for use but also to minimize the n
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!