Question

Need help creating a customer order form using Netbeans (programming language is Java). I can design...

Need help creating a customer order form using Netbeans (programming language is Java). I can design the form but need help with writing the codes.

Use the below areas to input on the form

Customer name

Customer address

Drink (tea, water etc)

Sandwich (white, parmesan)

Type (Italian, Turkey)

Size (12" for $6)

Provide screenshots to show output of the above elements. The output should prompt to enter customer name, address then the drink, sandwich and so on. The output should also display the following message, "Welcome (customer name) to Famous Sandwich. Thanks you for dinning with us today."

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CODE IN JAVA


import java.util.Scanner;
public class Main

{
   public static void main(String[] args)
   {
       Scanner s=new Scanner(System.in);
       String name,address,drink,sandwich,type;
        int size;
        System.out.println("Enter customer name");
        name=s.nextLine();
        System.out.println("Enter customer address");
        address=s.nextLine();
        System.out.println("Enter the name of drink(tea,water etc)");
        drink=s.nextLine();
        System.out.println("Enter the name of sandwich(white,parmesan)");
        sandwich=s.nextLine();
        System.out.println("Enter the name of Type(Italian,turkey)");
        type=s.nextLine();
        System.out.println("Enter the size(12 for $6)");
        size=s.nextInt();
      
        System.out.println("Welcome("+name+") to Famous Sandwich.Thank you for dinning with us today");
   }  
      
      
      
  
}


OUTPUT

Add a comment
Know the answer?
Add Answer to:
Need help creating a customer order form using Netbeans (programming language is Java). I can design...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help creating a netbeans application and linking database with steps Part II – Next,...

    I need help creating a netbeans application and linking database with steps Part II – Next, build a simple Servlet called LoginServlet in your “Bank” Project. Now make it so that when the Customer logs in, the LoginServlet will get called and will validate the user id and password. At first, just make sure that the Servlet gets called correctly. So just print a simple message like “LoginServlet Running…”. Remember, to call the LoginServlet, you will need to modify the...

  • this is java m. please use netbeans if you can. 7. Person and Customer Classes Design...

    this is java m. please use netbeans if you can. 7. Person and Customer Classes Design a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods for the class's fields. Next, design a class named Customer, which extends the Person class. The Customer class should have a field for a customer number and a boolean field indicating whether the cus- tomer wishes to...

  • I have to use java programs using netbeans. this course is introduction to java programming so...

    I have to use java programs using netbeans. this course is introduction to java programming so i have to write it in a simple way using till chapter 6 (arrays) you can use (loops , methods , arrays) You will implement a menu-based system for Hangman Game. Hangman is a popular game that allows one player to choose a word and another player to guess it one letter at a time. Implement your system to perform the following tasks: Design...

  • Your task for this project is to write a parser for a customer form. You need to develop a Java a...

       Your task for this project is to write a parser for a customer form. You need to develop a Java application using Parboiled library. Your program should include a grammar for the parser and display the parse tree with no errors. Remember that your fifth and sixth assignments are very similar to this project and you can benefit from them. The customer form should include the following structure: First name, middle name (optional), last name Street address, city, state (or...

  • I need help with this question for programming. The language we use is C++ The program...

    I need help with this question for programming. The language we use is C++ The program should ask the user if they want to search for a boy or girl name. It should then ask for the name search the appropriate array for the name and display a message saying what ranking that name received, if any. The name files (BoyNames.txt and GirlNames.txt) are in order from most popular to least popular and each file contains two hundred names. The...

  • Help Please on JAVA Project: Validating the input is where I need help. Thank you Requirements...

    Help Please on JAVA Project: Validating the input is where I need help. Thank you Requirements description: Assume you work part-time at a sandwich store. As the only employee who knows java programming, you help to write a sandwich ordering application for the store. The following is a brief requirement description with some sample output. 1. Selecting bread When the program starts, it first shows a list/menu of sandwich breads and their prices, then asks a user to select a...

  • Hey i have java question i need emergency help could you help me Customer; has private...

    Hey i have java question i need emergency help could you help me Customer; has private variables address ,name,customerld. Address; has private variables street,city,state Following demo and output below, implement needed methods and constructors. Address adres new Address"Sogutozu Street","Cankaya", "Ankara"): Customerll customers new Customer(3]: customers(0]-new Customer(adres,"Ali Yildiz",1001); customers[1]-new Customer(customers[O]) customers(2]-customers[0].clone) customers[2).setName("Deniz Yildiz"): Address adres2-new Address("Gazi Street","Yenimahalle", "Ankara" customers[1].setAddress(adres2); customers[1].setCustomerld 1002); customersl1].setName"izel Olcay"): Address adres3 new Address(" Anadolu Street", "Pola,"Ankara") customers[2].setAddress(adres3); customers[2].getAddress().setStreet("X") adres.setStreet("Bestepe Street" adres2.setStreet("Yazici Street" for(int i=0;i<customers length ) System.out.printin(customersi])...

  • ******Java Programming Hi guys, I really need you help. I created a code for my java...

    ******Java Programming Hi guys, I really need you help. I created a code for my java course, but it keep giving me error messages. Majority of my code is fine but some keep display error on my console. I was hoping someone could pin points the problem. .There are three classes with the testCenter class being the main class. In the following is the assignment, and the bottom is my code. Please help! Assignment: Concepts: GUI User Design Graphics Deployment...

  • C++ programming language , I need help writing the code . Please explain if you can...

    C++ programming language , I need help writing the code . Please explain if you can . Exercise 10: Unit conversion (10 points) Write a console program that converts meters into feet and inches. The program starts by asking the user for a measurement in meters. The program should accept a floating point number. After getting the number, the program computes the number of feet and inches equal to the specified number of meters. The program outputs feet and inches...

  • I need help with the following. I need to write a program code in Java using...

    I need help with the following. I need to write a program code in Java using NetBeans. It is from How to Program Java book Chapter 2. This program should calculate the packing of Candles. First read: The number of candles The number of candles that fit in each case Then calculate and print: The number of full cases The number of candles left over (partial case) If this order is large (more than 5 full cases needed) An extra...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT