100; IV. Unsolved Java Programming:
Write a program to find and display the value of the given expressions,
x + 3
2x + 5
(a)
; taking the value of x = 5
6
3
a² + b² + c²
(b)
; taking the values a=5,b=4.0.3
abc
(2) A person is paid 350 for each day he works and fined 330 for each day he
remains absent. Write a program to calculate and display his monthly income,
if he is present for 25 days and remains absent for 5 days,
3. In a competitive examination, there were 150 questions, One candidate got 88%
correct and the other candidate 72% correct. Write a program to calculate and
display the correct answers each candidate got.
4. Write a program to find and display the percentage difference, when,
(a) a number is updated from 80 to 90
(b) a number is updated from 7.5 to 7.2
93
Operators in Java
Share
0 Replies