Answer:
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter a decimal value (0 to 15): ");
int num = scan.nextInt();
scan.close();
if (num < 0 || num >15) {
System.out.printf("%d is an invalid input\n", num);
} else {
System.out.printf("The hex value is %X\n", num);
}
}
}
Explanation:
Hopefully this example will get you going for the other assignments.
Answer:
public static void printDottedLine(){
System.out.print(".....\n");
}
Explanation:
This method returns nothing so its return type is void
It also accepts no parameters so the argument list is empty
When called it executes the System.out.print(".....\n"); which prints out 5 dots
See a complete program below:
public class TestClock {
public static void main(String[] args) {
printDottedLine();
}
public static void printDottedLine(){
System.out.print(".....\n");
}
}
Answer:
B. Programming code for a video game
Explanation:
An item is considered an intellectual property if it is intangible in the sense that the actual property cannot be touched and it does not have a physical presence.
Options A, C and D do not fall in this category because they are tangible and they have physical presence.
Only option A, programming source code does not fall into this category.
Hence, <em>B. Programming code for a video game
</em> answers the question
I think this process would be Decision-Making, because the scenario is that you have to decide on what topic you are going to pick, based on research and what you think would be the best resolution. I don't think that Conflict resolution would be correct because there is no conflict and neither Negotiation nor Verbal Communication have anything to do with this, so i believe it's safe to assume the correct answer would be Decision Making.