my 1st friend gave me 1000 and 2nd gave me 500 i have loos
1000 rupees then i purchase some thing with the cost of 300
and gave 100 100 both friends 1st friend remaining 900 and
2nd remaining 400 900+400+300=1600 why

Answer Posted / surya

in total u got 1500. then u lost 1000 which means u have 500 left.then u purchased for 300. so u have 200 left.now u gave 100 to each friend.now u owe 900 to the first one and 400 to the second. which means u have to give 1300 and not 1600. u shouldnt add that 300 as u spent it from the money that u already got from ur friends.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I am Recording the QTP Script..the Script is below VbWindow("mdiPP").VbWindow("frmPOSOLocking").ActiveX ("SSTab").VbListView("lstPO").SetItemState "272 [10-11]", micChecked. After when when Run then give error property not found.

3331


Wen ever i use IE=createObject (Ineternetexplorer.application) QTP just navigates to the URL mentioned but doesn't recognise the USErname and Password field so the test fails.. But wen i just record and use system.util "iexplore" the code recognises and the tst passes, but here it works fine sometimes and sometimes the test just fails and aftersometime i run it works.. so its not consistent,,, any suggestion

2586


i have SAP B1 in my work area When i am try to hold the particular item the following ERRORS display in my System (This entry already exists in the following tables '' (AIT1) (ODBC -2035) [Message 131-183])

4433


hii..i am doin a project called Forecaster..wat it does is it asks user to enter a zip code..then it establishes urlconnection with a weather website n fetches data n data is converted into graphical representation..but it doesnt show any output..i am not able it figure out the reason..can u plzzzz help me out..i am givin u code import java.io.*; import java.awt.*; import java.net.*; import java.awt.image.*; import java.awt.event.*; public class Forecast extends Frame { OkCancelDialog textDialog; BufferedImage image = null; public static void main(String[] args) { new Forecast(); } public Forecast() { String zip =""; File zipFile = new File("zip.txt"); String hiTemperature[] = new String[4]; String loTemperature[] = new String[4]; try { if(zipFile.exists()){ FileReader filereader = new FileReader("zip.txt"); BufferedReader bufferedreader = new BufferedReader(filereader); zip = bufferedreader.readLine(); } else { textDialog = new OkCancelDialog(this, "Enter your five-digit zip code", true); textDialog.setVisible(true); zip = textDialog.data.trim(); FileOutputStream fileoutputstream = new FileOutputStream("zip.txt"); fileoutputstream.write(zip.getBytes()); } int character; URL url = new URL ("http://www.srh.noaa.gov/zipcity.php?inputstring=" + zip); URLConnection urlconnection = url.openConnection(); InputStream in = urlconnection.getInputStream(); String input = ""; String hiSearch; String loSearch; String inchar; char[] cc = new char[1]; while ((character = in.read()) != -1) { char z = (char)character; cc[0] = z; inchar = new String(cc); input += inchar; } in.close(); if(input.indexOf("Hi ") >= 0){ hiSearch = "Hi "; } else{ hiSearch= "Hi: "; } int currentPosition = 0; for(int loopIndex = 0; loopIndex < 4; loopIndex++){ int location = input.indexOf(hiSearch, currentPosition); int end = input.indexOf("°", location); hiTemperature[loopIndex] = input.substring(location + hiSearch.length(), end); currentPosition = end + 1; } if(input.indexOf("Lo ") >= 0){ loSearch = "Lo "; } else{ loSearch= "Lo: "; } currentPosition = 0; for(int loopIndex = 0; loopIndex < 4; loopIndex++){ int location = input.indexOf(loSearch, currentPosition); int end = input.indexOf("°", location); loTemperature[loopIndex] = input.substring(location + loSearch.length(), end); currentPosition = end + 1; } boolean evening = false; if(input.indexOf(loSearch) < input.indexOf(hiSearch)){ evening = true; hiTemperature[3] = hiTemperature[2]; hiTemperature[2] = hiTemperature[1]; hiTemperature[1] = hiTemperature[0]; } image = new BufferedImage(225, 201, BufferedImage.TYPE_INT_RGB); Graphics2D g = image.createGraphics(); g.setColor(Color.white); g.fillRect(0, 0, 224, 201); g.setColor(Color.gray); for(int loopIndex = 0; loopIndex < 21; loopIndex++){ g.drawLine(25, loopIndex * 10, 224, loopIndex * 10); g.drawLine(loopIndex * 10 + 25, 0, loopIndex * 10 + 25, 199); } g.setColor(Color.blue); Font font = new Font("Courier", Font.PLAIN, 18); g.setFont(font); for(int loopIndex = 20; loopIndex < 200; loopIndex += 20){ g.drawString(String.valueOf(100 - loopIndex / 2), 0, loopIndex + 5); } g.setColor(Color.red); if(!evening){ g.drawOval(65 - 4, 200 - (Integer.parseInt( hiTemperature[0]) * 2) - 4, 8, 8); } g.drawOval(105 - 4, 200 - (Integer.parseInt( hiTemperature[1]) * 2) - 4, 8, 8); g.drawOval(145 - 4, 200 - (Integer.parseInt( hiTemperature[2]) * 2) - 4, 8, 8); g.drawOval(185 - 4, 200 - (Integer.parseInt( hiTemperature[3]) * 2) - 4, 8, 8); if(!evening){ g.drawLine(65, 200 - (Integer.parseInt( hiTemperature[0]) * 2), 105, 200 - (Integer.parseInt(hiTemperature[1]) * 2)); } g.drawLine(105, 200 - (Integer.parseInt(hiTemperature[1]) * 2), 145, 200 - (Integer.parseInt(hiTemperature[2]) * 2)); g.drawLine(145, 200 - (Integer.parseInt(hiTemperature[2]) * 2), 185, 200 - (Integer.parseInt(hiTemperature[3]) * 2)); g.setColor(Color.blue); g.drawOval(65 - 4, 200 - (Integer.parseInt( loTemperature[0]) * 2) - 4, 8, 8); g.drawOval(105 - 4, 200 - (Integer.parseInt( loTemperature[1]) * 2) - 4, 8, 8); g.drawOval(145 - 4, 200 - (Integer.parseInt( loTemperature[2]) * 2) - 4, 8, 8); g.drawOval(185 - 4, 200 - (Integer.parseInt( loTemperature[3]) * 2) - 4, 8, 8); g.drawLine(65, 200 - (Integer.parseInt(loTemperature[0]) * 2), 105, 200 - (Integer.parseInt(loTemperature[1]) * 2)); g.drawLine(105, 200 - (Integer.parseInt(loTemperature[1]) * 2), 145, 200 - (Integer.parseInt(loTemperature[2]) * 2)); g.drawLine(145, 200 - (Integer.parseInt(loTemperature[2]) * 2), 185, 200 - (Integer.parseInt(loTemperature[3]) * 2)); g.setColor(Color.white); g.fillRect(55, 160, 140, 30); g.setColor(Color.blue); g.drawRect(55, 160, 140, 30); font = new Font("Courier", Font.PLAIN, 12); g.setFont(font); g.drawString("Four-Day Forecast", 65, 172); font = new Font("Courier", Font.PLAIN, 9); g.setFont(font); g.drawString("Source: Nat. Weather Srvce.", 58, 185); setTitle("The Forecaster"); setResizable(false); setSize(250, 240); setVisible(true); this.addWindowListener(new WindowAdapter(){ public void windowClosing( WindowEvent e){ System.exit(0); } } ); } catch (Exception e) { System.out.println(e.getMessage()); } } public void paint(Graphics g) { if(image != null){ g.drawImage(image, 10, 30, this); } } } class OkCancelDialog extends Dialog implements ActionListener { Button ok, cancel; TextField text; public String data; OkCancelDialog(Frame hostFrame, String title, boolean dModal) { super(hostFrame, title, dModal); setSize(280, 100); setLayout(new FlowLayout()); text = new TextField(30); add(text); ok = new Button("OK"); add(ok); ok.addActionListener((ActionListener)this); cancel = new Button("Cancel"); add(cancel); cancel.addActionListener(this); data = new String(""); } public void actionPerformed(ActionEvent event) { if(event.getSource() == ok){ data = text.getText(); } else { data = ""; } setVisible(false); } }

