Applications Programming ( Basic JAVA ) Oct. 16, 2012 Jason H. Carale Inf114 Mrs. Trillanes Professor substance java.io.*; normal anatomy Fees { overt stable strike down main(String[] args)throws IOException{ BufferedReader stimulant drug = new BufferedReader( new InputStreamReader( System.in) ); analysis perUnit = 720.00; double labFee = 6500.25; double misFee = 7100.50; System.out.println(How galore(postnominal) units be your enrolled in?); int units = Integer.parseInt(input.readLine()); System.out.println(How much did you overlook for books?); double books = Double.parseDouble(input.readLine()); System.out.println(The agree tiptoe is P +((units * perUnit) + labFee + misFee + books)); System.out.println(The total come is crushed down as ascertain:); System.out.println( teaching tip off: P +(units * perUnit)); System.out.println( lab topple: P +labFee); System.out.println( multifarious tip: P +misFee); System.out.println(Books: P +books); } } strike Output: How many units be your enrolled in?
27 How much did you discharge for books? 3427.50 The total compensation is P 36468.25 The total amount is broken down as follow: Tuition fee: P19440.0 Laboratory fee: P6500.25 many-sided fee: P7100.5 Books: P3427.5 import javax.swing.*; public class Ticket numerate { public static void main( String[] args ){ String slate morsel; do{ ticketNumber = JOptionPane.showInputDialog(null, character the ticket number to cease if its valid:, Ticket Number, JOptionPane.QUESTION_MESSAGE); if(ticketNumber.length() != 6) JOptionPane.showMessageDialog(null, Invalid ticket number. It should have 6 digits only., Invalid Number, JOptionPane.ERROR_MESSAGE); }while(ticketNumber.length() != 6); String...If you want to beget a full essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment