Write the Function in C Language Analysis of the Indian Stock market Define a structure having 5
Fantastic news! We've Found the answer you've been seeking!
Question:
Write the Function in C Language
Transcribed Image Text:
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 <volume-wise, close prices> 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. 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 <volume-wise, close prices> 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.
Expert Answer:
Answer rating: 100% (QA)
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 ... View the full answer
Related Book For
Posted Date:
Students also viewed these computer engineering questions
-
In Exercises 1 and 4, write the function in terms of the sine function by using the identity A cos wt + B sin wt = A2 + B2 sin (wt + arctan A/B). Use a graphing utility to graph both forms of the...
-
Write the function in the form f (x) = (x - k)q(x) + r for the given value of k, and demonstrate that f (k) = r. 1. f (x) = x3 x2 10x + 7, k = 3 2. f (x) = x3 4x2 10x + 8, k = 2 3. f (x) = 15x4 +...
-
This is for C language Write a C function escape(char s[], char t[]) that converts the characters newline and tab into two character sequences and t as it copies the string t to the string s. Use the...
-
What is the MFD? UFD? How are they related?
-
Lovely Lawns, Inc., intends to use sales of lawn fertilizer to predict lawn mower sales. The store manager estimates a probable six-week lag between fertilizer sales and mower sales. The pertinent...
-
Using the totals from the columns of the spreadsheet of question B5.1, prepare for the dental practice in the month of April: (a) a cash flow statement; (b) a balance sheet; and (c) a profit and loss...
-
What is the primary purpose of admission-seeking questions?
-
The following information is available for three MPS items Product A Product B Product C An 80 unit order is to be started in week 3 A 55 unit order is to be started in week 6 A 125 unit order is to...
-
3. A 200 kg roller coaster starts from rest at the top of the first hill at a height of 20 m above the ground. The second hill is 15 m above the ground. a. A physics student in line for the ride...
-
Create two operational definitions for each of the following psychological constructs. 1. Frustration 2. Cognitive dissonance 3. Anxiety 4. Sense of direction 5. Memory 6. Selfesteem
-
The average earning of Mr.Kumar for the initial three months of the calendar year 2002 is Rs. 1337. If his average earning for the second and third month is Rs. 1423 find his earning in the first...
-
Implement a marketing communication plan to boost the donor rate for the province of Ontario.
-
Thus leaders must have a communication goal that strives to cultivate a sense of reliance on each other in the workplace. This will help ensure that the organization's employees are focused in the...
-
Using php make a query and display on a page a selection of one random image in the sql database and display it in an attractive manner with a caption. On the same page display the total number of...
-
What role does empathetic communication play in fostering mutual understanding and collaborative problem-solving during contentious disputes involving deeply entrenched ideological positions?
-
In what ways can technology be harnessed to facilitate communication and foster mutual understanding among conflicting parties in the digital age?
-
Explain and critically examine the words Deindustrialisation, and stigmatised Capitalism , with respect to India in the current scenario.
-
You've been asked to take over leadership of a group of paralegals that once had a reputation for being a tight-knit, supportive team, but you quickly figure out that this team is in danger of...
-
In Exercises 1-4, find the center and radius of the circle. 1. x2 + y2 = 49 2. x2 + y2 = 1 3. (x 4)2 + (y 5)2 = 36 4. (x + 8)2 + (y + 1)2 = 144
-
One formula for a person's maximum heart rate is 220 x, where x is the person's age in years for 20 x 70. The American Heart Association recommends that when a person exercises, the person should...
-
Find the missing values assuming continuously compounded interest. 1. 2. Time to Amount After Initial Investment Annual 10 Years % Rate Double 3.5% $1000 $750 10%
-
What is the goal of Industry 4.0?
-
In which way does this book cover CPS and IoT design?
-
In which application areas do you see opportunities for CPS and IoT systems? Where do you expect major changes caused by information technology?
Study smarter with the SolutionInn App