The Score class stores a team name, its runs and the wickets it has lost. Write the missing parts.
Score(String team, int runs, int wickets) stores the three values. A team cannot lose more than 10 wickets, so if wickets is more than 10, store 10.summary() returns the text <team>: <runs>/<wickets>.One line with the team name (one word), the runs and the wickets (whole numbers, 0 or more).
One line from summary().
Input: India 287 6
Output: India: 287/6
Input: Kenya 100 12
Output: Kenya: 100/10

The `Score` class stores a team name, its runs and the wickets it has lost. Write the missing parts. - The constructor `Score(String team, int runs, int wickets)` stores the three values. A team cannot lose more than 10 wickets, so if `wickets` is more than 10, store 10. - `summary()` returns the text `<team>: <runs>/<wickets>`. ### Input Format One line with the team name (one word), the runs and the wickets (whole numbers, 0 or more). ### Output Format One line from `summary()`. ### Example Input: `India 287 6` Output: `India: 287/6` Input: `Kenya 100 12` Output: `Kenya: 100/10` The `Recharge` class has two constructors (same name, different parameters). - `Recharge(int amount)` is a plan with the normal validity of 28 days. - `Recharge(int amount, int days)` is a plan with the given number of days. `describe()` returns `Rs <amount> for <days> days`. It is already written. Write the missing constructor(s) so that `main` works. ### Input Format One line. It has either one number (the amount) or two numbers (the amount and the days). All numbers are 1 or more. ### Output Format One line from `describe()`. ### Example Input: `199` Output: `Rs 199 for 28 days` Input: `599 84` Output: `Rs 599 for 84 days` The `Pizza` class has three constructors. Two of them must call another constructor with `this(...)` instead of repeating the code. - `Pizza()` is a Margherita pizza, count 1. - `Pizza(String name)` is that pizza, count 1. - `Pizza(String name, int count)` is the full constructor, which sets both fields. `describe()` returns `<count> x <name>`. It is already written. Write the two shorter constructors, and the full one, using `this(...)` in the short ones. ### Input Format The first number is the mode. Mode 0 means no more input. Mode 1 is followed by a name. Mode 2 is followed by a name and a count (1 or more). Names are one word. ### Output Format One line from `describe()`. ### Example Input: `0` Output: `1 x Margherita` Input: `2 Corn 3` Output: `3 x Corn`