Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 31,420 points

meaganicole

Favorite Answers12%
Answers589
  • Doesn't understand why my android program constantly crashes?...?

    Hi guys,

    I've currently in progress of creating this guessing number app on android eclipse, I'm not too sure why it constantly crashes when I press the guess button. Below is the source code that I created:

    http://pastebin.com/C65GJVXG

    Please can you provide suggestions or advice for code alterations?

    I'm currently using this app for practice on coding

    Many thanks,

    1 AnswerProgramming & Design7 years ago
  • Doesn't understand why my Android Java is giving me an error.....?

    Hi guys,

    I'm currently creating an android app of a number guessing game, what I'm trying to do is, I want the user to be able to look back at how many tries they have tried to guess the number until they reached to the correct number. Below is what I've got but it is giving me an error that I can't seem to solve:

    http://pastebin.com/EnUbsTRv

    Error:

    Count cannot be resolved or is not a field

    The type of the expression must be an array type but it resolved to List<Integer>

    I've been trying to solve this all day and can't figure out why, this app is for practice for when I get back into uni in October.

    Please can you provide me advice and suggestions to alter the code in some way?

    Many thanks,

    1 AnswerProgramming & Design7 years ago
  • I have a big problem with the android programming... Please can anyone help me?

    Hi guys,

    Does anyone know how to fix the android programming?

    Whenever I try to load up a triangle shape by following the tutorial, it either comes up with hello world or it comes up with an error saying "Unfortunately [file name] has stopped"

    I have tried changing the target version on the android sdk but I still can't figure out where I have gone wrong

    Please can anyone help me out?

    Thanks

    1 AnswerProgramming & Design8 years ago
  • Is this a normal temperature for a desktop computer?

    Hi guys,

    Is that a normal temperature for computer?

    I have just purchased a customised desktop computer from a company and when I started it up, installed the stuff that i needed such as motherboard and graphics card etc. Then when I come to test the computer out, inside the case is like 55 degrees hot.

    I don't have experience with hardware

    Thanks

    4 AnswersDesktops8 years ago
  • Help? what to talk about?

    Hi,

    I have been given an assignment task asking me to talk about the tasks that I undertook like creating a website and teaching at local schools.

    What can I talk about in the above tasks that I undertook?

    Thanks

    1 AnswerWords & Wordplay8 years ago
  • Where to put the abstract?

    hi

    I'm writing a report for an assignment and I'm wondering where I should put the abstract?

    Where do I put the abstract in my assignment?

    Thanks

    2 AnswersOther - Computers8 years ago
  • is there a way to add another entity on this database design?

    Hi,

    Is there a way to add another entity onto vehicles and fault report?

    Entity listing

    Customers

    Customer_No, Customer_Type, FirstName, LastName, House_No, Street_Name, City, Postcode, Tele_No, Mobile_No, Date_Of_Birth, Driver_Licence_No, Company_Name, Business_Type, Fax_No, Email_Address

    Outlets

    Outlet_No, Building_No, Street_Name, City, Postcode, Tele_No, Fax_No

    Vehicles

    Vehicle_Reg_No, Outlet_No, Make, Model, Engine_Size, Capacity, Current_Mileage, MOT_Date, Vehicle_Type, Hire_Rate

    Hire_Agreements

    Hire_No, Customer_No, Vehicle_Reg_No, Hire_Date, Termination_Date, Mileage_Before, Mileage_After

    Staffs

    Staff_No, Manager_No, Outlet_No, FirstName, LastName, House_No, Street_Name, City, Postcode, Tele_No, Mobile_No, Date_Of_Birth, Gender, NI_No, Date_Joined, Job_Title, Salary

    Fault_Reports

    Fault_No, Hire_No, Current_Mileage, Fault_Details, Staff_Checked

    Thanks

    1 AnswerProgramming & Design8 years ago
  • How do I avoid database design duplicates?

    Hi,

    Is there any way to avoid duplicates in this database design?

    Entity listing

    Customers

    Customer_No, Customer_Type, FirstName, LastName, House_No, Street_Name, City, Postcode, Tele_No, Mobile_No, Date_Of_Birth, Driver_Licence_No, Company_Name, Business_Type, Fax_No, Email_Address

    Outlets

    Outlet_No, Building_No, Street_Name, City, Postcode, Tele_No, Fax_No

    Vehicles

    Vehicle_Reg_No, Outlet_No, Make, Model, Engine_Size, Capacity, Current_Mileage, MOT_Date, Vehicle_Type, Hire_Rate

    Hire_Agreements

    Hire_No, Customer_No, Vehicle_Reg_No, Hire_Date, Termination_Date, Mileage_Before, Mileage_After

    Staffs

    Staff_No, Manager_No, Outlet_No, FirstName, LastName, House_No, Street_Name, City, Postcode, Tele_No, Mobile_No, Date_Of_Birth, Gender, NI_No, Date_Joined, Job_Title, Salary

    Fault_Reports

    Fault_No, Hire_No, Current_Mileage, Fault_Details, Staff_Checked

    Thanks

    2 AnswersProgramming & Design8 years ago
  • Are there any facetime with blackberry phones?

    Hi, I was wondering if there are any facetime with blackberry phones like Iphones?

    My sister wants to have Skype on her blackberry and she wants facetime on her phone, is there any way for my sister to have facetime on her blackberry phone?

    Thanks

    3 AnswersPDAs & Handhelds9 years ago
  • need help with date format validation c#?

    Does anyone know how to do a date format validation for c#? Heres my code below:

    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;

    namespace Calculate_reservation_totals

    {

    public partial class CalReservationTotals : Form

    {

    public CalReservationTotals()

    {

    InitializeComponent();

    }

    private void CalReservationTotals_Load(object sender, EventArgs e)

    {

    const int pricePerNight = 115;

    txtPrice.Text = pricePerNight.ToString("£.00");

    }

    private void butCalculate_Click(object sender, EventArgs e)

    {

    DateTime arrival;

    DateTime depart;

    if (String.IsNullOrEmpty(txtArrival.Text) || !DateTime.TryParse(txtArrival.Text, out arrival))

    {

    MessageBox.Show("Please enter a date");

    return;

    }

    arrival = arrival.Date;

    if (String.IsNullOrEmpty(txtDepart.Text) || !DateTime.TryParse(txtDepart.Text, out depart))

    {

    MessageBox.Show("Please enter a date");

    return;

    }

    depart = depart.Date;

    if (depart > DateTime.Today)

    {

    MessageBox.Show("The arrival date cannot be before the departure date");

    return;

    }

    if (arrival < depart)

    {

    MessageBox.Show("The departure date cannot be before the departure date");

    return;

    }

    if (arrival == depart)

    {

    MessageBox.Show("The arrival date and the departure date cannot be on the same date");

    return;

    }

    double nights = (arrival.Subtract(depart).TotalDays);

    double price = nights * 115;

    string numberOfNights = nights.ToString();

    txtNights.Text = numberOfNights.ToString();

    string totalPrice = price.ToString("£.00");

    txtTotal.Text = totalPrice.ToString();

    }

    private void butExit_Click(object sender, EventArgs e)

    {

    this.Close();

    }

    }

    }

    Please give me any suggestions for alteration.

    Thanks

    2 AnswersProgramming & Design9 years ago
  • need help, can't work out whats wrong with my programming?

    This is what I have done already:

    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;

    namespace Calculate_reservation_totals

    {

    public partial class CalReservationTotals : Form

    {

    public CalReservationTotals()

    {

    InitializeComponent();

    }

    private void CalReservationTotals_Load(object sender, EventArgs e)

    {

    const int pricePerNight = 115;

    txtPrice.Text = pricePerNight.ToString("£.00");

    }

    private void butCalculate_Click(object sender, EventArgs e)

    {

    double nights = 0;

    DateTime arrival;

    DateTime depart;

    if (String.IsNullOrEmpty(txtArrival.Text) || !DateTime.TryParse(txtArrival.Text, out arrival))

    {

    MessageBox.Show("Please input a date");

    return;

    }

    arrival = arrival.Date;

    if (String.IsNullOrEmpty(txtDepart.Text) || !DateTime.TryParse(txtDepart.Text, out depart))

    {

    MessageBox.Show("Please input a date");

    return;

    }

    depart = depart.Date;

    if (depart > DateTime.Today)

    {

    MessageBox.Show("The arrival date cannot be before the departure date");

    return;

    }

    if (arrival < depart)

    {

    MessageBox.Show("The departure date cannot be before the departure date");

    return;

    }

    if (arrival == depart)

    {

    MessageBox.Show("The arrival date and the departure date cannot be on the same date");

    return;

    }

    double duration = (arrival.Subtract(depart).TotalDays);

    txtNights.Text = duration.ToString();

    double price = nights * 115.00;

    txtTotal.Text = price.ToString();

    }

    private void butExit_Click(object sender, EventArgs e)

    {

    this.Close();

    }

    }

    }

    I'm expecting it to do the final calculations for the total cost, but it doesn't do it for me. I have already inputted the coding in but can't figure it out whats wrong.

    Please can anyone give me suggestions for alterations?

    thanks

    1 AnswerProgramming & Design9 years ago
  • Please can anyone help me with the c# program, I don't know whats wrong with it, won't run?

    The program won't run when I debug it, I don't know whats wrong with it, this is the code that I wrote:

    private void Conversions_SelectedIndexChanged(object sender, EventArgs e)

    {

    if (Conversions.Text == " miles to kilometres")

    {

    txtMetres.Text = "miles";

    lblFeet.Text = "kilometres";

    }

    else if (Conversions.Text == "kilometres to miles")

    {

    lblMetres.Text = "miles";

    lblFeet.Text = "kilometres";

    }

    else if (Conversions.Text == "feet to metres")

    {

    lblMetres.Text = "feet";

    lblFeet.Text = "metres";

    }

    else if (Conversions.Text == "metres to feet")

    {

    lblMetres.Text = "feet";

    lblFeet.Text = "metres";

    }

    else if (Conversions.Text == "inches to centimetres")

    {

    lblMetres.Text = "inches";

    lblFeet.Text = "centimetres";

    }

    else if (Conversions.Text == "centimetres to inches")

    {

    lblMetres.Text = "inches";

    lblFeet.Text = "centimetres";

    }

    }

    private void txtMeters_TextChanged(object sender, EventArgs e)

    {

    }

    private void butCal_Click(object sender, EventArgs e)

    {

    double miles = 0;

    double kilometres = 0;

    double feet = 0;

    double metres = 0;

    double inches = 0;

    double centimetres = 0;

    try

    {

    if (Conversions.Text == "miles to kilometres")

    {

    if (!double.TryParse(txtBox.Text, out miles))

    {

    MessageBox.Show("Please enter a number");

    }

    kilometres = miles * 1.609;

    txtBox.Text = kilometres.ToString();

    }

    else if (Conversions.Text == "kilometres to miles")

    {

    if (!double.TryParse(txtBox.Text, out kilometres))

    {

    MessageBox.Show("Please enter a number");

    }

    miles = kilometres * 0.6214;

    txtBox.Text = miles.ToString();

    }

    else if (Conversions.Text == "feet to metres")

    {

    if (!double.TryParse(txtBox.Text, out feet))

    {

    MessageBox.Show("Please enter a number");

    }

    metres = feet * 0.3048;

    txtBox.Text = metres.ToString();

    }

    else if (Conversions.Text == "metres to feet")

    {

    if (!double.TryParse(txtBox.Text, out metres))

    {

    MessageBox.Show("Please enter a number");

    }

    feet = metres * 3.2808;

    txtBox.Text = feet.ToString();

    }

    else if (Conversions.Text == "inches to centimetres")

    {

    if (!double.TryParse(txtBox.Text, out inches))

    {

    MessageBox.Show("Please enter a number");

    }

    centimetres = inches * 2.54;

    txtBox.Text = centimetres.ToString();

    }

    else if (Conversions.Text == "centimeters to inches")

    {

    if (!double.TryParse(txtBox.Text, out centimetres))

    {

    MessageBox.Show("Please enter a number");

    }

    inches = centimetres * 0.3937;

    txtBox.Text = inches.ToString();

    }

    }

    catch

    {

    MessageBox.Show("This is invalid data");

    }

    }

    private void txtFeet_TextChanged(object sender, EventArgs e)

    {

    }

    private void butExit_Click(object sender, EventArgs e)

    {

    this.Close();

    }

    }

    }

    Please can anyone give me any suggestions for alteration?

    Thanks

    1 AnswerSoftware9 years ago
  • Need help with my program, can't get it to work?

    I'm using c# visual studio, I created this program and I can't seem to get it working:

    private void Conversions_SelectedIndexChanged(object sender, EventArgs e)

    {

    if (Conversions.Text == "miles to kilometres")

    {

    lblMetres.Text = "miles";

    lblFeet.Text = "kilometres";

    }

    else if (Conversions.Text == "kilometres to miles")

    {

    lblMetres.Text = "miles";

    lblFeet.Text = "kilometres";

    }

    else if (Conversions.Text == "feet to metres")

    {

    lblMetres.Text = "feet";

    lblFeet.Text = "metres";

    }

    else if (Conversions.Text == "metres to feet")

    {

    lblMetres.Text = "feet";

    lblFeet.Text = "metres";

    }

    else if (Conversions.Text == "inches to centimetres")

    {

    lblMetres.Text = "inches";

    lblFeet.Text = "centimetres";

    }

    else if (Conversions.Text == "centimetres to inches")

    {

    lblMetres.Text = "inches";

    lblFeet.Text = "centimetres";

    }

    }

    private void txtMeters_TextChanged(object sender, EventArgs e)

    {

    }

    private void butCal_Click(object sender, EventArgs e)

    {

    double miles = 0;

    double kilometres = 0;

    double feet = 0;

    double metres = 0;

    double inches = 0;

    double centimetres = 0;

    try

    {

    if (Conversions.Text == "miles to kilometres")

    {

    if (!double.TryParse(txtBox.Text, out miles))

    {

    MessageBox.Show("Please enter a number");

    }

    kilometres = miles * 1.609;

    txtBox.Text = kilometres.ToString();

    }

    else if (Conversions.Text == "kilometres to miles")

    {

    if (!double.TryParse(txtBox.Text, out kilometres))

    {

    MessageBox.Show("Please enter a number");

    }

    miles = kilometres * 0.6214;

    txtBox.Text = miles.ToString();

    }

    else if (Conversions.Text == "feet to metres")

    {

    if (!double.TryParse(txtBox.Text, out feet))

    {

    MessageBox.Show("Please enter a number");

    }

    metres = feet * 0.3048;

    txtBox.Text = metres.ToString();

    }

    else if (Conversions.Text == "metres to feet")

    {

    if (!double.TryParse(txtBox.Text, out metres))

    {

    MessageBox.Show("Please enter a number");

    }

    feet = metres * 3.2808;

    txtBox.Text = feet.ToString();

    }

    else if (Conversions.Text == "inches to centimetres")

    {

    if (!double.TryParse(txtBox.Text, out inches))

    {

    MessageBox.Show("Please enter a number");

    }

    centimetres = inches * 2.54;

    txtBox.Text = centimetres.ToString();

    }

    else if (Conversions.Text == "centimeters to inches")

    {

    if (!double.TryParse(txtBox.Text, out centimetres))

    {

    MessageBox.Show("Please enter a number");

    }

    inches = centimetres * 0.3937;

    txtBox.Text = inches.ToString();

    }

    }

    catch

    {

    MessageBox.Show("This is invalid data");

    }

    }

    private void txtFeet_TextChanged(object sender, EventArgs e)

    {

    }

    private void butExit_Click(object sender, EventArgs e)

    {

    this.Close();

    }

    }

    }

    Please can anyone give me any suggestions to alter it?

    Thanks

    1 AnswerProgramming & Design9 years ago
  • My combo box won't work on c# visual studio, please can anyone help me?

    I'm currently struggling to get my combo box working, here is what I coded:

    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;

    namespace Convert_lengths

    {

    public partial class ConvertLengths : Form

    {

    public ConvertLengths()

    {

    InitializeComponent();

    }

    private void Conversions_SelectedIndexChanged(object sender, EventArgs e)

    {

    //String text;

    Conversions.Items.Add("miles to kilometers");

    Conversions.Items.Add("kilometers to miles");

    }

    }

    }

    Please can anyone give me suggestions to alter it?

    Thanks

    1 AnswerProgramming & Design9 years ago
  • the calculation won't add up in c# visual studio, I'm trying to create convert temperature program?

    Please help me out, it adds up but not the right answer, I can't seem to figure it out, this is the code I created:

    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;

    namespace Convert_temperatures

    {

    public partial class ConvertTemp : Form

    {

    public ConvertTemp()

    {

    InitializeComponent();

    }

    private void FahToCel_CheckedChanged(object sender, EventArgs e)

    {

    }

    private void butCal_Click(object sender, EventArgs e)

    {

    double Fahrenheit = 0;

    double Celsius = 0;

    if (FahToCel.Checked)

    {

    if (!double.TryParse(txtCel.Text, out Celsius))

    {

    double result = (Fahrenheit - 32) * 5 / 9;

    txtCel.Text = result.ToString();

    }

    }

    else if (CelToFah.Checked)

    {

    if (!double.TryParse(txtFah.Text, out Fahrenheit))

    {

    double result = (Celsius * 9 / 5) + 32;

    txtFah.Text = result.ToString();

    }

    }

    }

    private void butExit_Click(object sender, EventArgs e)

    {

    this.Close();

    }

    }

    }

    There are no errors shown.

    Please give me suggestions to alter it.

    Thanks

    3 AnswersProgramming & Design9 years ago
  • I need help with visual studio, I don't know where I've gone wrong?

    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;

    namespace Convert_grades

    {

    public partial class convertGrades : Form

    {

    public convertGrades()

    {

    InitializeComponent();

    }

    private void butCon_Click(object sender, EventArgs e)

    {

    int numberGrade;

    Convert.ToInt32(numberGrade)

    if (numberGrade >= 88 && <= 100)

    {

    txtLetterGrade = "A";

    }

    if (numberGrade >= 80 && <= 87)

    {

    txtLetterGrade = "B";

    }

    if (numberGrade >= 67 && <= 79)

    {

    txtLetterGrade = "C";

    }

    if (numberGrade >= 60 && <= 67)

    {

    txtLetterGrade = "D";

    }

    if (numberGrade <= 60)

    {

    txtLetterGrade = "F";

    }

    }

    }

    }

    Please give me advice or suggestions as I don't know where I've gone wrong?

    thanks

    2 AnswersProgramming & Design9 years ago
  • Need help with c# visual studio, it won't compile and I don't know whats wrong with it?

    This is what I've got:

    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;

    namespace Convert_grades

    {

    public partial class convertGrades : Form

    {

    public convertGrades()

    {

    InitializeComponent();

    }

    private void butCon_Click(object sender, EventArgs e)

    {

    int numberGrade;

    Convert.ToInt32(txtLetterGrade)

    if (numberGrade >= 88 && <= 100)

    {

    txtLetterGrade = "A";

    }

    if (numberGrade >= 80 && <= 87)

    {

    txtLetterGrade = "B";

    }

    if (numberGrade >= 67 && <= 79)

    {

    txtLetterGrade = "C";

    }

    if (numberGrade >= 60 && <= 67)

    {

    txtLetterGrade = "D";

    }

    if (numberGrade <= 60)

    {

    txtLetterGrade = "F";

    }

    }

    }

    }

    It has given me 30 errors and I don't know whats wrong with it?

    Please can anyone help me?

    Thanks

    1 AnswerProgramming & Design9 years ago
  • Do I need a Top-Up degree to gain a BSc degree?

    Hi guys,

    I'm currently studying a computing course foundation degree at one of the universities in the UK, I'm wondering if I need to find a Top-Up degree to continue my studies to gain a BSc degree?

    Thanks

  • how much is £41,250 a week or a month?

    Hi,

    I want to know how to calculate a year salary £41,250 into a week or a month?

    thanks

    3 AnswersOther - Education9 years ago