Applications Programming ( Basic JAVA ) Oct. 16, 2012 Jason H. Carale Inf114 Mrs. Trillanes Professor import java.io.*; principle crystallise Fees { public stable void main(String[] args)throws IOException{ BufferedReader input = in the raw 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 discharge 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 modest down as copy:); System.out.println( teaching fee: P +(units * perUnit)); System.out.println( science lab fee: P +labFee); System.out.println( multifarious fee: P +misFee); System.out.println(Books: P +books); } } Sample siding: 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 play { public static void main( String[] args ){ String slate reduce; do{ ticketNumber = JOptionPane.showInputDialog(null, type the ticket number to check 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); S tring...If you want to beget a full essay, ! order it on our website: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment