Mock Qualifier
Mock Qualifier
String screenNumber
String time
String modeOfPayment
Condition:
s
If the screenNumber does not match the
below table then, return 0.
screenNumber is case sensitive.
If the noOfTickets is less than or equal to
zero then, return 0.
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:
If screenNumber or noOfTickets ar
e 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:
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:S4:-4:8545456465:12.00PM:Card
int noOfTickets
Necessary Getters, setters and five
argument constructor are provided as a
String coach
TicketInfo part of the code skeleton
String
mobileNumber
String insurance
If the preferred
coach is
"SecondAC", there
is a 5% GST and a
4.5% service
charge.
If the preferred
coach is
"ThirdAC", there is
a 4% GST and a
4.5% service
charge.
If the preferred
coach is "Sleeper",
there is a 2% GST
and a 4.5% service
charge.
If the preferred
coach is
"Unreserve", there
is no GST and
service charge.
The
preferred coach is
case-insensitive.
If the
preferred coach doe
s not match the
above cases, return
-1.
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.
Example:
Total Cost=2628.0+49=2677.0
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
Leena:4:TwoTierAC:8890567890:yes
David:5:unreserve:9884455661:y
Condition: candidat
eId is a case-
sensitive
Type Responsibiliti
Methods
(Class) es
Candidate public This method
filters the
candidates
(candidateMap
) shortlisted for
final interview
based on the
below
condition, add
the candidate
ids to the list
List<String> findCandidatesShortlistedF and returns the
Main
orFinalInterview() list."
Condition: ca
ndidates 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:
Sample Input/Output 1:
ORB101:75.7
ORB102:79.5
ORB103:95.3
ORB104:67
ORB105:92
ORB106:54
ORB103
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 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.
Money available = Sum of the product of all available denominations and its
count
MoneyAvailabe=10*1+1*1+5*1+20*1+2*1
=38
Type(Class
Method Responsibility
)
This method has to return the
public
PiggyBank sorted list that contains all the
List<Integer> retrieveCurrencyDenominations()
available denominations.
Type(Class
Method Responsibility
)
PiggyBank public This method takes
double calculateMoneyBasedOnDenomination(int denomination as a parameter
denomination) and returns total money
available based on
denomination.
Condition:
If the denomination
is present in
the moneyMap,
return the total value
of the denomination,
else return -1.
For 20,
CalculateMoneyBasedOnDenomination=20*1
=20
You are provided with the main method as a code template and it is
excluded from evaluation.
Note:
10:1
1:1
5:1
20:1
2:1
Available Denominations:
10
20
20
Sample Input/Output -2
3
Enter your piggy bank entries (denomination: count)
100:5
500:2
2000:1
Available denominations:
100
500
2000
100
Sample Input/Output -3
5:0
10:0
No money available
Sample Input/Output -4
5:100
2:6
10:6
Available denominations:
10
200
Invalid denomination