Answer:
Keyboard,speaker,scanner,mouse,printer and monitor
Explanation:
In computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, cameras, joysticks, and microphones.
Answer:
4. let eggs = 5
let bread = 10
let soda = 6
5.
let total = eggs+bread+soda
Answer:
# The below code is in python programming language.
if(numberOfSides==4): #check the value number of slide is equal to 4 or not.
isQuadrilateral=True # assignment statement for if condition
else:
isQuadrilateral=False # assignment statement for else condition
Explanation:
The above code is in python language in which--
- The first lines are the "if" condition which checks the value of "numberofslides" variable.
- The second lines assign true in "isQuadrilateral" variable if "if" condition is true.
- The third line is for "else" statement that executes when the "if" condition is false.
- The fourth line is for "else" statement which assigns the value false to the numberofslides variables.
A USB drive is portable and can be used.
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)