Question: When executed, your program needs to open a wx frame with the following widgets. In this image no button has been clicked yet: two labels

When executed, your program needs to open a wx frame with the following widgets. In this image no button has been clicked yet: two labels at the top, one will display the current date and one will display the net gain and loss calculated for all 9 stocks in the database table named dow_stocks when the button is clicked. a regular list control with 6 columns: Company, Symbol, Purchase Price, Current Price, Shares, Gain/Loss a row of buttons. the Display Data button causes code to query the database and get the company, symbol, purchase price, and number of shares. That same code needs to make a request to finnhub to get the current price of each of the 9 stocks. Then using the number of shares, the purchase price, and the current price, calculate the gain or loss for each of the 9 stocks and display those values. the close button just closes the program. read data
Friday October 23,2020 : 13:23
Net gain/loss: \$ 6804.0
\begin{tabular}{|l|l|r|r|r|r|}
\hline Company & Symbol & Purchase Price & Current Price & Shares & Gain/Loss \\
3M & MMM & 157.5 & 169.26 & 100 & 1176.0\\
Apple Inc. & AAPL & 102.4 & 115 & 100 & 1260.0\\
Boeing & BA & 157.2 & 167.22 & 200 & 2004.0\\
Caterpillar Inc. & CAT & 162.35 & 167.96 & 200 & 1122.0\\
Cisco Systems & CSCO & 35.75 & 38.82 & 100 & 307.0\\
Honeywell & HON & 180.25 & 174.56 & 100 & -569.0\\
IBM & IBM & 111.45 & 115.96 & 300 & 1353.0\\
Intel & INTC & 66.1 & 48.08 & 200 & -3604.0\\
Microsoft & MSFT & 177.8 & 215.35 & 100 & 3755.0\\
& & & & & \\
& & & & & \\
\hline
\end{tabular}
When executed, your program needs to open a wx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!