Computers and Technology, 18.04.2021 21:00 lalacada1
Python 3 ... Blocks of Stock. A block of stock as a number of attributes, including a purchase date, a purchase price,
a number of shares, and a ticker symbol. We can record these pieces of information in a tuple for each
block of stock and do a number of simple operations on the blocks.
Consider the following portfolio.
We can represent each block of stock as a 5-tuple with purchase date, purchase price, shares, ticker
symbol and current price.
portfolio= [ ( "25-Jan-2001", 43.50, 25, 'CAT', 92.45 ),
( "25-Jan-2001", 42.80, 50, 'DD', 51.19 ),
( "25-Jan-2001", 42.10, 75, 'EK', 34.87 ),
( "25-Jan-2001", 37.58, 100, 'GM', 37.58 )
]
Develop a function that examines each block, multiplies shares by purchase price and determines the
total purchase price of the portfolio.
Develop a second function that examines each block, multiplies shares by purchase price and shares by
current price to determine the total amount gained or lost.
Answers: 1
Computers and Technology, 21.06.2019 22:00
3. (6 pts) internally in the computer, with few exceptions, all numerical computation is done using binary numbers. output, however, often uses ascii, which is formed by appending 011 to the left of a bcd code. thus, an algorithm that directly converts a binary integer to a bcd integer is very useful. here is one such algorithm 1) draw lines to the left of the binary number to bound the expected bcd decades. (each decade is a group of 4 bits.) move the binary number one bit to the left. add 0011 to each bcd decade containing a binary value> 0100 repeat steps 2-3 until the last bit in the binary number has been moved into the least significant decade position. (note that when the last bit has been shifted into bcd decade, step 3 is not repeated.) read the bcd result. 2) 3) 4) 5) a) execute the algorithm for the binary number 1101101 b) execute the algorithm for the binary number 01110101110 4. (4 pts) represent the decimal number 3568 in bcd; excess-3 code; ascil; and hex.
Answers: 1
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
Python 3 ... Blocks of Stock. A block of stock as a number of attributes, including a purchase date,...
Advanced Placement (AP), 12.08.2019 22:20
Mathematics, 12.08.2019 22:20
Mathematics, 12.08.2019 22:20
Mathematics, 12.08.2019 22:20
Computers and Technology, 12.08.2019 22:20