Question: (10) 9. You are to write two functions for a program that keeps track of information for one stock along with a line of code
(10) 9. You are to write two functions for a program that keeps track of information for one stock along with a line of code to call each function and its prototype. The data to be entered by the user is as follows: Shares Stock Name Joe's Technology Buy Price 69.34 Current Price Stock Type 77.55 Large Cap 150 a. Write a function to allow the user to enter in the above data for the stock in the order given above. Please place your function here: Specify one line of code which could call your function: Place the function prototype here: b. Write a function that will calculate and return the total cost (shares "buy price), the current value (shares current price), and the profit (current value - total cost) for the stock. Please place your function here: Specify one line of code which could call your function: Place the function prototype here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
