The class Person is already written. It stores a name and an age and has a method intro().
Write the class Student that extends Person:
rollNo (an integer).Student(String name, int age, int rollNo) must call the Person constructor with super for the name and age, and then save the roll number.String card() that returns Roll <rollNo>: followed by the text returned by intro().One line with a name (one word), an age and a roll number.
The text returned by card().
Input:
Asha 19 7
Output:
Roll 7: Asha is 19 years old

The class `Person` is already written. It stores a name and an age and has a method `intro()`. Write the class `Student` that extends `Person`: - It has one more private field, `rollNo` (an integer). - Its constructor `Student(String name, int age, int rollNo)` must call the `Person` constructor with `super` for the name and age, and then save the roll number. - It has a method `String card()` that returns `Roll <rollNo>: ` followed by the text returned by `intro()`. ### Input Format One line with a name (one word), an age and a roll number. ### Output Format The text returned by `card()`. ### Example Input: ``` Asha 19 7 ``` Output: ``` Roll 7: Asha is 19 years old ``` The class `Bulb` is already written. It has a constructor `Bulb(int watts)` and a method `info()` that returns `Bulb of <watts> watts`. Write the class `LedBulb` that extends `Bulb`: - It has a constructor `LedBulb(int watts)` that calls the `Bulb` constructor. - It overrides `info()`. It must call the `info()` of `Bulb` with `super.info()` and add ` (LED)` at the end. ### Input Format One line with the watts and a type. The type is `LED` or `PLAIN`. ### Output Format The text returned by `info()` for the bulb. ### Example Input: ``` 9 LED ``` Output: ``` Bulb of 9 watts (LED) ``` The class `Account` is already written. It keeps the balance in a `protected` field, so a child class can use it directly. Write the class `SavingsAccount` that extends `Account`: - Constructor `SavingsAccount(int balance, int ratePercent)`. It calls the `Account` constructor for the balance and saves the rate. - Method `void addInterest()`. It adds `balance * ratePercent / 100` to the balance. All numbers are integers, so the division drops the fraction (for example `52.5` becomes `52`). Use the `balance` field directly inside `addInterest`. ### Input Format One line with the starting balance, the rate in percent, and the number of years `y`. The program calls `addInterest()` once for every year. (Balance at most 100000, rate at most 20, years at most 10.) ### Output Format `Balance: <final balance>` ### Example Input: ``` 1000 5 2 ``` Output: ``` Balance: 1102 ``` Year 1 adds 50 (balance 1050). Year 2 adds 52 (balance 1102).