Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the Function in C Language Analysis of the Indian Stock market Define a structure having 5 members' wiz Open, High, Low and Close price
Write the Function in C Language
Analysis of the Indian Stock market Define a structure having 5 members' wiz Open, High, Low and Close price of stock and volume. Note: You can visit "https://www1.nseindia.com/live_market/dynaContent/live_watch/equities_stock_watch.htm" Data is available and downloadable in csv file from above URL. You can also take some dummy data if you desire. For each stock you can store data from FIRST_DATE and LAST_DATE. Take data of 10 stocks listed below for days in between start_date and end_date. SBIN TATAMOTORS ii Write functions for iii i To find % change in the price of a stock from start to end date specified by the user. To sort given stock wise on a particular day, which means data is sorted first on volume and for equal volume based in close prices iv V PNB vi YESBANK TECHM vii .INFY TCS TITAN ONGC IOC Take a date on which a stock is bought and a date on which it is sold. Find profit/loss of two or more stocks, for these two dates. To find the highest performing stock for a specified duration, which means for a given duration (starting date and ending date), find out the stock which has highest profit/ gain in terms of %age. For e.g is "s" is starting day price and "e" is ending day price, gain is (e-s)/s * 100 To find lowest performing stock for the specified duration, which means for a given duration (starting date and ending date), find out the stock which has lowest profit/ gain in terms of %age. For e.g is "s" is starting day price and "e" is ending day price, gain is (e-s)/s multiplied by 100 List all stock as per increasing the overall performance, for the specified duration (starting-date and ending-date). Overall performance for a stock is calculated as summation of (%age change compared to previous day multiplied by volume of the stock traded on that day. To find the average value of all stock at any instant of time. Average value is calculated as weighted average of stick price and volume of the stock. Find average of average values of all stocks from start to end dates given by the user.
Step by Step Solution
★★★★★
3.44 Rating (173 Votes )
There are 3 Steps involved in it
Step: 1
i To find change in the price of a stock from start to end date specified by the user The percentage change in the price of a stock can be calculated by taking the difference between the closing price ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started