If else in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

24th Jun 2017, 7:40 PM
Ayush Mishra
Ayush Mishra - avatar
2 Answers
+ 1
Where's your attempt? (Just want a space to work on)
24th Jun 2017, 7:49 PM
Limitless
Limitless - avatar
+ 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
24th Jun 2017, 8:15 PM
Limitless
Limitless - avatar