Sie sind auf Seite 1von 4

//************************************** // Name: GUI Payroll System // Description:A simple GUI Payroll System in Java that I wrote during my space

time. If you find my work useful send me an email at jakerpomperada@yahoo.com. I am al so accepting programming jobs, IT consultancy at a very affordable price and fas t service to my clients. Please contact me at my email address. Be one of my fri ends in facebook my address is jakerpomperada@yahoo.com. People here in the Phil ippines who wish to contact me can reach me through my mobile number 09993969756 . Thank you very much and Happy Programming. Regards, Mr. Jake R. Pomperada, MAED - Instructional Technology Programmer, Web Developer/Designer and Computer / Electronics Technician // By: Jake Rodriguez Pomperada // //This code is copyrighted and has// limited warranties.Please see http://www.Pl anet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=6816&lngWId=2//for detail s.//************************************** import javax.swing.*; import java.text.DecimalFormat; public class MethodsScroller { // begin class public static void main (String args[] ) { // begin method main String myOutput_s ; //String prelimGr_s, midtermGr_s, endtermGr_s; double prelimGr_d, midtermGr_d, endtermGr_d; DecimalFormat precisionTwo = new DecimalFormat("0.0#"); prelimGr_d = Double.parseDouble (JOptionPane.showInputDialog ("Pls enter prelim grade: ") ); midtermGr_d = Double.parseDouble (JOptionPane.showInputDialog ("Pls enter midterm grade: ") ); endtermGr_d = Double.parseDouble (JOptionPane.showInputDialog ("Pls enter endterm grade: ") ); double myFinalGr_d = finalGr_d(prelimGr_d, midtermGr_d, endtermGr_d); myOutput_s = "Firstname Lastname\n" + "\n your prelim grade is " + precisionTwo.format(prelimGr_d) + "\n your midterm grade is " + precisionTwo.format(midtermGr_d) + "\n your endterm grade is " + precisionTwo.format(endtermGr_d) + "\n and your final grade is " + precisionTwo.format(myFinalGr_d)+ "\n"; // just to illustrate scrolling myOutput_s = myOutput_s + "\n You need to scroll down for more ...\n"; int LC; for (LC=1; LC<=10; LC++) myOutput_s = myOutput_s + "\n Hello Garcie, will I win? ..." + LC + "\n"; myOutput_s = myOutput_s + "\n I don't know, but I know that LC=" + LC ; JTextArea myJTArea = new JTextArea(10,15); // 10 rows, 15 columns JScrollPane myScroller = new JScrollPane(myJTArea);

myJTArea.setText(myOutput_s); JOptionPane.showMessageDialog (null, myScroller, "Application MethodScroller.java by ...", JOptionPane.INFORMATION_MESSAGE); System.exit (0); } // end of method main public static double finalGr_d(double plGr_d, double mtGr_d, double etGr_d) // n o ; { // begin method finalGr_d return ( plGr_d*0.3 + mtGr_d*0.3 + etGr_d*0.4 ) ; } // end method finalGr_d } // end of class Other 107 submission(s) by this author

Report Bad Submission Use this form to notify us if this entry should be deleted (i.e contains no code , is a virus, etc.). This submission should be removed because: Your Vote! What do you think of this code(in the Advanced category)? (The code with your highest vote will win this month's coding contest!) Excellent Good Average Below Average Poor See Voting Log Other User Comments There are no comments on this submission. Add Your Feedback! Note:Not only will your feedback be posted, but an email will be sent to the cod e's author from the email account you registered on the site, so you can corresp ond directly. NOTICE: The author of this code has been kind enough to share it with you. If y ou have a criticism, please state it politely or it will be deleted. For feedback not related to this particular code, please click here. Name: Email: mraffyzzle@gmail.com Comment: Quick search for Search Term Welcome New User Logout Latest postings for Java/ Javascript. Log4jSample By Goyun Info on 6/3 Scientific Calculator

By R2Rusiru on 5/24 Moving Ball around Desktop By R2Rusiru on 5/23 Banking System GUI By shantanu ghosh on 5/19 StatesToAbbrevs .java By joseph schaffer on 5/16 Click here to see a screenshot of this code! Send Mail Using JSP By Ajay Shilwant on 5/13 (Screen Shot) BookCricket By shantanu ghosh on 5/12 FTPGUI By shantanu ghosh on 5/11 Pascal Triangle By shantanu ghosh on 5/11 Calculator By shantanu ghosh on 5/11 Click here to see a screenshot of this code! xml-hta-html to applicationsbet arodlewis2011co yright By ROD LEWIS on 5/9 (Screen Shot) Click here to see a screenshot of this code! slideNslide By rahul sonker on 5/9 (Screen Shot) Click here to see a screenshot of this code! Upload and Retrieve Photo (images) using JSP By Ajay Shilwant on 5/7 (Screen Shot) Click here to see a screenshot of this code! TutorialPath By Evgheni C on 5/4 (Screen Shot) Input and Output Library Files Using Savitch Library File By Jake Rodriguez Pomperada on 4/18 Collection of Java Activities By Walter Savitch By Jake Rodriguez Pomperada on 4/18 GUI Payroll System

By Jake Rodriguez Pomperada on 4/9 Deposit Annual Interest Solver By Jake Rodriguez Pomperada on 4/9 Monthly Loan Solver 1.0 By Jake Rodriguez Pomperada on 4/9 Annual Income Tax Solver 1.0 By Jake Rodriguez Pomperada on 4/9 Basic Input and Output By Jake Rodriguez Pomperada on 4/9 Prelim Grade Solver By Jake Rodriguez Pomperada on 4/9 Overdue Books Solver By Jake Rodriguez Pomperada on 4/9 Hospital Bill Solver By Jake Rodriguez Pomperada on 4/9 Simple Grade Solver By Jake Rodriguez Pomperada on 4/9 Click here to put this ticker on your site! Add to Active Desktop Add this ticker to your desktop! Daily Code Email Click here to join the 'Code of the Day' mailing list! This Site on CD Over 7,000 submissions on a super fast CD! Get Paid To Code Now taking registrations on Rent a Coder!

Das könnte Ihnen auch gefallen