Question
Using Visual Basic Design the appropriate window and write the necessary code to enter the value of x and calculate the value of Y
From the following equationس2/ باستخدام لغة فيجوال بيسك صمم النافذة المناسبة وأكتب التعليمات البرمجية اللازمة لأدخال قيمة x وحساب قيمة Y من المعادلة الت
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program:

Private Sub Command1_Click()
Dim x, y As Double
Dim i As Integer
y = 0
x = CDbl(txtValueX.Text)
For i = 1 To 20
y = y + (Log(x) + ((x * x * x / 2)))
Next i
txtValueY.Text = y
End Sub

Output:

the Project 1 - Microsoft Visual Basic (run) File Edit View Project Format Debug Run Query Diagram Tools Add-ins Window Help

Add a comment
Know the answer?
Add Answer to:
Using Visual Basic Design the appropriate window and write the necessary code to enter the value...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use...

    PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...

  • visual basic calling and returing functins Write the code for a function named CalculateBonus. The function...

    visual basic calling and returing functins Write the code for a function named CalculateBonus. The function receives two decimal variables representing the salary and bonus rate. The function should calculate the bonus amount by multiplying the salary by the bonus rate, and then return the result. Then write the appropriate statement to invoke the function, passing it the decSalary and decRate variables. Assign the function’s return value to the decBonus variable.

  • Write a program in Visual Basic, design a window with four text boxes and a command...

    Write a program in Visual Basic, design a window with four text boxes and a command button to do the following: 1- Upon implementation, the text of the first box shall contain () University of Thi-Qar The rest of the text boxes will be empty. -2 When you click on Command1 it distributes the three sections of text In the first box on the rest of the empty boxesس2 : A) أكتب برنامج بلغة فيجول بيسك وصمم نافذة تحتوي على...

  • Please Solve this problem using Visual Basic Programming Language (show design Interface and programming codes): Q....

    Please Solve this problem using Visual Basic Programming Language (show design Interface and programming codes): Q. The Interface provides a text box, for the user to enter his or her current salary. The Calculate Button's Click Event Procedure should calculate the new salary amounts using rates of 2% through 6% in increment's of 0.5%. The procedure should display the rates and salary amounts in the lblNewSalary control. Code the procedure using the For....Next statement. Save the work.

  • write a programming code for the following problem using Visual Basic Studio VB. Write a program that will allow the user to enter series of mumbers and will give some useful statistics about the mam...

    write a programming code for the following problem using Visual Basic Studio VB. Write a program that will allow the user to enter series of mumbers and will give some useful statistics about the mambers Enter Numbers Button Click-Allow the user to enter series of nambers using imput dialog boxes. Use a loop and add the numbers to the listBox as they are input.. Prompt the user to enter"x" to stop addang numbers. Compute Statistics Button Click-Compute the following statistics...

  • Visual Basic: Write the code for a function named GetMajor. The function should prompt the user...

    Visual Basic: Write the code for a function named GetMajor. The function should prompt the user to enter a major field of study and then return the user’s response. Then write a statement to invoke the GetMajor function, returning the result to the strCurrentMajor variable.

  • Visual Basic You are asked to develop a Visual Basic Net application that can determine roots...

    Visual Basic You are asked to develop a Visual Basic Net application that can determine roots of a requirements of this project are as follows: 1) Design a form to allow users to define a quadratic equation and to find the roots of the equation. The form should have a label that shows this message: Solving a quadratic equation ax2+bx+c=0 The form should have three textboxes in which users enter the values of a, b, and c The form should...

  • Can you write the code for this It's for Visual Basic I am having a hard...

    Can you write the code for this It's for Visual Basic I am having a hard time getting it to work Telling me error Thank u I will rate a good so other students can learn from this

  • VISUAL BASIC (VISUAL STUDIO 2010) - PLEASE INCLUDE PICTURES OF OUTPUT AND CODE AND TEXTBOX pictures...

    VISUAL BASIC (VISUAL STUDIO 2010) - PLEASE INCLUDE PICTURES OF OUTPUT AND CODE AND TEXTBOX pictures of everything or thumbs downnnnnnn... Your question has been answered Let us know if you got a helpful answer. Rate this answer Question: VISUAL BASIC (VISUAL STUDIO 2010) - PLEASE INCLUDE PICTURES OF OUTPUT AND CODE AND TEXTBOX Be sur... VISUAL BASIC (VISUAL STUDIO 2010) - PLEASE INCLUDE PICTURES OF OUTPUT AND CODE AND TEXTBOX Be sure to include comments at the top of...

  • Solve using visual basic, c#, or c++ 1. Write a program to do the Gauss Elimination...

    Solve using visual basic, c#, or c++ 1. Write a program to do the Gauss Elimination procedure for a set of simultaneous linear equations. The input is a comma separated file of numbers. Write the program in the following phases. Ensure each phase runs correctly before you proceed to the next phase. a. Write a computer program to open a.csv file, and read the contents an augmented matrix of n columns and n +1 rows. The program should display the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT