Hi everyone I have a issue where I have written the entire program but couple little tweaks are needed for me to get the program done. I have my super class here "Pet". I have created couple objects in Main, "myRobin" , "myCow", "myBlackMamba" and passed some arguments to them. Im now trying to send those parameters and have them printed to the output via the toString method I have. Im learning my way around Java ..so Im wondering what am I missing that could make this possible.... Thanks everyone. public class Pet { //office wants to store info regarding …

Member Avatar
Member Avatar
+1 forum 5

Hi everyone, I need some help with Homework I have to create this rudimentary Minesweeper game where I have a HTML page with 100 buttons in a 10 x 10 Table with a value of '1' . My Question is , is there a more efficient method of generating a 100 button table like that without a whole bunch of lines of code?

Member Avatar
Member Avatar
+0 forum 3

Ok so this is my code so far: I have a issue where near the end in the getSum() method I need a way for the all the methods that i have that ask for the user input need to go into the respective arrays that i made in the getSum method then the prices i assigned in my Constructor to be linked to each selection the user made for that particular component for their computer and then display the "reciept" in the DisplayResults method...racking my brain trying to figure that out... Thanks guys public class Computer { //memory locations …

Member Avatar
Member Avatar
+0 forum 3

[B][I]Statement:[/I][/B] write a program that creates a two dimensional array with 10 rows and 2 columns, The first column should be filled with 10 random numbers between 0 and 100. * The second column should contain the squared value of the element found in column 1. Using the Show( ) method of the MessageBox class display a table ok so im gonna have to implement the messagebox.show() line in my program, but i was wondering i already have made an array which will store 10 random values in the first column is there anything i can use which will pull …

Member Avatar
Member Avatar
-1 forum 11

private void btnSend_Click_1(object sender, EventArgs e) { To = txtPhoneNumber.Text.Trim() + cboCarrier.SelectedItem.ToString().Trim(); From = txtSender.Text.Trim(); Subject = txtSubject.Text.Trim(); MailServer = txtMailServer.Text.Trim(); Msg = txtMessage.Text.Trim(); try { MailMessage message = new MailMessage(From, To, Subject, Msg); SmtpClient mySmtpClient = new SmtpClient(MailServer); mySmtpClient.UseDefaultCredentials = true; mySmtpClient.Send(message); MessageBox.Show("Message has been sent to " + message.To.ToString(), "Mail", MessageBoxButtons.OK, MessageBoxIcon.Information); } It seems this is the event that is causing the issue , but I dont know why here is the exception I get from Windows when I click "send" : http://i.imgur.com/ZBUhk.png

Member Avatar
Member Avatar
+0 forum 9

So I have not generated the event for the picturebox but lets say the picture box is "private void pictureBox2_BeverageItems" followed by curly bracelts . I have been looking all over and couldnt find a correct implementation my guess is to probably use "streamreader" but im still fairly new to that..... thanks guys using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Threading; namespace SamsonPizza { public partial class Form1 : Form { public decimal[] beveragePrice = new //array is positional, water is 2.50, you index in it to get price decimal[] …

Member Avatar
Member Avatar
+0 forum 3

Alright so Im making this sports application where whenever the user clicks on a radio button with a designated sport a message apporiate to that sport will come up . I also want to have a 'different' picture show up for each different click of a corresponding sport . Would I just layer some textboxes and set autocheck property to false I tried doing that but nothing would display at all. also what would be te best way to store pictures to use them in this program should I grab a URL or store them in a local folder . …

Member Avatar
Member Avatar
+0 forum 1

So im having great difficulty trying to have my program move onto the GetInput() methods and so on ...can anyone point me in the right direction and tell me whats going on? [B]write a program that allows any number of values between 1 and 10 to be entered. When the user stops entering values, display a bar chart using asterisks showing the number of times each value was entered. When a given number is not entered, no asterisk should appear on that line [/B] [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace barChart { class Program { static …

Member Avatar
Member Avatar
+0 forum 8

Basically I have to do this: [B]Write a program that displays the number of students that can still enroll in a given class. Design your solution using parallel arrays.[/B] my problem is what loops should I use for this I dont think [B]for[/B] loops would be useful at all...I think foreach [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main() { string[] classes = new string[] { "CS150", "CS250", "CS270", "CS300", "CS350" }; byte[] currentEnrolled = new byte[] { 18, 11, 9, 4, 20 }; byte[] maxEnrollment = new byte[] { 20, …

Member Avatar
Member Avatar
+0 forum 6

ok so im making this console app in which I have to allow the user to enter any number of values then display orignal value , and then the percentage of the original value to the total. [B]My question is how do I initialize my memory locations correctly for a correct report to display ? [/B] also is my method of asking for more values [B]correct? [/B] [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class intReport { static void Main() { //declare memory locations // //user provided value int userInteger = 1; int userTotal= 1; //totals …

Member Avatar
Member Avatar
+0 forum 5

ok so im working on a application that displays the charges along with displaying the zip code. I seem to have a IO exception error for the console.clear() line. Is there anything else I need in order to display the charges along with zip code? Im thinking a nested if statement possibly? Thanks a lot everyone [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PackageDelivery { class Program { static void Main(string[] args) { int zipThatIamLookingFor; string inValue; double charges; bool moreData = true; int[] zipCode = new int[10] { 32309, 32398, 32345, 32211, 32215, 32312, 32317, 32308, …

Member Avatar
Member Avatar
+0 forum 6

The End.