1912


I have got one job selection order from DECON ENGG(HRD), he told me to send 2000 rs of demand draff i have send the demand draff after some time a got a job selection order in banglore but he have written that u have to give 550 rs of Guidency fees in bangalore i dont understant what to do

2098






Answers for Complete This Song B_C_A_A _IL K_A KA_E, S__AN J__E B__D_ J__E

2719


when will we use lsmw , bdc and bapi? which will be easy to use and which is used for which type of data

2012


How can be avoid the Error while being Human we do mistakes???

2090


Jetking is C C

2193


Sir, I apply sbi clerk exams(07/09/09)But I did a mistake to enter my date of birth(correct 04.01.1985 / wrong 04.01.1984).please give me suggestions please. Thanking you, Bhushan.B

1646


hi pp gurus, when i do the goods receipt through transiction MIGO the system, gives following error. I filled up all information that needs MIGO transiction. the error is: "Account determination for entry INT GBB___AUF 7900 not possible." can any one suggest me what to do now?

2269


when i open the system error dialog box come memory could not be read some.

2045


What is the difference between return code and completion code. When i was searching in the direct for the problem, the following errors displayed. Please can any1 explain these. Completion Code => 4 Message Id => XXDR012I Short Text => XDR field overflow. Key=SER. Len=8. Completion Code => 8 Message Id => XSQF009I Short Text => Sys call open() failed.Filename=/opt/apps/cdt3/USA/outbound/CD810O.errno=17. Completion Code => 8 Message Id => XCPR010I Short Text => Open failed for copy in OPEN_DEST_DATA. Errno=17. can you explain those 3 completion codes and also with difference between return code and completion code

10563


Dear HCM Gurus: I am facing a problem in PCR as per decisive about deduction wage type restricted as per Government rules that if an employee payment period is < then 15 days then deduction are not required to made from employee, Nomenclature of PCR is: RTE=TKDIVI RTE/2 RTE?TKSOLL < PPPAR U Unpaid absences duing Payroll Period *ADDWT U THEN RTE=TASOLL RTE-GAAU04 RTE*2 RTE?TKDIVI < ADDWT& Variable Table = ADDWT* OT TABLE > ADDWT* OT TABLE SO aforesaid mentioned PCR is applied so when employee Leaving action has been performed on 01.10.2010 and rentry into company is performed on dated 11.10.2010 So sytem is not displaying deduction wage type in LPC but if we perform leaving action on 16.10.2010 then all deduction displayed proportionately because from 01.10.2010 to 16th payment days fullfills but client is insisted that employee leaved company on 01.10.2010 and rejoin company on 11.10.2010 and by this way he worked 21 days in this month thus payment period is not less rather more than 15 days and system should have made deductions. Kindly guide me that how included PCR with Rejoining into comapny so pleases explain nomencalture of PCR if an employee rejoin the company and his payment period fullfill requirement. Kindly help Regards Barket Ali Zafar SAP HR Consultant Siemens Engineering Co Ltd PIFRA Project ,Islamabad +92-300-5521524

2530


how to overload main method in java?

2512