Computer Science, asked by kajalrao200567, 5 months ago

7. 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 ll 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",

pls help karo kal meri exam hai but perfect answer chahiye .....​

Answers

Answered by suhani7826
0

Answer:

3dy9ysoydohxoyd0ysoydhoxphxpyd9ysohzlxcgusotsigsiargisogsoysoysotsoys9ta8tsoysoysoysoysoysoysotst9aotsoyzogzoyzpydpydoys9yxobxoyxysoohxoyzohxhxoyxpudupssoyitaitatiwypedupoyskagzhl blhyosshPJFJfoydaouaraoudjzfjzfydydo.vzkgzohdohdpuroydoydjfz

Similar questions