Computing.Net > Forums > Programming > Call/ get

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Call/ get

Reply to Message Icon

Name: cameclifton
Date: April 23, 2009 at 16:08:59 Pacific
OS: Macintosh
Product: Apple / POWERBOOK G4
Subcategory: Java
Comment:

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;
}
}
}
}



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Ghost Cloning on USB-HD Getting the value of a va...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Call/ get

Batch file exits after GET command www.computing.net/answers/programming/batch-file-exits-after-get-command/15735.html

Please Help me in VB www.computing.net/answers/programming/please-help-me-in-vb/7830.html

C++ OO Program HELP!!! www.computing.net/answers/programming/c-oo-program-help/12351.html