Answer:
name.charAt(0);
Explanation:
Given: 'name' is a variable of type String that has been assigned a value.
To determine: an expression whose value is the first character of the value of name.
Let us assume nae is assigned the value "test". So our expression should return the first character , that is 't'.
In order to do this, we can use the charAt method of String object.
String name="test";
char c = name.charAt(0);
Here 0 corresponds to the index of the character we are interested in.
Answer:
See explaination
Explanation:
public class QuickRich {
static void getRichQuick() {
double amount = 1;
int day = 1;
System.out.println("Day 1: $1");
while (amount < 1000000) {
day++;
if(amount + 1 + (amount/2) < 1000000)
System.out.printf("Day %d: $%.2f + ($1 + %.2f) = $%.2f\n", day, amount, amount/2, amount+(amount/2)+1);
else
System.out.printf("Day %d: $%.2f + ($1 + %.2f) >= $1000000\n", day, amount, amount/2);
amount += (1 + (amount/2));
}
}
public static void main(String[] args) {
getRichQuick();
}
}
Answer:
Digital Millennium Copyright Act
Explanation:
Digital Millennium Copyright Act (DMCA) is a protection placed on creative works online and gave content owners the authority to have their contents removed from websites who use it without permission, the act prohibits the reselling and giving away of commercial programs, contents or devices, violating the act is criminal
Make the presentation goofy so they will be more into it . your welcome