Answer:
// program in java.
// package
import java.util.*;
// class definition
class Main
{// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object to read inputs
Scanner scr=new Scanner(System.in);
// variables
String name;
double price;
System.out.print("Enter item's name: ");
// read item's name
name = scr.next();
System.out.print("Enter item's price: ");
// read item's price
price= scr.nextDouble();
// print name
System.out.println("name of item is:"+name);
// print price
System.out.println("price of item is:"+price);
}catch(Exception ex){
return;}
}
}
Explanation:
Read name & price of item from user and assign it to variables "name" & "price" respectively with scanner object.Then print the name and price of item .
Output:
Enter item's name: Apple
Enter item's price: 100
name of item is:Apple
price of item is:100.0
Using Rule of Addition:
<span>It states that : "The probability that Event A or Event B occurs is equal to the probability that Event A occurs plus the probability that Event B occurs minus the probability that both Events A and B occur."
</span><span>
P(A or B) = P(A) + P(B) - P(A and B)
</span> = 0.7 + 0.55 - 0.3
= 1.55
Answer:
4000 characters
Explanation:
I think the max is 4000 characters
B) Raw materials; As stated, European powers did indeed grow more industrialized, therefore they needed more raw materials. The North provided lumber, spent time whaling, etc.. The South spent time growing cash crops such as rice, cotton, and indigo.
Answer & Explanation:
//written in java
public class Main {
public static void main(String[] args) {
//String stored in a variable named phrase
String phrase = "Brainly";
//Checking whether the first character is in upper case or not
if (Character.isUpperCase(phrase.charAt(0)))
System.out.println("capital");
else
System.out.println("not capital");
}
}