Professional Documents
Culture Documents
Lab03 OOP
Lab03 OOP
Lab03 OOP
CSL-210
SOURCE CODE:
OUTPUT:
SOURCE CODE:
OUTPUT:
SOURCE CODE:
OUTPUT:
Exercise 4: Seat Reservation
You are tasked with designing a program for a theater seat arrangement that allows
customers to reserve seats based on their gender (Male-M or Female-F). The program
should efficiently manage seat bookings, provide information on the number of male and
female customers seated, and display the count of empty seats. Design a menu driven Java
program with the following features:
1. Seat Reservation
2. Count of female and male audience
3. Count of empty seats
SOURCE CODE:
OUTPUT:
Exercise 5: Paragraph Analyzer
In the development of an essay application, a crucial feature is required to analyze
paragraphs. Write a java program that takes a paragraph as input. Categorizes the paragraph
into different categories based on its word count. The categorization will help identify
whether the paragraph is short, medium, or long as shown in table below. Ensure that the
application displays paragraph analysis report including the total word count and the number
of lines present in the paragraph alongside the category assigned.
SOURCE CODE:
OUTPUT: