Answer:
1/2000
Explanation:
import java.util.Scanner;
public class InputExample {
public static void main(String [] args) {
Scanner scnr = new Scanner(System.in);
System.out.print("Enter birth month and date:");//comment this line if not needed
int birthMonth=scnr.nextInt();
int birthYear=scnr.nextInt();
String output= birthMonth+"/"+birthYear+"\n";
System.out.println(output);
}
}
if using this code the out put should be 1/2000
Answer:
Answered below
Explanation:
Class BaseballPlayer{
//Instance variables
string name;
int hits;
int bats;
//Constructor
BaseballPlayer (string a, int b, int c){
name = a;
hits = b;
bats = c
}
public void printBattingDetails( ){
System.out.print(name, hits, bats)
}
}
//Demo class
Class BaseballTester{
public static void main (String args []){
BaseballPlayer player = new BaseballPlayer("Joe", 8, 4)
player.printBattingDetails( )
}
}
Answer: Storage devices are non-volatile devices. That means that when the power is removed from them, for example, when you switch your computer off, they retain their contents (unlike RAM, which is volatile – it loses its contents). You can then retrieve the contents next time you switch your computer on. Storage devices can be used to hold operating systems, applications and files, amongst other types of software. They are simply big suitcases – used only for storage. We have already seen that when you want to use an application kept on a storage device, it has to be moved to RAM before you can start using it. This applies to the operating system, your files and any other category of software. For this reason, RAM is sometimes known as Primary Memory whereas storage devices are often referred to as Secondary Storage devices.