Create a Windows Forms application. Use the following names for the project and solution, respectively: Gas Prices

Question:

Create a Windows Forms application. Use the following names for the project and solution, respectively: Gas Prices Project and Gas Prices Solution. Save the application in the VB2017\Chap08 folder. Create the interface shown in Figure 8-51. The application should declare a class-level Double array that contains 30 elements. Each element will store the daily price of a gallon of gas. Initialize the first 10 elements using the following values: 2.25, 2.25, 2.24, 2.15, 2.05, 1.97, 2.25, 2.87, 2.5, and 2.4. Use your own values to initialize the remaining 20 elements. The application should display the following items: the number of days the price increased from the previous day, the number of days the price decreased from the previous day, and the number of days the price stayed the same as the previous day. Code the application. Save the solution and then start and test the application.

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: