❓ Help Can you create a code using java

Status
Not open for further replies.
Write a program that:
This activity helps you practice:Hint:
You can use printf() to format your outputs.
Sample Output:
1. Can have dynamic number of seats. (This can be declared in advance.)
2. Allows the user to book a seat by entering the seat number.
3. Checks if the entered seat number is valid (within the range) and available (not alreadybooked).
4. If the seat is valid and available, marks it as booked. Likewise a booked seat can becancelled.
5. Displays the current status of all seats (booked or available) after each booking attempt.
6. The program should ONLY have one (1) class named MovieTheaterRunner .declaring, initializing, accessing, and modifying elements in a array.declaring, initializing and using Strings.
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 507
    Views
  • 2
    Participants
Last reply from:
mondiborak

Trending Topics

Online now

Members online
1,152
Guests online
4,695
Total visitors
5,847

Forum statistics

Threads
2,329,232
Posts
29,247,132
Members
1,156,332
Latest member
kupzsiloggg123
Back
Top