Applications Programming ( Basic JAVA ) Oct. 16, 2012 Jason H. Carale Inf114 Mrs. Trillanes Professor import java.io.*; linguistic rule distinguish Fees { public stable void main(String[] args)throws IOException{ BufferedReader input = fresh 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 transcend 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 bemused down as succeed: ); System.out.println( teaching fee: P +(units * perUnit)); System.out.println( testing ground fee: P +labFee); System.out.println( multifarious fee: P +misFee); System.out.println(Books: P +books); } } Sample make: 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 go { public static void main( String[] args ){ String slate act; do{ ti cketNumber = JOptionPane.showInputDialog(nul! l, shell 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); String...If you want to beget a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.