Computer Science, asked by psrinivasan110, 6 months ago

[ICSE 2014
Rewrite the following program segment using if-else statements instead of the ternary
operator.
a) String grade = (marks>=90)?"A": (mark>=80)? “B": "C";
b) commission = (sale > 5000) ? sale*10/100 : 0;
(c) net = (salary > 10000) ? salary - (8.33/100)*salary :
salary - (5/100)*salary,
d) s= (a+b <c || a+c <= b || b+c <= a) ? "Triangle is not possible": "Triangle is
possible";
(e) c = (x >= 'A' && x<= 'Z') ? "Upper Case Letter" : "Lower Case Letter”;​

Answers

Answered by JAINAMSHAH06677
2

Answer:

(E)

Explanation:

please follow me and make me brainlistt answer

Answered by AradhyaLongwani
1

Answer:

Cabt understand what you have written

Similar questions