valdonoja01A
@valdonoja01A
My professor want me to draw the shapes on the computer like this
70BDF43D-98BE-4DCC-B366-E31B51F11B3F
Python
I need help to create it don’t know how it’s done
Python
GoodCoderBadBoy do you want the flow chart to be created using code or made using a web program?3 years ago
GoodCoderBadBoy do you want the flow chart to be created using code or made using a web program?3 years ago
Codejira Hey, it's you again :-) Let's have a look:
Line 3: amountPaidPerShare should be 40
Line 4: Delete single closing bracket, also on line 8
Line 10:
amountPaidForStock and amountReceivedForStock already account for commission. No need to calculate anything other than the difference.3 years ago
Line 4 is give me trouble I need help to run this program my answer should be
535 can some tell me what to put for line 4 so it can run Please
Python
Bookie0 Okay so now it works, but i have to take of the percentage on lines 4 and 8. Since percentage is like * 100 i think (I’m not sure), dont write percentage type in the equation for percentage
55B722A6-11DD-44D3-A60D-10772C66BD2D3 years ago
Bookie0 Line 4 and 8 I don’t think you can use add and subtract, maybe use + and -
Idk , I’m not pro, but maybe it could work3 years ago
If I want my profit to equal to 535 what should I change on my repl program my professor said this is wrong
Python
Codejira When buying stock, commission gets added.
stock = 2000 # shares
buyfor = 40.0 # dollar
sellfor = 42.75 # dollar
commission = 3 # percent
paid = stock * buyfor * (1 + commission/100)
received = stock * sellfor * (1 - commission/100)
profit = received - paid
`3 years ago
need help getting and error won't run can I get some assistant before 11pm please
Python
https://repl.it/@valdonoja01A/TubbyPalegreenDisks-3
My professor said I need to update and add what’s is missing the specs what she mean by this
Python
Codejira De-indent the call of main() (last line).
If indented, it belongs to the function above and never gets called.
If you ever want to re-use certain functions in other modules, you can prevent running main() on import by using:
if name == "main":
main()
`3 years ago