1, Assingment 2.
You have to name the project as "Assignment2".
A Guessing Game
Instructions: GuessingGame- [url removed, login to view]é¢„è§ˆæ–‡æ¡£åœ¨æ–°çª—åÂÂÂÂÂ£ä¸æŸ¥çœ‹
You will not be required to turn in a flowchart for this project, but I suggest you draw one. It will help clarify the logic for you.
If you are having trouble testing your guessing game - maybe a problem with the random number generator, you might try displaying the generated number in a temporary MessageBox or label. That will help you control your testing and see if your hints (a little too high, much too high, etc.) are working properly.
2, Exercise 10
You have to name the project as Exercise 10
For this exercise, you will need to know how to use Input Boxes and ListBoxes. These controls are described in sections 5.1 and 5.2.
Create a form containing a textbox, a button, an output label, and a list box.
Instruct user to enter beginning balance into the textbox. When the "Compute" button is clicked, an InputBox will appear instructing user to enter a debit amount or to hit "Enter" to quit.
In your program define a variable of type Double for the total.
After the user enters the beginning balance, the program should edit the input for numerics. If the input is numeric, then an Input Box will be sent asking for the first debit.
The program will then use a Do Loop to have the user enter more debits.
As the debits are entered, the amount will be subtracted from the total. When the user enters a
null value (hits enter key with no input), the current account balance will appear in the list box.
Sample Executable: [url removed, login to view]åœ¨æ–°çª—åÂÂÂÂÂ£ä¸æŸ¥çœ‹
As an alternative, display the running balance next to each debit.
Sample alternative executable: [url removed, login to view]åœ¨æ–°çª—åÂÂÂÂÂ£ä¸æŸ¥çœ‹
3, Exercise 11(Chap 5 ForLoops)
you have to name the project as "Exercise 11"
Build a form with a TextBox and a ListBox in addition to your usual buttons and static labels.
Instruct the user to enter an integer representing the radius of a circle into the TextBox.
Edit the input to ensure it is numeric.
If it is numeric, call a routine to calculate the area of a circle for that radius - then for the initial radius plus 1, plus 2, etc. up to plus 10. Output the results in the ListBox with a sentence such as:
"A circle with a radius of x has an area of y"
Sample Program:[url removed, login to view]åœ¨æ–°çª—åÂÂÂÂÂ£ä¸æŸ¥çœ‹
you have to name the roject as "Exericse13"
Build a form containing the 3 usual buttons (Start, Clear, Exit), ID Label, and Output Label.
For the Start Button Click Handler, define an Integer Array containing 5 elements.
Generate 5 random numbers with values 1 to 6, and place each number in the array.
Then traverse the array and output the 5 numbers to the label.
On the next line of the label, output the total.
Hint: you will want to save your numbers and the total in a String and then output the whole string to a label. Otherwise, you will be overlaying the contents of the label each time you add data to it.
Sample execution: [url removed, login to view]åœ¨æ–°çª—åÂÂÂÂÂ£ä¸æŸ¥çœ‹
Pick 5 cars - any that you like.
Create a String array containing the names of the cars.
Go to the website [url removed, login to view]
Look up the combined gas mileage for each car and the price range. For price, just pick a number somewhere in the middle.
Create 2 parallel arrays containing those values (use an Integer array for the mileage - maybe Double for the price).
5 freelancere byder i gennemsnit ₹780/time for dette job
Hi, I have worked extensively in VB in a software firm for a US firm. I will deliver the work with desired efficiency and speed. Please ping me for further discussion.
I have been developing software in VB.NET and C# for eighteen years. My analysis and design skills in this field are excellent, and my coding and implementation skills a good match.