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...

  • 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...

  • 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...

  • 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...

  • 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])...

  • Overview JAVA LANGUAGE PROBLEM: The owner of a restaurant wants a program to manage online orders...

    Overview JAVA LANGUAGE PROBLEM: The owner of a restaurant wants a program to manage online orders that come in. This program will require multiple classes. Summary class, customer class, order class and the driver class. Summary class This class will keep track of the cost of the order and output a summary, which includes the total for the order. The methods in this class are static. There are no instance variables, and instead uses an Order object that is passed...

  • Needs Help with Java programming language For this assignment, you need to write a simulation program...

    Needs Help with Java programming language For this assignment, you need to write a simulation program to determine the average waiting time at a grocery store checkout while varying the number of customers and the number of checkout lanes. Classes needed: SortedLinked List: Implement a generic sorted singly-linked list which contains all of the elements included in the unsorted linked list developed in class, but modifies it in the following way: • delete the addfirst, addlast, and add(index) methods and...

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
ADVERTISEMENT