+ 1
If else in java
In this question purchase amount is given and u have to frame a program using if else and discount rates are given one for laptop and second for desktop Amount. Discount on Laptop. Discount on desktop 0-25000. 0.0% 5.0% 25001-57000. 5.0% 7.5% 57001-100000. 7.5% 10.0% Take input from user as L for laptop and D for desktop. print net amt. d=d/100*amt
2 Answers
+ 1
Where's your attempt? (Just want a space to work on)
+ 1
Here's something.
You'll just need to work on the exception handling and maybe one or two changes to your liking
https://code.sololearn.com/c67p6uHkXArM/?ref=app