Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Each year\'s level of production and prive (per bushel) for most agricultural pr

ID: 3808110 • Letter: E

Question

Each year's level of production and prive (per bushel) for most agricultural products affects the level of production and price for the following year. Suppose the soybean crop in a country was 80 million bushels in 2015 and

[price each year] = 20 - .1 * [quantity that year]

[quantity each year] = 5 * [price from the preceding year] - 10,

where quantity is measured in units of millions of bushels. Generate a table to show the quantity and price from 2015 until 2024. See Fig. 6.46

Program is to be done on Visual Basic

271 6.2 For Next Loops Histogram Beginning year: 2012 Soybeans Ending year: 2015 Display soybean Projections Gather end Display Data TEAR QUANTITY PRICE 2015 $12.00 80.00 Sales in Millions $15.00 2016 50.00 2012 12.6 $13.50 2017 65.00 2013 $14.25 2018 57.50 2014 10.2 $13.88 2019 61.25 2015 11.1 2020 $14.06 59.38 $13.97 2021 60.31 Average sales $10.70 million 2022 $14.02 9.84 2023 $13.99 60.08 FIGURE 6.45 Possible outcome of 2024 59.96 $14.00 Exercise 38. FIGURE 6.46 Outcome of Exercise 39. 39, Supply and Demand Each year's level of production and price (per bushel) for most agricultural products affects the level of production and price for the following year Suppose the soybean crop in a country was 80 million bushels in 2015 and price each year 20 .1 quantity that year [quantity each yearl 5 *[price from the preceding year] 10, where quantity is measured in units of millions of bushels. Generate a table to show the quantity and price from 2015 until 2024. See Fig. 6.46. 40. Quasi Palindrome A word is said to be a quasi palindrome if when you move the first letter to the end of the word and then read the new word backward, you get the original word. Some examples are dresser, banana, potato, and uneven. Write a program that requests a word as input and determines if it is a quasi-palindrome. See Fig. 6.47 Earnings u Quasi-Palindrome Compute Earnings Enter a word: grammar Option 1: $245,000 Determine if word is a Quasi-Palindrome Option 2: $247,500

Explanation / Answer

Hi,

Steps to follow:

1. Create a new form in is Visual Basic Project or Create a Project under Visula basic and add a form

2. Name it as "ProjectionForm"

3 Add a textbox with multiline Property name as "Textbox1"

4. Add a button Name it as "cmbProj"

5. Open the code file and replace the content with following code:

Public Class ProjectionForm
    Private Sub cmbProj_Click(sender As Object, e As EventArgs) Handles cmbProj.Click
        Projections()
    End Sub

    Private Sub Projections()

        TextBox1.Text += vbTab + "YEAR" + vbTab + "QUANTITY" + vbTab + "PRICE" + vbTab + vbNewLine
        'Qty of current year
        Dim xQty As Decimal = 80.0

        For a = 0 To 2024 - 2015
            'Price of current year
            Dim Price As Decimal = 0
            TextBox1.Text += vbTab + (a + 2015).ToString() + vbTab
            'Calculation of Price
            Price = 20 - 0.1 * xQty

            TextBox1.Text += (Format(xQty, "0.00")).ToString() + vbTab + vbTab
            TextBox1.Text += "$" + (Format(Price, "0.00")).ToString() + vbTab
            xQty = 5 * Price - 10

            TextBox1.Text += vbNewLine
        Next

    End Sub


End Class

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote