Applications Programming ( Basic JAVA ) Oct. 16, 2012 Jason H. Carale Inf114 Mrs. Trillanes Professor import java.io.*; formula family Fees { public stable void main(String[] args)throws IOException{ BufferedReader input = brisk BufferedReader( new InputStreamReader( System.in) ); epitome perUnit = 720.00; double labFee = 6500.25; double misFee = 7100.50; System.out.println(How galore(postnominal) units are your enrolled in?); int units = Integer.parseInt(input.readLine()); System.out.println(How much did you degenerate for books?); double books = Double.parseDouble(input.readLine()); System.out.println(The agree slant is P +((units * perUnit) + labFee + misFee + books)); System.out.println(The total amount is scurvy down as keep company:); Sys tem.out.println( teaching fee: P +(units * perUnit)); System.out.println( science laboratory fee: P +labFee); System.out.println( multifarious fee: P +misFee); System.out.println(Books: P +books); } } Sample turnout: How many units are your enrolled in?

27 How much did you spend for books? 3427.50 The total fee 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 reckon { public static void main( String[] args ){ String slate account; do{ ticketNumber = JOptionPane.showInputDialog(n ull, pillow slip the ticket number to chec! k 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:
OrderEssay.netIf you want to get a full information about our service, visit our page:
write my essay
No comments:
Post a Comment