subject

For this assignment you will: write an algorithm
create the flowchart
code it in Python
Stock Transaction Program
Last month, Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase:

The number of shares that Joe purchased was 2,000.
When Joe purchased the stock, he paid $40.00 per share.
Joe paid his stockbroker a commission that amounted to 3% of the amount he paid for the stock.
Two weeks later, Joe sold the stock. Here are the details of the sale:

The number of shares that Joe sold was 2,000.
He sold the stock for $42.75 per share.
He paid his stockbroker another commission that amounted to 3% of the amount he received for the stock.
Write a program that displays the following information:

The amount of money Joe paid for the stock.
The amount of commission Joe paid his broker when he bought the stock.
The amount for which Joe sold the stock.
The amount of commission Joe paid his broker when he sold the stock.
Display the amount of money that Joe had left when he sold the stock and paid his broker (both times). If this amount is positive, then Joe made a profit. If the amount is negative, then Joe lost money.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Hassan is writing his master’s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words.size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words.size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
You know the right answer?
For this assignment you will: write an algorithm
create the flowchart
code it in Python...
Questions
question
Mathematics, 27.06.2019 19:00
question
Mathematics, 27.06.2019 19:00
Questions on the website: 13722359