deleted...thanks
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
deleted...thanks
Last edited by robertsbd; October 12th, 2010 at 12:48 PM. Reason: to delete
Here i fixed it up for you so you can see where you had gone slightly off.
import java.util.Scanner; public class Assign5_Roberts{ public static void main(String[] args){ Scanner in = new Scanner(System.in); //create a scanner System.out.println("Enter the item you are bidding on :"); String itemName = in.nextLine(); System.out.println("Enter your maximum bid: "); double maxBid = in.nextDouble(); System.out.println("Enter desired delivery method ( 0 for ground four day, 1 for ground express, 2 for air shipping ) :"); int shippingMethod = in.nextInt(); //reads shiping type int shippingPrice = 0; // shipping price switch(shippingMethod) { case 0: //no cost break; case 1: //express shippingPrice = 5; break; case 2: //air shippingPrice = 15; break; } //invoice System.out.println("Invoice :"); System.out.println("Item :" + itemName); System.out.println("Your Bid Price :" + maxBid); System.out.println("Total :" + (maxBid + shippingPrice)); } }
Last edited by bluurr; October 12th, 2010 at 12:33 PM.
robertsbd (October 12th, 2010)
Robertsbd, please do not delete your posts/questions you received help from. Leaving the posts untouched allows others to potentially benefit from the problems you had and the solution(s) you received.