Mock
Mock
Miraj Cinemas partners with BookMyShow to increase attendance and revenue, As a software consultant for BookMyShow, assist
Miraj Cinemas in creating software that will include functionality to determine the cost of a ticket to be purchased and generate a
ticket ID.
String screenNumber
int noOfTickets
MovieTickets Necessary Getters, setters, and six argument constructors are provided as a part of the code skeleton.
String mobileNumber
String time
String modeOfPayment
Functional Requirement 1: Extract the details of MovieTickets and create an object of the MovieTickets class
Kindly refer to the below table for the price of each screen and the convenience charge for each
transaction respectively.
S2 Rs.250 Rs.35
S3 Rs.520 Rs.35
S4 Rs.400 Rs.35
S5 Rs.180 Nil
Eg: Let the screen number be S3, movie price be Rs.520, noOfTicket be 4 nos,
Condition:
MovieTickets public String generateTicketId()
• If screenNumber or noOfTickets are invalid then, return "Invalid movie details"
For example
Let Movie Name be Love Today, Screen Number be S1, and number of tickets be 15, then
TicketId: LvS1N15
The main method is excluded from the evaluation. You are free to write your own code or add lines of code to check the
correctness of the functionalities
Note:
• In the Sample Input / Output provided, the highlighted text in bold corresponds to the input given by the user, and the rest of
the text represents the output.
• Ensure to follow the object-oriented specifications provided in the question.
• Ensure to provide the names for classes, attributes, and methods as specified in the question.
• Adhere to the code template, if provided.
Sample Input/Output -1
Love Today:S1:15:9958456545:10.00Pm:Gpay
Ticket Details
Number of tickets: 15
TicketId: LvS1N15
Thank you! Your payment received via Gpay, Your movie tickets are confirmed.
Sample Input/Output -2
Frozen:S5:7:9957856545:2.00Pm:PayTM
Ticket Details
Number of tickets: 7
Screen Number: S5
TicketId: FrS5N7
Thank you! Your payment received via PayTM, Your movie tickets are confirmed.
Sample Input/Output -3
Bigil:S6:12:8545456465:12.00PM:Card
Bigil:S4:-4:8545456465:12.00PM:Card
The "Malgudi Express" was supposed to be launched as part of the ongoing "Azadi Ka Amrit Mahotsav" celebration of India's 75th
year of independence. It's a beautiful train ride along the Western Ghats through typical southern Indian scenery. You have been
approached as their software consultant to develop software that will implement the functionality to calculate the total ticket
charge that the passenger will be charged.
int noOfTickets
Necessary Getters, setters and five argument constructor are provided as a
String coach part of the code skeleton
TicketInfo
String
mobileNumber
String insurance
Functional Requirement 1: Extract the ticket details and create an object of the TicketInfo class.
Functional Requirement 2: Calculate the cost of the ticket, including the service charge and GST.
Ticket Cost=2400+(2400*(5/100))+(2400*(4.5/100))
Ticket Cost=2400+120+108=2628.0.
Functional Requirement 3: Calculate the total booking cost, including insurance if required.
If the 'insurance' field is set to "yes", the total booking cost is confirmed by including the insurance
charge.
If the 'insurance' field is set to "no," the insurance charge is not included.
public double
TicketInfo
Condition:
calculateTotalBookingCost()
The insurance charge is Rs. 49 per person.
If the insurance field is set to something other than "yes" or "no", then return -1.
Example:
Total Cost=2628.0+49=2677.0
The main method in the UserInterface class is excluded from evaluation. You are free to write your own code in the main method
to invoke the business methods to check its correctness.
Note:
• In the Sample Input / Output provided, the highlighted text in bold corresponds to the input given by the user and the rest of
the text represents the output.
• Ensure to follow the object-oriented specifications provided in the question.
• Ensure to provide the names for classes, attributes, and methods as specified in the question.
• Adhere to the code template, if provided.
Alex:2:FirstAC:8879678456:yes
Passenger Details
Number of Tickets: 2
Coach: FirstAC
Mary:2:unreserve:8879789656:no
Passenger Details
Number of Tickets: 2
Coach: unreserve
Insurance Required: no
Leena:4:TwoTierAC:8890567890:yes
David:5:unreserve:9884455661:y
Orbiton technologies conducts interviews and selects candidates for further interview process. The recruitment process consists
of three rounds. A first round is conducted for all the candidates who have applied for the interview. Candidates are chosen for the
second round based on their performance in the first round. Some candidates are shortlisted directly for the final interview based
on certain criteria. You, being the software developer, develop a Java program to shortlist the candidates based on the
requirement.
Requirement 2: Find the number of candidates shortlisted for further interview process.
Condition: candidates
with markScored greater
than or equal to 90 are
directly shortlisted for the
final interview.
You are provided with the main method as code template and it is excluded from evaluation.
Note:
• In the Sample Input / Output provided, the highlighted text in bold corresponds to the input given by the user, and the rest of
the text represents the output.
• Ensure to follow the object-oriented specifications provided in the question description.
• Ensure to provide the names for the classes, attributes, and methods as specified in the question description.
Sample Input/Output 1:
ORB101:75.7
ORB102:79.5
ORB103:95.3
ORB104:67
ORB105:92
ORB106:54
95.3
ORB103
ORB105
Sample Input/Output 2:
ORB101:87.9
ORB102:65.8
ORB103:61.2
ORB104:98
ORB105:84
ORB106:54
ORB108
ORB104
Puddles -A Piggy Bank
Puddles a digital piggy bank, is a tool that can help you save money. You being the software developer, develop a Java program
based on the requirement.
Condition:
PiggyBank public double calculateMoneyAvailable()
• If the sum is zero, return -1.
Money available = Sum of the product of all available denominations and its count
=38
Requirement 2: Retrieve the available denominations and return the sorted list of denominations
Requirement 3: Calculate money based on the denomination and return the total value.
For 20,
CalculateMoneyBasedOnDenomination=20*1
=20
You are provided with the main method as a code template and it is excluded from evaluation.
Note:
• In the Sample Input / Output provided, the highlighted text in bold corresponds to the input given by the user, and the rest of
the text represents the output.
• Ensure to follow the object-oriented specifications provided in the question description.
• Ensure to provide the names for the classes, attributes, and methods as specified in the question description.
• Adhere to the code template, if provided.
Sample Input/Output - 1
5
Enter your piggy bank entries (denomination: count)
10:1
1:1
5:1
20:1
2:1
Available Denominations:
10
20
20
100:5
500:2
2000:1
Available denominations:
100
500
2000
100
5:0
10:0
No money available
Sample Input/Output -4
5:100
2:6
10:6
Available denominations:
10
200
Invalid denomination