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
ehidna [41]
3 years ago
9

Working with do-while loop

Computers and Technology
1 answer:
bazaltina [42]3 years ago
7 0

Answer:

it throws an error with the includes.

and some undeclared variables.

Explanation:

please fix that.

You might be interested in
Jose is upgrading the memory on his laptop. The laptop has two slots for RAM, but one of them is currently being occupied. He ha
inn [45]

Answer:

Reseat the new stick of RAM

Explanation:

Joe needs to reseat the new stick of the RAM. For that, he should gently release the clips which hold RAM in the correct posture, and one on each side. Joe is required to do this for each of the available memory modules. And then he will have the cautiously replace all the memory modules( 2 in number) through to DIMM slots which are on the motherboard. Make sure that you have noted down the locations of each notches on the RAM as well as the DIMM slots.

3 0
3 years ago
Write an application that inputs a five digit integer (The number must be entered only as ONE input) and separates the number in
netineya [11]

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 int n, num;

 Scanner input = new Scanner(System.in);

 System.out.print("Number of inputs: ");

 n = input.nextInt();

 LinkedList<Integer> myList = new LinkedList<Integer>();

 for(int i = 0; i<n;i++){

     System.out.print("Input Integer: ");

     num = input.nextInt();

     while (num > 0) {

     myList.push( num % 10 );

     num/=10;

     }

     while (!myList.isEmpty()) {

         System.out.print(myList.pop()+" ");

     }

     System.out.println();

     myList.clear();

 }

}

}

Explanation:

This declares the number of inputs (n) and each input (num) as integer

 int n, num;

 Scanner input = new Scanner(System.in);

Prompt for number of inputs

 System.out.print("Number of inputs: ");   n = input.nextInt();

The program uses linkedlist to store individual digits. This declares the linkedlist

 LinkedList<Integer> myList = new LinkedList<Integer>();

This iterates through n

 for(int i = 0; i<n;i++){

Prompt for input

     System.out.print("Input Integer: ");

This gets input for each iteration

     num = input.nextInt();

This while loop is repeated until the digits are completely split

     while (num > 0) {

This adds each digit to the linked list

     myList.push( num % 10 );

This gets the other digits

     num/=10;

     }

The inner while loop ends here

This iterates through the linked list

     while (!myList.isEmpty()) {

This pops out every element of thelist

         System.out.print(myList.pop()+" ");

     }

Print a new line

     System.out.println();

This clears the stack

     myList.clear();

 }

8 0
3 years ago
Memory: 5 bit addresses Cache: 8 blocks All memory locations contain valid data If the memory location is 15. What is the Binary
VMariaS [17]

Answer:

see explaination

Explanation:

If the cache contains 2k blocks, then the data at memory address i would go to cache block index ( i mod 2k )

Memory address = 5 bit

Cache block = 23

So, if the memory location is 9, then binary address = 01001 and cache block = 9 % 8 = 1 = 001

if the memory location is 12, then binary address = 01100 and cache block = 12 % 8 = 4 = 100

if the memory location is 15, then binary address = 01111 and cache block = 15 % 8 = 7 = 111

6 0
3 years ago
Is it just me or is brainly not working right now? I am trying to add friends and it won't let me!
frutty [35]

Answer:

Yes

Explanation:

You are right well I think because same thing happened to me

6 0
4 years ago
Read 2 more answers
What are some of the challenges that could arise from setting up a file management system on a computer?
Arisa [49]
It could fail, it would take a long time setting it up and aslo it could be easily hacked.
3 0
3 years ago
Other questions:
  • Can someone please help me with this
    9·1 answer
  • Why was the internet originally constructed
    5·1 answer
  • Hailey is preparing a questionnaire on the different number systems. He asks the students to write down the correct decimal and
    7·2 answers
  • * Declare a variable called "race" of type "Race", andinitialise its value to a new instance of the "Race" class. The"Race" cons
    10·1 answer
  • जिल्ला । स्तरीय = 'जिल्ला स्तरीय' भए जस्तै तलका शब्दमा स्तरीय जोडेर
    12·1 answer
  • How does color affect your mood?
    11·2 answers
  • Write a program named ArrayDemo that stores an array of 10 integers. (Note that the array is created for you and does not need t
    14·1 answer
  • 1. Write the syntax of the following HTML commands by using any one attribute
    6·2 answers
  • What are some limitations when it comes to testing and ensuring program quality? List at
    15·1 answer
  • You need a(n) _____ to play an mp3 audio file on a desktop or laptop computer
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!