Main.Assignment1 History

Hide minor edits - Show changes to markup

January 24, 2013, at 06:49 PM MST by 24.54.128.180 -
Changed line 2 from:

Due date: 2/1

to:

Due date: 2/1 at 5pm.

January 24, 2013, at 06:48 PM MST by 24.54.128.180 -
Changed lines 4-5 from:

Your assignment for this week is to write a program that computes the profit (or loss) in a stock transaction.

to:

Your assignment for this week is to write a program that computes the profit (or loss) in a stock transaction and prints it to the screen.

Changed lines 13-14 from:

(price sold - price bought) * number of share - purchase commission - selling commission

to:

(price sold - price bought) * number of shares - purchase commission - selling commission

Changed line 17 from:

Store your program in a file called assignment1.py and submit it by email to your instructor. At the top of the file put a comment that identifies you and the program:

to:

Store your program in a file called assignment1.py and submit it via RamCT. At the top of the file put a comment that identifies you and the program:

January 24, 2010, at 04:07 PM MST by 71.196.160.210 -
Changed line 15 from:

Assume that there is a 7$ commission for both buying and selling a stock.

to:

Assume that there is a $7 commission for both buying and selling a stock.

January 24, 2010, at 04:07 PM MST by 71.196.160.210 -
Changed lines 17-21 from:

Store your program in a file called @assignment1.py@ and submit it by email to your instructor. At the top of the file put a comment that identifies you and the program:

@Assignment1@
@Submitted by Your_Name@
@A short description of your program@

to:

Store your program in a file called assignment1.py and submit it by email to your instructor. At the top of the file put a comment that identifies you and the program:

Assignment1
Submitted by Your_Name
A short description of your program

January 24, 2010, at 04:06 PM MST by 71.196.160.210 -
Added lines 1-21:

Assignment 1

Due date: 2/1

Your assignment for this week is to write a program that computes the profit (or loss) in a stock transaction.

Get from the user the following input:

  • The price for which the stock was purchased.
  • The number of shares bought
  • The price for which the stock was sold.

The formula for computing the profit/loss is:
(price sold - price bought) * number of share - purchase commission - selling commission

Assume that there is a 7$ commission for both buying and selling a stock.

Store your program in a file called @assignment1.py@ and submit it by email to your instructor. At the top of the file put a comment that identifies you and the program:

@Assignment1@
@Submitted by Your_Name@
@A short description of your program@