on the fourh line of the psudocode I have it instructs: call Callulate Scrp using 10 to get scrap 10, qty needed for 10 call Callulate Scrp using 25 to get scrap 25, qty needed for 25 call Callulate Scrp using 40 to get scrap 40, qty needed for 40 The programming is Java here is what I have so far: import java.util.scanner public class scrap { public static void main (String [] args) { String scrap,qty; int 10s=10q,25s=25q,40s=40q,floor,ceiling; double price,cost,needed,tax,charges,stock,shipped,size,perStock; Scanner scan = new Scanner (System.in); System.in.println("Input qty:"); } while (qty > 0) { System.in.println("Input size:"); try { if (scrap 10 < scrap 40) needed = 10; price = 2.10; else if (scrap < scrap 10 & < scrap 40) needed = 25; price = 4.90; else needed = 40; price = 7..51; cost = needed * price; 1.75 * cost; tax = cost * .08; System.out.println("cost, tax, charges:"); System.in.println("Input Qyt:"); perStock = stock % size; { if (size * (perStock + 1/16)> stock) perStock--; needed = qty % perStock; shipped = perStock * size; scrap = shipping - stock; scrap * needed; } } } }
|