Question

hi i visual basic windows form app .net how do get started for coding i am...

hi i visual basic windows form app .net how do get started for coding i am new and have no experience i know the dim statement but i can figure out the rest is there any way to know how?

example using if statements and do while loop

0 0
Add a comment Improve this question Transcribed image text
Answer #1

IF statement:

input = Integer.Parse(Console.ReadLine())
If input < 1 Or input > 10 Then
Console.WriteLine("Number out of range")
End If

read input and check 1 - 10 print Number out of range

do While loop:

Dim input As Integer
Do
Try
Console.Write("Enter number between 1 to 10 : ")
input = Integer.Parse(Console.ReadLine())
If input < 1 Or input > 10 Then
Console.WriteLine("Number out of range")
End If

Catch ex As Exception
Console.WriteLine("Enter valid number")
input = 11
End Try
Loop Until input > 0 And input < 11

do while loop , loop untill input greater then 0 and less then 11

Add a comment
Know the answer?
Add Answer to:
hi i visual basic windows form app .net how do get started for coding i am...
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 help! Visual Basic - Windows App Form .NET Framework. ​Option Explicit ON ​Option Strict ON...

    Please help! Visual Basic - Windows App Form .NET Framework. ​Option Explicit ON ​Option Strict ON ​Option Infer ON calculate Letter Grade Number grade: I Letter grade: Calculate Exxt Start a new Project named GradeConverter Add labels, textboxes, and button to the default form. Create an event handler for Calculate and Exit. . When the user enters a number- between 0.0 and 100.0 and clicks Calculate, the letter grade will display for the user The form should be able to...

  • : LP 4: Assignment 4 - Penny or Nickel Challenge in visual basic 2017, I am...

    : LP 4: Assignment 4 - Penny or Nickel Challenge in visual basic 2017, I am stuck need help on form and code in c++ this is for practice to get my right form and coding to be able to do my in-class assignment. The instructor said to perfect this and when we did class program we will be able to do it all. Oh hello, I am struggling on getting it right especially looping. Thank you, your answer may...

  • Hi, I am trying to figure out how write a code to read in a list...

    Hi, I am trying to figure out how write a code to read in a list of integers separated by commas into an array in c++, while ignoring the commas. example input 5, 2, 8, 6, 3, 6, 9, 7 example array: int arr[] = {5,2,8,6,3,6,9,7};

  • Hi. How do I solve for an equation where I am given two letters? The problem...

    Hi. How do I solve for an equation where I am given two letters? The problem given is "x+y=80" and then "2x-y=37" how do I figure out both answers?

  • hi there! how did they get thst equation x1=am/p1? i dont know understand this paragraph. if...

    hi there! how did they get thst equation x1=am/p1? i dont know understand this paragraph. if someone could help that would be great! Cobb-Douglas Preferences For the case of Cobb-Douglas preferences it is easier to look at the algebraic! form of the demand functions to see what the graphs will look like. If u(11,12) = rm-9, the Cobb-Douglas demand for good 1 has the form 2 = am/pi. For a fixed value of Pı, this is a linear function of...

  • I am trying to build a program in Visual Basic that allows user to enter an...

    I am trying to build a program in Visual Basic that allows user to enter an objects mass and velocity and to display the Kinetic energy. The application should have a function KineticEnergy that accepts a moving objects mass and velocity as arguments. The function should return the objects KE. i get these three errors when trying to run the program I need help how would I fix this so it runs successfully? Thanks in advance! Start 16 ml.vb* +...

  • How do I figure this out?

    This is my homework assignment, I do not want the answer, just want to know how to do this, as I cannot find any information within the textbook on how to figure this out. What am I supposed to be doing to get this answer?

  • Would Anyone Know how to solve this and what I am doint wrong in the form...

    Would Anyone Know how to solve this and what I am doint wrong in the form of python code ''' Write a program that uses a loop to print the uppercase alphabet with the correct ASCII number next to each letter. (e.g. one line might be A 65). ''' c = 65 while (c <= 90): print ( chr( c ) + str ( c) ) c = c + 1

  • The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language....

    The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language. The book ISBN number that I am using is: 978-1-285-08416-9 or the UPC code is: 2-901285084168-1. Question 1 Visual Basic 2012 is an object-oriented programming language, which is a language that allows the programmer to use ____________________ to accomplish a program�s goal. Question 2 An application that has a Web user interface and runs on a server is called a(n) ____________________ application. Question 3...

  • VISUAL STUDIO - WINDOWS FORM APP (C#) - PLEASE MAKE SURE TO SHOW ALL CODE &...

    VISUAL STUDIO - WINDOWS FORM APP (C#) - PLEASE MAKE SURE TO SHOW ALL CODE & ANSWER/FOLLOW ALL THE QUESTIONS IN THE ASSIGNMENT! . . Your program assignment Write a program name DeskGUI that computes the price of a desk and whose button Click Event calls the following methods: • A method to accept the number of drawers in the desk as input from the key board. This method returns the number of drawers to the SelectDesk_Click event. A method...

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
ADVERTISEMENT