>0x0.st/mVv.txt print "Good ok now enjoy using Checkbook Manager v1.4!" ;****@*%*�*&*=*#*"*�*�*~*+*'**^*�****OPTIONS STILL COMING!!!!!****@*%*�*&*=*#*"*�*�*~*+*'**^*�****
o i am laffin
Joseph Sanders
"Name equals 0" "If name does not equal zero"
You don't know what you are doing
Jack Jackson
OP if this is not bait I will help you write this program
Ryder Phillips
No one here gives a shit, Go stroke your ego elsewhere.
Josiah Ward
Nah that's ok. Clearly since I am not a l33t h4x0r like the rest of you fedora faggots I should find help elsewhere.
David Clark
If you want it to loop until you kill it you will need to put either a for loop or a while loop in there somewhere.
I can write you one in java if you want but you will have to pay me some shekels because i don't work for free.
randomize timer cls print "Person's Program 2000 print " von, user Productions Inc." print print "Dieses Programm rechnet die ersten 20 Primzahlen aus!" print "Bitte haben Sie einen Moment geduld." zahl = 1 1 print zahl 2 zahl = zahl + 1 do for zahl divider = zahl - 1 check = zahl % divider if check = # then goto 2
Andrew Jones
Check'd
Liam White
>enter total hours >enter total hours past 40
Cooper Green
I hadn't realize that Sup Forums could both be helpful and choke on gigantic cocks at the same time. Thanks guise!
Luis Perry
What if u get paid on 2 weeks and worked 88 hours total. That could be 40 + 48 or 1 + 87, which would get u different money
Matthew Allen
>name = 0 >if name != 0 .... >why doesn't it run gee i fucking wonder why. you set name to 0 and then do the rest of it only if name is not 0.
Charles Roberts
Since you declared name to be 0 at the top of your program, the code inside the if statement will never be run (as name will never not equal 0). Instead, use a while loop.
# Function that performs payroll calculation # # Function syntax: # def doSomething(employee, business) # ^name ^parameters (optional) # # You must define functions before they are used def calculate(): # Takes no parameters # Numbers with decimals are floats (floating-point), not int payRate = float(input('Enter employee hourly rate: ')) otPayRate = float(payRate * 1.5)
print() print('Employee: ', name) print('EE rate of pay: ', payRate) print('EE total hours: ', hours + otHours) print('EE total gross wages: ', pay)
# While structures loop forever as long as a given condition is met. Syntax: # while [condition]: # # As long as [condition] evaluates to True, the loop will continue unless # manually stopped with the `break` keyword. # # In this case, `True` will always evaluate to True, so this structure will loop # forever until `break` is called. while True: name = input('Enter employee name: ') # Since name is a string, compare it to "" (empty string), not 0 (integer) if name == "": # If name is empty, exit. `break` stops the while loop print('You are now exiting the program.') break else: # Name is not empty: perform calculation... calculate() # ...and loop again (break is not called)
Colton Myers
I don't really know python but something like this may work.
import sys
while (True) { name = 0 if name != 0: name = input('Enter employee name: ') rateofpay = int(input('Enter employee hourly rate: ')) hours = int(input('Enter total hours: ')) overtimerop = (int(hours * 1.5)) othours = int(input('Enter total hours beyond 40: ')) grosspay = (hours * rateofpay) + (othours * overtimerop) print("\n") print('Employee: \n', name) print('EE rate of pay: \n', rateofpay) print('EE total hours: \n', hours + othours) print('EE total gross wages: \n', grosspay) else: name == 0 print('You are now exiting the program.\n') sys.exit(0) }
Hudson Young
...
Jeremiah Russell
Wrong.
>name = 0 >if name != 0
The name input prompt will never be run.
Grayson Jones
>I don't really know python Very fucking obvious
Aiden Brown
You're welcome, OP.
def op_is_faggot(years_of_faggotry, size_of_faggotry): """Check if OP is a faggot
Arguments: years_of_faggotry {int} -- How many years been fag size_of_faggotry {int} -- How big fag is OP
Returns: bool -- is fag or not fag """ if int(years_of_faggotry) == 0 and int(size_of_faggotry) == 0: return False return True # assume that OP is faggot
op_is_a_faggot = True
while op_is_a_faggot: print('OP, you are a faggot.') faggotry_years = input('How many years have you been a faggot? ') faggotry_size = input('How big of a faggot are you, OP? ')
And that's perfectly fine, because in one week you had a shitton of overtime hours and those are worth more. Dumbass.
Parker Adams
>code box isn't 80 characters wide What the fug
Luis Phillips
idgaf it's a useless language soon to be replaced by Rust anyway.
Adam Mitchell
But we don't know the scope of what OP's using this proggy for. What if he wants to calculate wages for 2 months? It would be silly to assume every week only had 40 hours like I'm thinking you're implying he should do.
Chase Rogers
>soon to be replaced by Rust >scripting language soon to be replaced by a compiled language meant to replace C Stop while you're behind, user.
Bentley Butler
This is probably OP's first program. Jesus christ, cut him a break.
Jeremiah Collins
b-b-but how am i supposed to look like i have any programming knowledge whatsoever if I can't shit on beginners?
Jaxson Wilson
Well if that's true he should turn in his computer to the authorities and give up.
He doesn't have the cognitive capacity to master programming if he can't step through that tiny little bit of code and see why it doesn't run.
Evan Hughes
>l like a fucking retard right now.
Read your sources, damnit..
The "If"-statement does ONE THING for ONE TIME then goes on.
What you want is probably this:
name = '' while name.strip() != 'q': name = raw_input("Enter employee name (or q for Quit): ")
print('You are now exiting the program.')
Joseph Gonzalez
>He asked for help on Sup Forums and got upset when people made fun of him It's like you don't know where you are