vendredi 2 février 2018

random number in netbeans

I am a total newbie what programming

Can you help me what should I do with this task?

Convert the following structogram into a Java program;

variables: double a, b, c; int d, e, f, g;

a <--- random number in the interval [0; 1[

b <--- random number in the interval [0; 3.141592[

c <--- random number in the interval [4.08; 15[

d <--- whole random number in the interval [23, 42[

e <--- whole random number in the interval [6, 49[

f <--- whole random number in the interval [0, 36[

g <--- whole random number in the interval [1; 100[

Output: Values ​​of variables a to g?




Aucun commentaire:

Enregistrer un commentaire