Write a java code for online food delivery system to manage the data of customers who order the food using online application. User have different option for the payment i.e. Credit Card, Debit Card and Cash on Delivery. Credit card user get 10% discount on total bill, debit card customers get 7% discount while cash on delivery customers get 5% discount. Other than food bill each user have to pay delivery charges RS. 100/- Carefully think about number of classes and attribute for each class. All attributes of classes must be private and exposed via getter and setter. For all classes, create fully parameterized constructor. Only Java Write a test class named TerminalTest. In test class, show a menu to user to input data of customers, as well as food items. To input data you have to create static methods. Create another static method to order food items and calculate bill. Input data will be stored in database. Your program should handle all checked exceptions. Once data is saved in database, show the following menu to user: 1. Enter 1 to display data of all food items with price 2. Enter 2 to display data of all customers who order the food 3. Enter 3 to display total bill of credit card customers 4. Enter 4 to display total bill of debit card customers 5. Enter 5 to display total bill of cash on delivery customers Must Provide the output & Just Queries time

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a java code for online food delivery system to manage the data of customers who order the food using online application. User have different option for the payment i.e. Credit Card, Debit Card and Cash on Delivery. Credit card user get 10% discount on total bill, debit card customers get 7% discount while cash on delivery customers get 5% discount. Other than food bill each user have to pay delivery charges RS. 100/- Carefully think about number of classes and attribute for each class. All attributes of classes must be private and exposed via getter and setter. For all classes, create fully parameterized constructor. Only Java Write a test class named TerminalTest. In test class, show a menu to user to input data of customers, as well as food items. To input data you have to create static methods. Create another static method to order food items and calculate bill. Input data will be stored in database. Your program should handle all checked exceptions. Once data is saved in database, show the following menu to user: 1. Enter 1 to display data of all food items with price 2. Enter 2 to display data of all customers who order the food 3. Enter 3 to display total bill of credit card customers 4. Enter 4 to display total bill of debit card customers 5. Enter 5 to display total bill of cash on delivery customers Must Provide the output & Just Queries time

Write a java code for online food delivery system to manage the data of customers who order the food using
online application. User have different option for the payment ie. Credit Card, Debit Card and Cash on
Delivery. Credit card user get 10% discount on total bill, debit card customers get 7% discount while cash
on delivery customers get 5% discount. Other than food bill each user have to pay delivery charges RS.
100/-.
Carefully think about number of classes and attribute for each class. All attributes of classes must be private
and exposed via getter and setter. For all classes, create fully parameterized constructor.
Only Java
Write a test class named TerminalTest. In test class, show a menu to user to input data of customers, as
well as food items. To input data you have to create static methods. Create another static method to order
food items and calculate bill. Input data will be stored in database. Your program should handle all checked
exceptions. Once data is saved in database, show the following menu to user:
1. Enter 1 to display data of all food items with price
2. Enter 2 to display data of all customers who order the food
3. Enter 3 to display total bill of credit card customers
4. Enter 4 to display total bill of debit card customers
5. Enter 5 to display total bill of cash on delivery customers
Must Provide the output
& Just Queries time
Transcribed Image Text:Write a java code for online food delivery system to manage the data of customers who order the food using online application. User have different option for the payment ie. Credit Card, Debit Card and Cash on Delivery. Credit card user get 10% discount on total bill, debit card customers get 7% discount while cash on delivery customers get 5% discount. Other than food bill each user have to pay delivery charges RS. 100/-. Carefully think about number of classes and attribute for each class. All attributes of classes must be private and exposed via getter and setter. For all classes, create fully parameterized constructor. Only Java Write a test class named TerminalTest. In test class, show a menu to user to input data of customers, as well as food items. To input data you have to create static methods. Create another static method to order food items and calculate bill. Input data will be stored in database. Your program should handle all checked exceptions. Once data is saved in database, show the following menu to user: 1. Enter 1 to display data of all food items with price 2. Enter 2 to display data of all customers who order the food 3. Enter 3 to display total bill of credit card customers 4. Enter 4 to display total bill of debit card customers 5. Enter 5 to display total bill of cash on delivery customers Must Provide the output & Just Queries time
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY