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
topjm [15]
3 years ago
12

Python 4.5 code practice

Computers and Technology
1 answer:
Arada [10]3 years ago
3 0

Answer:

add the question

Explanation:

You might be interested in
"Using the printf method, print the values of the integer variables bottles and cans so that the output looks like this: Bottles
Anika [276]

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       

       System.out.println("Enter the number of bottles and cans:");

       int numberOfbottles = in.nextInt();

       int numberOfcans = in.nextInt();

       System.out.printf("Bottles: %8d\n", numberOfbottles);

       System.out.printf("Cans:    %8d\n", numberOfcans);

}

}

Explanation:

Ask user to input the number of bottles and cans using Scanner class

Print the results so that the numbers to the right line up (Since we know that the numbers have at most 8 digits, we can use %8d in printf. Also, be aware that how printf statements are written so that the numbers line up)

6 0
3 years ago
What is the best way to protect against the loss of important files
Lemur [1.5K]
Back them up on a different drive
4 0
3 years ago
What are the advantages of the java.util.Stack implementation of a stack?
klemol [59]

Explanation:

The advantages of java.util.Stack are as following:-

  1. java.util.Stack is an implementation of the vector class hence it can keep track of position of elements in the stack hence it is not required to store an additional pointer for each node.
  2. In the implementation it allocates space only that much is needed.

These are the two advantages of java.util.Stack.

3 0
4 years ago
Which layer of the OSI model is responsible for ensuring flow control so that the destination station does not receive more pack
MrMuchimi

Answer:

The Layer 4 (Transport layer)

Explanation:

The transport layer is the fourth layer of the OSI (Open Systems Interconnection) model that is responsible for transmitting data between networking devices. Some of its other functions are;

i. It maintains flow control so that the destination station does not receive more packets than it can handle or process at a particular time.

ii. it also maintains error control so that the entire message (data) sent arrives at the layer without any error due to incompleteness, loss, damage or duplication.

6 0
4 years ago
What is number system​
schepotkina [342]

<u>★ Defination:</u>

The number system or the numeral system is the system of naming or representing numbers. The number system helps to represent numbers in a small symbol set.

<u>★ Tips:</u>

The value of any digit in a number can be determined by:

• The digit

• Its position in the number

• The base of the number system

<u>★ Types of number system:</u>

There are various types of number system in mathematics. The four most common number system types are:

• Decimal number system (Base- 10)

• Binary number system (Base- 2)

• Octal number system (Base-8)

• Hexadecimal number system (Base- 16)

8 0
3 years ago
Other questions:
  • Select the correct answer.
    7·1 answer
  • How do you use hand sanitizer <br><br><br><br><br> I need helpppp
    8·1 answer
  • When viewing data entered into a spreadsheet, the columns identify _____.?
    5·1 answer
  • ____ presents a comprehensive model for information security and is becoming the evaluation standard for the security of informa
    5·1 answer
  • State the seven common measures of queuing system performance ? State the assumptions of the “basic” single-server queuing model
    10·1 answer
  • What is good prossesser
    15·2 answers
  • Define and discuss statistical significance as it pertains to web analytics, formulate your own opinions of what this means. in
    8·1 answer
  • The relational algebra expressions can be rearranged and achieve the same result but with a better processing time. A selection
    8·1 answer
  • Trebuie sa scrii niște instrucțiuni în JavaScript care adaugă în DIV lungimea HTML-ului din interiorul tag-ului cu ID​
    14·1 answer
  • What is computer hardware / software​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!