![tragesserj](/avatars/46407.jpg)
tragesserj
13.12.2020 •
Physics
What unite do scientists use to measure force
A) Newton
B) grams
C) meters
D) meters per second per second
Solved
Show answers
More tips
- A Auto and Moto What to expect from the new VW Golf 7?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- S Style and Beauty How to Get Rid of Peeling Nails: Natural Remedies...
- S Science and Technology Understanding Magnetic Storms: A Guide to This Natural Phenomenon...
- F Family and Home What is Most Important in Men s Lives?...
- G Goods and services Which TV is better - LCD or Plasma?...
- C Computers and Internet Are there special gaming mice?...
- G Goods and services LED-подсветка в LCD-телевизорах: 5 причин, почему она лучше других технологий...
- C Computers and Internet Keep Your Mouse Pad Clean: The Right Way to Clean It?...
Answers on questions: Physics
- P Physics A mother and her young child want to play on a seesaw at a playground. The child sits on the end of one side of the seesaw. Where should the mother sit to balance...
- P Physics A student is hammering a nail into a board. Where should he hold the hammer and why?...
- P Physics if the distance an object moves each second changes, the object is said to be speed. Please Help!...
- P Physics What are the cell structures where proteins are made...
- P Physics You use a wedge that has a width of 2.8 cm and a slope length of 5.1 cm. what is the mechanical advantage of this wedge?...
- P Physics True or False Temperature is the flow of heat energy from one object to another....
- P Physics Find the density of seawater at a depth where the pressure is 400 atm if the density at the surface is 1100 kg/m3. Seawater has a bulk modulus of 2.3 × 109 N/m2....
- P Physics When nuclear fission goes out of control (like a bomb), this is called a reaction....
- P Physics 13. how do scientists who build rovs use scientific methods?...
- P Physics The intensity of a sound describes a. its speed. b. its loudness at a particular distance. c. the distance and medium through which it travels. d. the medium through...
Ответ:
Follows are the program to this question:
public class Main//defining a class
{
public static void main(String[] bax)//main method
{
int d1,d2,r; //defining integer variables
d1 = (int)(Math.random()*6) + 1;//defining d1 variables that use random method to store a random value
d2 = (int)(Math.random()*6) + 1;//defining d2 variables that use random method to store a random value
r= d1 + d2;//defining r variable that adds d1 and d2 values
System.out.println("On the first time die will gives: " + d1);//print values with the message
System.out.println("On the second time die will gives: " + d2);//print values with the message
System.out.println("The total roll value is: " + r);//print values with the message
}
}
Output:
On the first time die will gives: 6
On the second time die will gives: 1
The total roll value is: 7
Explanation:
In this code three integer variable "d1,d2, and r" is declared, in which the "d1 and d2" variable is used, that uses the random method to hold a random value from 1 to 6 in its variable.
In the next step "r" variable is declared that calculates the addition of the "d1 and d2", and at the last, it uses the print method to print value with the message.