1st Sep 2020, 7:38 PM
Ahmad Bello
7 Réponses
+ 6
Why you added unnecessary thread links in description..? Pls remove those.. And to get help.. Try it first by yourself, if you stuck then post your try here... Then one of community help you to finish that surly... Tq..
1st Sep 2020, 8:01 PM
Jayakrishna 🇮🇳
+ 4
Ahmad Bello , this looks like your home work. Please present us your attempt. Thanks!
1st Sep 2020, 8:52 PM
Lothar
Lothar - avatar
0
Forgt to say... I have written it in python... See below... *No.1* def discount(price):     percentage_disc = price * 0.3 #Percentage discount     final = price - percentage_disc #discounted price     final_tax = final * 0.13 #tax on discounted price     return final + final_tax
2nd Sep 2020, 12:35 PM
Ahmad Bello
0
No.2 def earnings():     hours = int(input('Total Number of Hours Worked:'))     rate = int(input('Hourly Rate:'))     return 'your Salary after tax is {} Naira'.format((hours * rate) - 20)
2nd Sep 2020, 12:36 PM
Ahmad Bello
0
I need assistance in writing and executing the code using Java.
2nd Sep 2020, 12:37 PM
Ahmad Bello
0
You need to give a try.. Java is strictly typed language than python.. Some of conventions to translate are To declare variables, syntax datatype variable_name = value ; To take user input, import java.util.Scanner ; Make Scanner object = new Scanner(System.in) ; object.nextDouble(); for double value, Function declaration return_type function_name(arguments) { ... } All these should include in a class.. Call from main method in that class..
2nd Sep 2020, 4:56 PM
Jayakrishna 🇮🇳
- 1
Any Idea pls??
1st Sep 2020, 7:38 PM
Ahmad Bello