Computer Science, asked by gitasubashini, 6 months ago

Rewrite the following statements using ternary operator.
if(amount>2000.00)
comm = amount * 0.4;
else
comm = amount * 0.2; [2]
b) What will be the output of the following code?
double b = -36.0;
double a = Math.sqrt(Math.abs(b));
System.out.println(a); [2]
c) Write java expressions for the following:
i) | √
+
| ii)




[2]
d) What will be the value stored in grade for the following values of marks:
i) marks=87 ii) marks =56
char grade;
if( marks>=90)
grade = ‘A’;
else
if(marks>=80)
grade = ‘B’;
else
grade = ‘C’ [2]
e) Give the output of the following program segment:
double x= 2.9, y = 2.5;
System.out.println(Math.floor(Math.min(x,y)));
System.out.println(Math.ceil(Math.max(x,y)));

Answers

Answered by sanikapandya8
1

Answer:

Kingdom

Eukaryotic, prokaryotic. Uni or multi cellular

Mode of nutrition

Reproduction

Shapes

Examples

Flagella in bacteria, mycelium and hyphe in fungi

Diseases

3) bacteria and fungipls follow

like answers

user sadThere should be no physical or mental harassment. Moreover, the classrooms should be free of conflicts, bullying and physical fights even among the students. Students should be provided counselling sessions as well as training to be able to tackle such situations in school.

Similar questions