All pastes #385164 Raw Edit

Unnamed

public java v1 · immutable
·published 2007-03-07 17:41 UTC
rendered paste body
//Muhammad Norat//TaskMNimport java.util.Scanner;public class TaskMN{	final static double BOLTS = 0.25;	final static double NUTS = 0.15;	final static double WASHERS = 0.10;	public static void main (String [] args)throws Exception	{		Scanner in = new Scanner (System.in);		//Initiate Variables		String name = " ";		String codeName = "Bobs Discount Bolts";		int bolts = 0;		int nuts = 0;		int washers = 0;		System.out.println("Please enter the name of the customer ");		name = in.next();			while (!(name.equalsIgnoreCase("ZZZ")))			{			System.out.println("How many BOLTS are you purchasing ? ");			bolts = in.nextInt();			System.out.println("How many NUTS are you purchasing ? ");			nuts = in.nextInt();			System.out.println("How many WASHERS are you purchasing ? ");			nuts = in.nextInt();			codeName = codeName.toUpperCase();									System.out.println("Please enter the name of the customer ");			name = in.next();						}	}}