[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
2
Answer:
(E)
Explanation:
please follow me and make me brainlistt answer
Answered by
1
Answer:
Cabt understand what you have written
Similar questions
English,
3 months ago
Math,
6 months ago
Business Studies,
11 months ago
Environmental Sciences,
11 months ago