(if the default pack
with the following mo
☑Kizspy.me
Restaurant
-restaurantName: String
-city: String
-seatedGuests: int
guestCapacity: int
+ Restaurant(restaurantName: String,
city: String, seatedGuests: int,
guestCapacity: int)
+getRestaurantName(): String
+getAvailableSeating(): int
+toString(): String
Where:
•
Restaurant (restaurantName: String, city: String,
seated Guests: int, guestCapacity: int)-
parameterized constructor, which sets values to
restaurantName, city, seated Guests, and
guestCapacity.

getRestaurantName(): String - If the restaurant
name is longer than 10 characters, only return the
first 10 characters of the name in uppercase. If it's
10 characters or fewer, return the entire name in
uppercase. (Hints: use the substring method)

getAvailableSeating(): int returns the available
seating with the available seating = guestCapacity-
seated Guests. If the available seating < 0 then
returns 0.
•
Override toString():String return a string that
contains all the information of the restaurant:
restaurantName-city-seated Guests-guestCapacity
Zoom
Do not format the result.
The program output might look something like this:
Enter restaurant name: New World!HCM
Enter restaurant name:sunny
Enter restaurant name:Sunny
Enter city:HCM
Enter city:Miami
Enter city:hcm
+100%
Close