Recently, Joe Btfsplk purchased some stock in Acme Software, Inc. The details of the purchase are...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Recently, Joe Btfsplk purchased some stock in Acme Software, Inc. The details of the purchase are as follows: 1,000 shares at $32.87 per share. The stockbroker received $5 dollars plus a commission of 2% of the total purchase. Should he decide to sell, the stockbroker receives $5 dollars plus a commission of 2% of the total sale. Feeling jittery, Joe is considering selling the stock. The only thing is that he is unsure of is what price to sell at. Here are the details of what must be done: Write a program that accepts as user input, the proposed sclling price and displays the following information: The total amount of money Joe paid for the stock. • The fees paid to the stockbroker when the stock was purchased. • The total amount that the stock sold for. • The fees paid to the stockbroker when the stock was sold. The profit that Joe realized from the purchase and sale transactions. Note that a loss would display as a negative value. All dollar amounts should be printed to 2 decimal places. For testing purposes, assume that the shares were sold at a price of $34.12 cents per share. Recently, Joe Btfsplk purchased some stock in Acme Software, Inc. The details of the purchase are as follows: 1,000 shares at $32.87 per share. The stockbroker received $5 dollars plus a commission of 2% of the total purchase. Should he decide to sell, the stockbroker receives $5 dollars plus a commission of 2% of the total sale. Feeling jittery, Joe is considering selling the stock. The only thing is that he is unsure of is what price to sell at. Here are the details of what must be done: Write a program that accepts as user input, the proposed sclling price and displays the following information: The total amount of money Joe paid for the stock. • The fees paid to the stockbroker when the stock was purchased. • The total amount that the stock sold for. • The fees paid to the stockbroker when the stock was sold. The profit that Joe realized from the purchase and sale transactions. Note that a loss would display as a negative value. All dollar amounts should be printed to 2 decimal places. For testing purposes, assume that the shares were sold at a price of $34.12 cents per share.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
The following information pertains to Ming Corp. at January 1, 2018: Common stock, $10 par, 50,000 shares authorized, 3,000 shares issued and outstanding Paid-in capital in excess of par, common...
-
A physical-fitness center has found that, of those members who perform high- impact exercising (1), will either repeat high-impact exercising, or do medium-impact exercising (2), low- impact...
-
Amount in Dollars Amount in Dollars Sales 1 00 000 79 900 Cost of goods sold 47 500 39 950 Operating expenses 750 500 Selling expenses 9 500 9 000 Administrative expenses 12 000 12 000 Net income 30...
-
Radon levels in a building interior are recorded at 8 pCi/L. What are the U.S. Environmental Protection Agency recommendations for this level?
-
A piston moves in a cylinder at constant pressure while heat is added. If the volume doubles, determine entropy change in the air assuming constant specific heats from Table B-2.
-
Policymakers would never respond by stabilizing a temporary positive supply shock. Is this statement true, false, or uncertain? Explain your answer.
-
Refer to the information in Exercise 17-1. Assume that the following information is available for the companys two products for the first quarter of 2017. Required Compute activity rates for each...
-
Jan Nab is the sole owner of Deer Park, a public camping ground near the Lake Mead National Recreation Area. Jan has compiled the following financial information as of December 31, 2010....
-
Student Name: Anthony Jedruczek (Please PRINT your name) Assume that Q-Caf has the following transactions related to the sale of coffee beans during the month of October, 2023. Oct 1 Oct 5 Oct 15 Oct...
-
Sigrid contributed $200 every month for nine years into an RRSP earning 4.3% compounded annually. She then converted the RRSP into an annuity that pays her monthly for 20 years. If the first payment...
-
(1) Hobby expenses are always deductible to the extent of: A: Adjusted Gross Income B: 2% of Adjusted Gross Income C: Investment Income D: Hobby Gross Income E: Hobby expenses are never deductible...
-
8) Suppose the sponsors expect to resell Hertz in year 2010. Based on your estimates in step (7), if the sponsors put up $2.3 billion in equity, what annual return can they expect to earn? (Hint:...
-
Suppose a company called "Firelnc" is expected to pay a dividend next year of $1.52 per share. Both sales and profits for FireInc are expected to grow at a rate of 15% for the following two years and...
-
One month ago, you sold a USD 3x6 FRA at 5 for notional value of USD 10 million. Today you intend to close the position. Given the FRA dealing rates: 5.50% -5.62% at what rate could, you cover your...
-
During the year, Mitchell, a single taxpayer, gave the following gifts: $10,000 cash to his nephew $20,000 tuition paid for his 24-year-old daughter, paid directly to the State University $20,000...
-
Heather Blythe is putting together the final numbers to present the cash flow to investors to her CEO tomorrow. She has just finished calculating cash flow from operating activities at $350 million....
-
1.)Discuss the difference between preparatory, purposeful, and occupation-based activity and their use in meaningful client intervention. Identify whether a COTA may use any of the above mentioned...
-
A summary of changes in Pen Corporation's Investment in Sam account from January 1, 2011, to December 31, 2013, follows (in thousands): ADDITIONAL INFORMATION 1. Pen acquired its 80 percent interest...
-
A Ford put option with strike price 60 trading on the Acme options exchange sells for $2. To your amazement, a Ford put with the same maturity selling on the Apex options exchange but with strike...
-
Suppose Baa-rated bonds currently yield 6%, while Aar-rated bonds yield 5%. Suppose that due to an increase in the expected inflation rate, the yields on both bonds increase by 1%. What would happen...
-
Assume a universe of n (large) securities for which the largest residual variance is of an order not larger than n2M. Construct as many different weighting schemes as you can that generate...
-
Martin Galloway, the sole proprietor of a consulting business, has gross receipts of $45,000 in 2017. His address is: 1223 Fairfield Street, Westfield, New Jersey and his SSN is 158-68-7799. Expenses...
-
Probest Corporation (a calendar-year corporation) purchased and placed the following assets in service during the year All assets are used 100 percent for business. $100,000 of the cost of the...
-
In May 2016, Jose purchased a used automobile for $12,000 and used it 75 percent for business. No Section 179 election was made for this asset. In 2017, Joses business use of the automobile decreased...
Study smarter with the SolutionInn App