public static void main(String[] args){ Scanner in =new Scanner(System.in); int counter = 0; double total = 0; String today = "first"; String orderName[] = {"Tofu Burger","Cajun Chicken","Buffalo Wings","RainbowFillet","Rice Cracker","NoSalt Fries","Zuccini","Browen Rice","Cafe Mocha","Cafe Latte","Espresso","Oolong Tea"}; double orderPrice[] = {3.49, 4.59, 2.99, 2.99, 0.79, 0.69, 1.90, 0.59, 1.99, 1.99, 2.49, 0.99}; Order[] orderObj = new Order[12]; Bell[] bellObj = new Bell[100];
int z; int per, d; System.out.print ("\n\tEntree\t"); System.out.print ("\t\tSide Dish\t"); System.out.println("\tDrink"); System.out.print("______________________________________________________________________");
January 29, 2009 at 6:23 AM
do{ do{ do{ for(int i=0; i<=11; i++){ System.out.println ("\n\t" + i + "\t\t\t" + orderName[i] + "\t\t" + orderPrice[i]); } System.out.print ("\nEnter your choice:"); int x ; x=in.nextInt(); int y; System.out.print ("How many order do you want from it??"); y=in.nextInt(); total+=orderPrice[x]*y; bellObj [counter]= new Bell(); bellObj [counter].bellName= orderName[x]; bellObj [counter].bellPrice=orderPrice[x]; bellObj [counter].bellNumber= y; bellObj [counter].bellDay = today; counter++; System.out.print ("Do you want another order??if you finish Press 0 "); z=in.nextInt(); }while(z!=0); for(int i=0; i<bellObj.length; ++i){ if(bellObj[i]!=null) System.out.println(bellObj[i].bellName+"\t"+bellObj[i].bellPrice+"\t"+bellObj[i].bellNumber+"\t"+bellObj[i].bellDay); } System.out.println("Your Orders cost: " +total); System.out.print ("is there another person??if No press 0"); per=in.nextInt(); if (per==0){ System.out.println("Thank You for your Interest.."); } }while(per!=0);
System.out.print ("Start another day??if Yes Press 0"); d = in.nextInt(); if(d==0) today="second"; }while(d!=0);
System.out.print ("Yor bell is: "); for(int i=0; i<bellObj.length; ++i) in.close(); } }
Related Pages:
details of my program - Java Beginners details of my program hi
1- allow the customer to order any thing... array
but it could make the program much longer
note: i want to use the method... stupid alittle bit
but this is my home work import java.util.
My first struts 2 program
from one page to another.
Details:
I am trying my first Struts 2 example program. I want to pass values from first loginpage.jsp to displaypage.jsp.
I...My first struts 2 program Hi,
Please help me for my first struts 2
program on employee details program on employee details to write a program on displaying the employee details like empid,empname,wonno,location,leave type by using the text fields in java swings
to write a program to display the employee details..
to write a program to display the employee details.. To dipslay the employee details like empid,empname,salary,wonno bye using java swings.by running this program the new window has to be opened asking us to enter all
How to extract details from XML? - JSP-Servlet
How to extract details from XML? I want to extract details from http://service.openkapow.com/palanikumar/airportantigua.rest
How can i extract details from this link?Here is myprogram...
Airport
bank details - JSP-Servlet
bank details hi i just need a coding for bank details...
since iam working as a trainee my leader gave me task like this..
What he want me to do is first to set the user account details in database, and the to create a login
Java Program MY NAME
Java ProgramMY NAME Write a class that displays your first name vertically down the screen where each letter uses up to 5 rows by 5 columns of a character
input by you with a blank line between each letter.
Note: each letter
My first Java Program My first Java Program I have been caught with a practical exam to do the following:
Write a program that takes input from a user through the command line.
The user must be prompt to enter a sentence (anything). The sentence
Employee Details - JSP-Servlet
. Will it work for me. Will it be executing according to my requirement. If yes,I will try... in a crying situation..
Hope ROSEINDIA TEAM will understand my problem...(insertion or deletion or etc.,) is successfull or not.
So to my knowledge
j2ee environment varaiable details program hello world it show several error.please tell me the what is the environment variables i have changed.
the program i typed is
import javax.sevlet.
how to code-updating some details n some details r unchanged
:
bloodgroup :
my requirement is to update the details of user.
and i had written the update query,but with that query all the details are updating...
my doubt...how to code-updating some details n some details r unchanged i have
how to access the details - Java Beginners
) { ... ... .... } public String... no)and retrive all the details of the person which is not given. Please write the program
my project my project how to creat a e learnig site with student information , faculty details , student queries , student feedback, course information
Retrieval column details into respective JComboboxs
Retrieval column details into respective JComboboxs Hello sir,
As of now i created program in the Eclipse the GUI window .I had creaated the GUI window & also i had created the table in MSSQL the differet columns
my question my question "Write a C/C++ program to show the stored procedure PROCRESETMAIL" on database "USER_NOTIFY
my question my question "Write a C/C++ program to show the stored procedure PROCRESETMAIL" on database "USER_NOTIFY
my assignment my assignment as programmer, you have been assigned to develop... base on the menu listed and the price will be counted.in addition, the program......this is my assignment....plz
how to get the details of username&password of mysql - JDBC
how to get the details of username&password of mysql Hi friends,
i installed mysql 5.5 on my system successfully,but the thing is i forgotten the username and password .please tell me how to get those details .
Thanks
java program for me to see who are on my server
java program for me to see who are on my server Hello,
Im a beginner in java, doing some tutorials and stuff.
I wanna write a java program to put on my server where i wanna see if like 3 people are on my server PLUS that i want
I need add my java program with a picture.
I need add my java program with a picture. Good evng Frnds
Friends i created 1 jar file in my desktop. I need add this program with 1 picture. Whenever the user double clicking on that picture The program must start instead
plz. answer my ques - Java Beginners
plz. answer my ques I want to ask a prog. prob which would create... such type of program is possible in c. can you mention technology... login details)
Username
Password
JSP to add details to a database from a HTML form.
JSP to add details to a database from a HTML form. Hi
I'm a second year CS student who has to use JSP to validate a HTML form and add the details.....
Can anyone tell me what is wrong with my code?
html code first
doubt in my program code - Java Beginners
doubt in myprogram code i have developed a web browser with the help of standard widget toolkit(swt) and java. i creted some buttons such as GO,REFRESH,STOP....
on which the name is not apppeared as GO,STOP...but the name
how to retrive other details with an image - Swing AWT
how to retrive other details with an image hello
I m trying.....
followingis my code..plz advice me how to get both values as well as image at a same...("Select visitor_firstname,Type_code, image_data from visiting_details where Ticket
Get specific item details by clicking on hyperlink
Get specific item details by clicking on hyperlink sir,
I am developing a shopping site, following is my problem definition:
I have a search item button, if I click on that button it lists all items with item name
Program
Program Define an Abstract class DigitalCamera with instance variables like make, model, resolution, etc, and create() to set the details of camera. Use three sub classes for three different makes (eg. Canon, Olympus, Sony
Program
Program Define Interface Insurance with methods: details()(name, types of services), no. of branches(), No. of customers(), annual_income(). Implement these methods in its Implementation class LIC, National, BajajAlliance
program
program Write a program to print details of a week for a particular day using array of objects Integer and String.
OUTPUT:
First Day of Week is Monday
Second Day of Week is Tuesday
Third Day of Week is Wednesday
Forth Day
program
with three parameters to set the employee details.
Create another method called print to display the employee details in below format:
"Employee E001
using list iterator create student details - JavaMail
using list iterator create student details write a java program to create student class with particulars like name, rno, marks,etc. and print them in ascending order using iterator(list iterator) Hi Friend,
First
Why is my program running an infinite loop? Parallel Arrays Program
Why is myprogram running an infinite loop? Parallel Arrays Program Calculate and print the average (this works)
Search for Joel in the list, print his data----for some reason this is outputting the wrong data and is outputting
my sql innodb my sql innodb Write a java program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL
java not run on my pc
java not run on my pc i have installed java in pc but when i run and compile any program the massage is display that 'javac' is not recognized as an internal or external command
HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP?
HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP? HELLO SIR,
CAN ANYONE HELP ME OUT HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILES,IF I ENTER 4 EMPLOYEE DETAILS(NAME,ID,SALARY,EMAIL) ALL THE DETAILS OF 4
storing details in database on clicking submit button - JSP-Servlet
storing details in database on clicking submit button I am using JSP... 'Name' and 'ID'.I want to store the details of these two fields in the MYSQL... this page and where and should be my code written?
This is my simple code
My sql - JDBC My sql hi,
I have a table in MySql, having fields, emp_id,emp_name,emp_vertical,emp_supervisor.
i need a JDBC program with driver mangager for MySQL, statements, preparedstatements,resultset. Please can you suggest me a way
Need help with my project
Need help with my project Uses a while loop to perform the following... results to a file in the same directory as the program, placing an appropriate
label between each section of output. Note that your program must be able to run
in registration page,hw the details wil b stored in db,n retrieved.....
in registration page,hw the details wil b stored in db,n retrieved..... 1)in registration page,when new user register his details,hw the details... the code in detail plzzz.....2)n hw do v knw whether that details r inserted
Help With My Java Project?
Help With My Java Project? Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where
Paypal integration to my website - Struts
the payment details(acknowledgement)....My question is.....instead of getting that payment details in paypal website....I should get that details to my website...Paypal integration to my website Hi there,
I am working
student details
student details create an application for details of 1st to 5th standard students by using loops and scanner
scjp details
scjp details SCJP fees details abou scjp?
What are the best books for preparing to scjp?
How many time scjp exam's are conducted for one year
student details
student details hi sir/madam i have a doubt in PHP how to insert student details using mysql with php..
Have a look at the following link:
PHP Mysql insert
customer details
customer details write a java code to enter n number of persons details(name,address,phone number) in a array list.
Also consider exceptional cases like entering integer in name,character in phone number.
use try,catch ,throw
APLIANCE DETAILS
APLIANCE DETAILS I have created a package named ApplianceDetails that contains the Appliance
class. Now I want to create a class named NewAppliance that stores the details of
the newly launched appliances.I used the following