Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now 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.

Kta
simple math running total problem please help any programming?
I V T
-----------
1 6 6
2 1 7
3 6 13
4 2 15
i: array index
v:value
t:running total
i need to select the appropriate index for the given running total , for example
12 is the given running total so the appropriate index is 3 i will put my code block bellow its not working , anyone one can help me solve this pleaseeeee:)
int running_total = 0;
boolean v=false;
for(int x=0;x<=array.length;x++){
running_total+=array[x];
if(running_total>=12){
if(v==false){
v = true;
othermethods(x);
}
}
2 AnswersProgramming & Design8 years agoinsecure girlfirend drive me crazy , please help !?
my girl friend is 45 and i am 24 , have been living with her for last 3 years , she is so insecure god knows why , i have no intention to cheat on her , and i have never , why she is always accusing me that i am lying when i am actually telling the truth , i am waiting for her to change and putting up with it for last 3 year , do you thing she will ever change or this is what i have to live with for the rest of my life , or just leave her and live peacefully ? what should i do , i am so sick of accused of something i have never done , its not only once or twice , its many times , she is saying that i don't give her enough information thats why she don't trust me .
4 AnswersOther - Family & Relationships8 years agogirlfriend insecure drivin me nuts , please help?
iPlease help .
I am 23 and and my girlfriend is twice my age, and when we met age didn't seem to be a problem , but now after 3 years (we living together for 3 years) she driving me nuts with her extreme insecurity.
she had heaps of relationships before she met me, all cheaters and losers , that's what she told me , i am not going to cheat on her , i don't cheat , but she just don't seem to get it , i will give an example what happen this week ,
* Monday:
i went to Uni and in the break time i was getting out of the class and walking towards the canteen and my class mate (male) wanted to borrow a smoke from me , i gave him and had a little conversation about the class , and he asked me where you going ? i said i am going to canteen , he said there is a Japaneses takeaway its really nice and cheap , i said ok i will try it , walking to the take away shop with that class mate and called my girlfriend and i said i am going to have lunch .
10 min later she called me back asked me what time the class finish , i forgot the time and i asked the class mate , then she asked me who did you ask? i said my class mate and she said "You didn't told me you going out to have lunch with your friends , is it a girl or boy ? "
i said boy , she said how do i know that is a boy , i said you can hear his voice " she started to scream at me saying i am so secretive i don't tell things and she don;t trust me , i could be with a girl and so on..
2. Tuesday :
morning i went to have a hair cut and came home , i had classes afternoon , so i went to have a shower , she came and open the shower and told me , why do you having shower now ? i sad i had a hair cut so i got hair on my neck its so itchy , she said that's " i don't know i find it really strange "
i went to uni and i had 2 lectures and one lab , so i was in the last class that was a lab she called me , i said i am in the class , i will call you when i finish , she said " no you are lying you are not in the university " she looked at my old timetable and in that there is no labs , i said that is an old time table , i will print out the new one and give it to you , then she was like , and i said why did you told me i am lying , i am so sick of hearing you all the time calling me a liar , then a big argument and a fight
this is like happening every day the reason deep down , she is insecure and she blaming me i dont make her feel secure enough ,
i am sick of it , if it is once in a while its ok , every day i have put up with it , please tell me is it time for me to leave or stick and try to make work as i always did ?
5 AnswersOther - Family & Relationships8 years agoI am 23 and my girl friend is 45 she asking me to tell my patents about the relationship?
I have been with her for 2 years , and she reckon its the time let my patents know that I am seeing her , my perents never met her or talk to her , what should I do ?
1 AnswerSingles & Dating8 years agoInsecure prob help plz ?
Last time when I had fight with my gf , we had break up , then after a week later I got online dating sites and started to talk to people , after 2 weeks later , we got back together , then I deleted my dating sites profiles , and told her , 2 months later now she is still thinking I'm talking to some one else when I'm not , how can I solve this ?
5 AnswersMarriage & Divorce9 years agoPlease help , my gf insecure ?
Hi I'm 23 , and my gf is 44 , big age gap but I have been with her for 2 and half years , bug we always have fight , every time we have fight the reason deep down is she is insecure , I never cheated on her so how come she can be like that , she is blaming me that I'm no making her feel secure enuf
Who is right here , please help
4 AnswersMarriage & Divorce9 years agoRacial discrimination in job application ? ?
How Can I know if my job application has been rejected because of my race ? and what should I do about it ?
6 AnswersLaw & Ethics9 years agoi missed the exam today thinking the exam on tomorow what can i do?
i am studying in RMIT University and i was thinking i got an exam tomorrow ,but just checked the timetable to see what time the exam and what building is that in , and just found that the exam was on today , and i missed it , i feel horrible and helpless
what can i do???
3 AnswersStandards & Testing9 years agoplease help with decryption?
the following key P=C-(9-5/(8-3)x2+6) decrypted the following message.
KVC KWZZ PS QCAWBU HC HVWG KSSY OCBTSFSBQS OH QFCK B QOGWBC
how do i do it , i got no idea about decryption :(
please some one help , i will appreciate it :)
1 AnswerSecurity9 years agorelationship with older woman , help me to make decision ?
after this month this will be two years since i met her , i' am 23 and she is 45 i don't know what but something that she got attracted to me , so we met and its been developed to relationship and its been almost two years , but we are still together but doesn't mean we are happy , since we met we are having arguments , fights , break ups (abt 100 times) , so on , but still managed to be together but now i totally moved in with her , my parent don't know about this whole thing , pretty much all the fights we have about "why can't i tell my parents about her" , well how can i tell my mom that i'm seeing some one 1 year older than my mom ? , so i am not sure what to do , we having a lot fights about this lately , what should i do ?
1 AnswerSingles & Dating9 years agoDatabase administration requirements help?
I'm studying Undergraduate in IT ATM , i love database field and I'm so good at it when I compare other subjects that I take , so I decided to go in database field but I wanted to know what are the requirements to be a Database Administrater ?is a undergraduate degree enough ? Or do I have to do professional courses as well ?
1 AnswerProgramming & Design10 years agoDBA requirements help?
I'm studying Undergraduate in IT ATM , i love database field and I'm so good at it when I compare other subjects that I take , so I decided to go in database field but I wanted to know what are the requirements to be a Database Administrater ?is a undergraduate degree enough ? Or do I have to do professional courses as well ?
1 AnswerCorporations10 years agoWho is more racist generation X or Y ? ?
I reckon generation x is more racist than y and most of em teach their kids to be a racist ? and what's make people to be racist ?
6 AnswersOther - Cultures & Groups10 years agojava Assignment help Please, numberformatexception?
i'm creating a payroll , it has to read employee data from a txt file and calculate the earnings and print the wage on the payslip , i need hep with reading data from txt file and printing data , eg:- employee data.txt has empID Hours rate
1223 27 40
2113 25 35 and the print has to be the same data with calculated wages please help me i will really appreciate it :)
thanks for your help
and calculate the wage and print it,
import java.util.*;
import java.io.*;
public class try1
{
public static void main(String args[])
throws IOException,
NumberFormatException {
try2 obj=new try2();
// Employee ID Number
String empID;
// Employee Hours Worked
double hours;
// Employee's Pay Rate
double payRate;
// Employee's wages
double wages;
// Set a total variable to store total wages
double total = 0.0;
// Declare a file for input
BufferedReader dataFile;
// Declare a payFile to print out
PrintWriter payFile;
// Open the payRoll file
dataFile = new BufferedReader(new FileReader("employeeData.txt"));
payFile = new PrintWriter(new FileWriter("payfile.txt"));
/** Process the input on dataFile & outputting results on payFile
Read the employee ID Number */
empID = dataFile.readLine();
while (empID != null) {
payRate = Double.valueOf(dataFile.readLine(
)).doubleValue();
hours = Double.valueOf(dataFile.readLine(
)).doubleValue();
wages = obj.CalcPay(payRate, hours);
total = total + wages;
// Put results into payFile
payFile.println(empID + " " + payRate + " " + hours + " " + wages + " ");
empID = dataFile.readLine();
}
dataFile.close();
payFile.close();}}
2 AnswersProgramming & Design10 years agojava assignment help please?
i'm creating a payroll , it has to read employee data from a txt file and calculate the earnings and print the wage on the payslip , i need hep with reading data from txt file and printing data , eg:- employee data.txt has empID Hours rate
1223 27 40
2113 25 35 and the print has to be the same data with calculated wages please help me i will really appreciate it :)
thanks for your help
and calculate the wage and print it as
1 AnswerProgramming & Design10 years agodriver class to out put the data into a txt file ,java?
please anyone tell me how to create a driver class to out put data and save into a txt file
please help me i will appreciate it
1 AnswerProgramming & Design10 years agovalidating double in java with decimal separator?
i couldn't find anywhere how to validate a double number with decimal separator , it need to accept a number with or without decimal separator,and return false if any other characters, only accept digit and decimal separator ,
please help me i will really appreciate it:)
4 AnswersProgramming & Design10 years agowhat is the best and cheap way to postage inside Australia?
hi i'm selling stuffs on eBay , whats the cheapest way for sending parcels inside Australia ?please give me some ideas :)
3 AnswersVictoria (Melbourne)10 years agosoftware developer asking questions to a customer?
what kind of questions that a software developer can as a customer ?
and the questions that have to be useful for the developing for example if that is a cash flow management software what are the questions that i can ask to the customer
?
give me some examples ?
1 AnswerProgramming & Design10 years agorevers the integer on java?
i want to revers a 4 digit integer ex: 2345 have to be reversed as 5432 , can't use array and can't convert it to string , have to use maths operates like % , / , can anyone solve it
3 AnswersProgramming & Design10 years ago