Computer Science, asked by jillellahariprasad23, 7 months ago

When celebrities get together for a party, they like to have chocolates.
A celebrity party is successful when the number of chocolates is between 20 and 40, inclusive.

Unless it is the weekend, in which case there is no upper bound on the number of chocolates.

You have to write a method Met that prints true if the party is successful and false if the party fails.

Write a method Met that takes 2 parameters: an integer and a boolean value.

The integer has the number of chocolates
the boolean is true if it’s the weekend and false if it’s not the weekend.
Met has to print true or false to tell us if the party is successful or not with the given values.

The Met method has to be inside a Solution class. Please check the code editor for the ideal method definition.

For students writing in C, please use the C++ option and complete the method. The syntax is the same for both C and C++ in this question.

Example Input: 30 false
Output: true
Example Input: 50 false

Answers

Answered by adityapipania
0

Answer:

useless

Explanation:

useless useless v useless useless useless

Similar questions