Home > Back-end >  Who can help me this small white
Who can help me this small white

Time:10-26

A, are defined as follows an array, and initialize the
1. The dishes names: cpName, element respectively to braise in soy sauce hairtail, sweet and sour pork ribs, braised pork, green vegetables, burning
2. The unit price array: price, element respectively 38,40,25,18
3. The reservation name array: dcNames, includes four elements
4. Products information array: cpInfor, includes four elements
5. Delivery time array: scTime, includes four elements
6. Delivery address array: adds, contains four elements
7. Total amount of array: moneys, includes four elements
8. An array of order status: status, includes four elements
Second, for the first 3 to 8, the first element of the assignment elements are: "zhang", "braise in soy sauce 1 hairtail," 10, "the ministry college", 38, 1
Three, the following interface:
Welcome to the use of "reservation system version alliance"
1. I want to order a meal
2. View the meal bags
3. The receipt order
4. Delete order
5. I'll have great
6. Log out
Please select:
When the input 1 output "I want to order"
When the input two output "view the meal bags
"When the input 3 output "receipt order
",,,
When the input 6 output "log out"

CodePudding user response:

This is you need to write a console application? Don't learn some basic knowledge? In fact there are a lot of articles, search on the net

CodePudding user response:

refer to the original poster qq_46377270 response:
a, are defined as follows array and initialize
1. The dishes names: cpName, element respectively to braise in soy sauce hairtail, sweet and sour pork ribs, braised pork, green vegetables, burning
2. The unit price array: price, element respectively 38,40,25,18
3. The reservation name array: dcNames, includes four elements
4. Products information array: cpInfor, includes four elements
5. Delivery time array: scTime, includes four elements
6. Delivery address array: adds, contains four elements
7. Total amount of array: moneys, includes four elements
8. An array of order status: status, includes four elements
Second, for the first 3 to 8, the first element of the assignment elements are: "zhang", "braise in soy sauce 1 hairtail," 10, "the ministry college", 38, 1
Three, the following interface:
Welcome to the use of "reservation system version alliance"
1. I want to order a meal
2. View the meal bags
3. The receipt order
4. Delete order
5. I'll have great
6. Log out
Please select:
When the input 1 output "I want to order"
When the input two output "view the meal bags
"When the input 3 output "receipt order
",,,
When the input 6 output "log out"


Write very clear, all base, reading should learn to write their own,
Initialize the array
For example, String [] cpName=new String [4].
The first element of assignment shouldn't? Behind with print statements, and then use Scanner console input, can receive data with the switch case
  • Related