Answer:
explain
Explanation:
sorry didn't understand a thing you said except copying and pasting documents
Answer:
After checking the attached picture, come to this calculated "Total Time".
Total time 'T'
T = (0.25)(200) + (0.15)(200) + (0.1)(250) + (0.05)(175) + (0.45)(75)
T = 147.5 ps
Answer:
if(isIsosceles){
isoCount+=1;
triangleCount+=1;
polygonCount+=1;
}
Explanation:
Here we are checking the condition for variable "isIsosceles" using if condition. if it is true then only if block executed and it will increment mentioned variable values by 1
Answer:
import java.util.Scanner;
public class num1 {
public static void main(String[] args) {
System.out.println("Age Greater than 18?");
System.out.println("Y = \"Yes\"\t N = \"No\"");
Scanner in = new Scanner(System.in);
char response = in.next().charAt(0);
switch(response) {
case 'Y':
case 'y':
System.out.println("You can Visit this Website");
break;
case 'N':
case 'n':
System.out.println("You are to young to visit this website");
break;
default:
System.out.println("You response is not valid");
}
}
}
Explanation:
- Using Java programming language
- create a list of options for users to input "yes" or "no"
- Using the imported scanner class, prompt, receive and store the user's response in a char variable.
- Use the switch statement in an expression to test user input and print appropriate message.
- If there is no match print the default message