Please follow instruction accordingly specifically the alignment of the 7columns and 5 rows. Another is that include "Seat Successfully reserved", "Seat is taken", and the user is not allowed to enter and invalid seat number but rather display an "Error input/message"

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Topic Video
Question

Please follow instruction accordingly specifically the alignment of the 7columns and 5 rows. Another is that include "Seat Successfully reserved", "Seat is taken", and the user is not allowed to enter and invalid seat number but rather display an "Error input/message"

 

Please follow this instructions properly and align the code or arrays in the output... Thank you

• Write a Java program that makes use of two-dimensional array.
• Use if-else or switch-case statements.
dine leanine sta
Program Specification:
1. Use two-dimensional array with size 7 columns and 5 rows.
2. Seat numbers are populated during run-time and not hard-coded.
3. User is asked to input a seat number.
4. The chosen seat number is replaced by the letter X.
5. Program displays a remark "Seat successfully reserved" when reservation is
done.
6. The user is not allowed to reserve a previously reserved seat. Display "Seat is
taken" remarks.
7. The user is not allowed to enter an invalid seat number. Display an error
message.
8. The program continuously loops.
Sample Output:
2
3
1
4 5 6
7
8
15
9
10
11
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Enter seat number to reserve: 11
1
3
4
5
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Enter seat number to reserve:
Transcribed Image Text:• Write a Java program that makes use of two-dimensional array. • Use if-else or switch-case statements. dine leanine sta Program Specification: 1. Use two-dimensional array with size 7 columns and 5 rows. 2. Seat numbers are populated during run-time and not hard-coded. 3. User is asked to input a seat number. 4. The chosen seat number is replaced by the letter X. 5. Program displays a remark "Seat successfully reserved" when reservation is done. 6. The user is not allowed to reserve a previously reserved seat. Display "Seat is taken" remarks. 7. The user is not allowed to enter an invalid seat number. Display an error message. 8. The program continuously loops. Sample Output: 2 3 1 4 5 6 7 8 15 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Enter seat number to reserve: 11 1 3 4 5 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Enter seat number to reserve:
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT