My assignment is as follows: Create a higher/lower guessing game using a graphical user interface. allow users to keep guessing until they guess the number. Choose two colors for the game: one should be used to indicate that the value the users guessed is higher than the target; the other is used to indicate the the value the users guesed is lower than the target. With each new guess, change the form color based on whether the guess is higher than the target or lower. Keep a count of the number of guesses it took. when they hit the target …

Member Avatar
Member Avatar
+0 forum 4

Alright so essentially I need to create a class that houses the methods and then call the methods in the form but I can't seem to find out what the right code is to call it. I think there may be an issue with the conversion from a double to a string. This is what I have for the Class Public Class Aircraft Dim Names() As String = {"A-747", "A-737", "C-150", "D-240"} Dim TakeOffVelocity() As Double = {250, 264, 270, 240} Dim Acceleration() As Double = {33.5, 44.2, 37.1, 51.9} Sub CalculateTakeOff1() Dim time1 As Double = TakeOffVelocity(0) Dim accel1 …

Member Avatar
Member Avatar
+0 forum 9

Here is my assignment: In Chapter 5, you created a lottery game application. Create a similar game using check boxes. For this game, generate six random numbers, each between 0 and 30 inclusive. Allow the user to choose six check boxes to play the game. [B][U](Do not allow the user to choose more than six boxes.)[/U][/B] After the player has chosen six numbers, display the randomly selected numbers, the player ’ s numbers, and the amount of money the user has won, as follows: Matching Numbers Three matches Four matches Five matches Six matches Zero, one, or two matches Award …

Member Avatar
Member Avatar
+0 forum 10

Okay so I am creating a windows form to basically act as a bank ledger for an individual. Pretty simple they must enter the account information, and a beginning balance. The key is the validation, it is really tripping me up. I need to ensure that upon clicking the continue button the textboxes are validated, the first should only be alphabetical components while the second two should only be numeric components. Additionally the last box must also be numeric only. Doubles are okay, it is currency after all. My code is below. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; …

Member Avatar
Member Avatar
+0 forum 7

My assignment is as follows: Create aJApplet that contains twoJTextFields, aJButton, and threeJLabels. When the user types an employee’ s first and last names (separated by a space) in a JTextField, the employee ’ s job title is displayed in a secondJTextField. Include two JLabels to describe theJTextFields used for data entry, and include a third JLabel that holds the employee ’ s title or an error message if no match is found for the employee. Use parallel arrays to store the employees ’ names and job titles. Save the file as JEmployeeTitle.java I have having an issue specifically with …

Member Avatar
Member Avatar
+0 forum 15

Alright I have a school assignment I had to create a loop to accept grade percentages from 0 to 100 and it needs to give the average percentage and letter grade, this is what I have but it is not working correctly, it always gives an F and no percentage. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Grader { class Grader { public static void Main(string[] args) { //initialize variable String userInput = ""; int addedGrades = 0, intValue; //give instructions to the user Console.WriteLine("Please enter your student's grades."); Console.WriteLine("\nOnce you have finished enter -100 to stop."); Console.WriteLine("\nEnter …

Member Avatar
Member Avatar
+0 forum 3

Okay I have created a validation loop which addresses the user entering a number between 10 and 50, as long as it is within these parameters it is supposed to ask for another number. When it is out of these parameters the program should let the user know it is outside the parameter and end the process. Below is what I have written, not sure where I went wrong as it always says it is a valid number, as long as the first number is valid. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Validator { class Validator { …

Member Avatar
Member Avatar
+0 forum 4

Okay I am working on arrays in class this week and since it is an online course I don't have anyone to turn to. YAY me! Basically this is what I have been asked to do. [I]Create a class named TVShow.java. Data Fields can include a String containing the Name of the show, a String containing the day that the show is broadcast(i.e. “Monday”) and an integer for the channel where the show can be viewed. Methods will include a constructor that requires values for all of the data fields, plus methods to get, set and display the values of …

Member Avatar
Member Avatar
+0 forum 11

The End.