Author

Topic: Create calculator for salary (Read 244 times)

member
Activity: 110
Merit: 10
February 07, 2019, 07:08:47 PM
#9
Sorry for being offtopic but how can your account have 50 sendable merits?


Edit:
Did read through the lines so now I understand. So your 50 merits are a promise.
I don't think someone will help you for 50 merits because you are unlikely to get 50 sendable merits. Instead,
maybe they will do it for free without expecting anything.
I would help you, however your code looks like a mess and I don't have time now to make sense of everything.
I don't even understand what you're trying to accomplish because you're not clear.

Instead, for programming I would go for stack overflow. Make sure you formulate the question correctly so we can understand
what you need. For now, your code just looks like some homework to me. From what I can see you're having basic syntax errors.
If you don't know what that is, you're more likely to be a student than an employee.

Edit2:
I believe there are many logic errors. I assume you don't understand your code in full and it's possibly not your.
var max2 = document.getElementById('max3').value;  
Why are you getting max3 value and assign it to max2 here? Shouldn't you get max2?

There are potentially more errors. The only way you can get good at coding is by overcoming these obstacles.

Oh I just fixed that error thank you.I want make calculator which will sum salary from this  and also it should sum services Max3+Max2+Mobilni=Total.
Max3 package=450$,Max2=150$,Mobilni=100$.This is example of salary and services how it should sum both things Max3=1(3),1=package,(3=number of services),Max2=1(2),1=package(2=number of services),Mobilni=1(1=number of services)=Max3+Max2+Mobilni=1(3)+1(2)+1(1)=result should be 700(6) but if there is services less then 39 then it should write 3000 only without number of services.
1 Max3 package have always 3 services,1 Max2 package have always 2 services and Mobile always have 1 services.

member
Activity: 421
Merit: 97
February 07, 2019, 05:23:52 PM
#8
Sorry for being offtopic but how can your account have 50 sendable merits?


Edit:
Did read through the lines so now I understand. So your 50 merits are a promise.
I don't think someone will help you for 50 merits because you are unlikely to get 50 sendable merits. Instead,
maybe they will do it for free without expecting anything.
I would help you, however your code looks like a mess and I don't have time now to make sense of everything.
I don't even understand what you're trying to accomplish because you're not clear.

Instead, for programming I would go for stack overflow. Make sure you formulate the question correctly so we can understand
what you need. For now, your code just looks like some homework to me. From what I can see you're having basic syntax errors.
If you don't know what that is, you're more likely to be a student than an employee.

Edit2:
I believe there are many logic errors. I assume you don't understand your code in full and it's possibly not your.
var max2 = document.getElementById('max3').value;  
Why are you getting max3 value and assign it to max2 here? Shouldn't you get max2?

There are potentially more errors. The only way you can get good at coding is by overcoming these obstacles.
member
Activity: 110
Merit: 10
February 06, 2019, 09:24:15 PM
#7
member
Activity: 110
Merit: 10
February 06, 2019, 02:46:53 PM
#6
Now I fixed all those errors and this is my new code:





    Javascript- if, else if, else
    
    
    
    
                    
                    
                  
                    
                    
                    

Izračun plaća


                    
                    

                    

                    
                    
                    

                    

                    
                    
                    

                    

                    
                    
      
                    

                    
                    

                    
                    
                    


                    
                    
                    
                    
    


My new error is:
×
JavaScript error: SyntaxError: expected expression, got '}' on line 84
member
Activity: 110
Merit: 10
February 06, 2019, 05:40:42 AM
#5
Looks like this line is missing a closing tag?




I just tried to move that row or change it or put at the end > or put my name and it dont work again I get Reference error Sad
Also I have SyntaxError:expected expression,got '<'
newbie
Activity: 8
Merit: 0
February 05, 2019, 09:13:43 PM
#4
Looks like this line is missing a closing tag?

member
Activity: 110
Merit: 10
February 05, 2019, 08:18:49 PM
#3
Javascript because it can run on a website that can be accessed by any phone.


Thank you.
I tried this code in script to make my calculator but I have this error:ReferenceError: checkMax3 is not defined

This is my error Sad :






    Javascript- if, else if, else
    
        
    
                    
                    
                    
                    
                    
                    

Izračun plaća


                    
                    

                    

                    
                    
                    

                    
                    
                    

                    
                    
                    
                    
                    
                    
                    
                    
  
                    

                    
                    
                    


                    
                    
                    
                    
legendary
Activity: 4466
Merit: 3391
February 04, 2019, 07:08:26 PM
#2
Javascript because it can run on a website that can be accessed by any phone.
member
Activity: 110
Merit: 10
February 04, 2019, 06:37:38 PM
#1



Couple of persons helped me to create calculator I did it and now I will close this topic.Thanks to everybody who helped me Smiley
Jump to: