Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is written in C# and is being used in Visual Studio Create a Stock Class: this class will represent a stock. You need to

This is written in C# and is being used in Visual Studio

Create a Stock Class: this class will represent a stock. You need to decide the member variables of this class based on the input file. This input file is given to you and it is a comma-separated-value file (.csv). This class must have a Date type member variable. Use properties for all of the private member variables/fields.

The different fields on the .csv file are Date, Open, High, Low, Close, Adj Close, and Volume

This is a snip from the .csv file in excel

image text in transcribed

1 Date Open High Low Close Adj Close Volume 2 1/3/2017 116.03 117.84 115.51 116.86 116.86 20663900 3 1/4/2017 117.55 119.66 117.29 118.69 118.69 19630900 4 1/5/2017 118.86 120.95 118.32 120.67 120.67 19492200 5 1/6/2017 120.98 123.88 120.03 123.41 123.41 28545300 6 1/9/2017 123.55 125.43 123.04 124.9 124.9 22861600 7 ######## 124.82 125.5 124.28 124.35 124.35 17324600 8 ######## 124.35 126.12 124.06 126.09 126.09 18356500 9 ######## 125.61 126.73 124.8 126.62 126.62 18653900 10 ######## 127.49 129.27 127.37 128.34 128.34 24884300 11 ######## 128.04 128.34 127.4 127.87 127.87 15228000 12 ######## 128.41 128.43 126.84 127.92 127.92 13145900 13 ######## 128.23 128.35 127.45 127.55 127.55 12195500 14 ######## 128.1 128.48 126.78 127.04 127.04 19097200 15 ######## 127.31 129.25 126.95 128.93 128.93 16593600 16 ######## 129.38 129.9 128.38 129.37 129.37 15162700 17 ######## 130 131.74 129.77 131.48 131.48 18731300 18 ######## 131.63 133.14 131.44 132.78 132.78 20020100 19 ######## 132.68 132.95 131.08 132.18 132.18 19539500 20 ######## 131.58 131.58 129.6 130.98 130.98 18956100 21 ######## 130.17 130.66 129.52 130.32 130.32 19790500 2017 12A 1oco 1 122012onon 1 Date Open High Low Close Adj Close Volume 2 1/3/2017 116.03 117.84 115.51 116.86 116.86 20663900 3 1/4/2017 117.55 119.66 117.29 118.69 118.69 19630900 4 1/5/2017 118.86 120.95 118.32 120.67 120.67 19492200 5 1/6/2017 120.98 123.88 120.03 123.41 123.41 28545300 6 1/9/2017 123.55 125.43 123.04 124.9 124.9 22861600 7 ######## 124.82 125.5 124.28 124.35 124.35 17324600 8 ######## 124.35 126.12 124.06 126.09 126.09 18356500 9 ######## 125.61 126.73 124.8 126.62 126.62 18653900 10 ######## 127.49 129.27 127.37 128.34 128.34 24884300 11 ######## 128.04 128.34 127.4 127.87 127.87 15228000 12 ######## 128.41 128.43 126.84 127.92 127.92 13145900 13 ######## 128.23 128.35 127.45 127.55 127.55 12195500 14 ######## 128.1 128.48 126.78 127.04 127.04 19097200 15 ######## 127.31 129.25 126.95 128.93 128.93 16593600 16 ######## 129.38 129.9 128.38 129.37 129.37 15162700 17 ######## 130 131.74 129.77 131.48 131.48 18731300 18 ######## 131.63 133.14 131.44 132.78 132.78 20020100 19 ######## 132.68 132.95 131.08 132.18 132.18 19539500 20 ######## 131.58 131.58 129.6 130.98 130.98 18956100 21 ######## 130.17 130.66 129.52 130.32 130.32 19790500 2017 12A 1oco 1 122012onon

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Datalog Engines In Databases

Authors: Bas Ketsman ,Paraschos Koutris

1st Edition

1638280428, 978-1638280422

More Books

Students also viewed these Databases questions

Question

How would I set up a master budget

Answered: 1 week ago