Instruction: open a new project in Vscode called Exam2 and implement the folowing code
Functions:
- Define a Dart function that takes two parameters (int a, int b) and returns their sum.
- Write a function that calculates the factorial of a given number.
- Create a function that checks if a number is prime.
- Implement a function that converts Celsius to Fahrenheit.
- Write a Dart function that takes a string as input and returns the reversed string. Classes:
- Create a class named Person with attributes name and age. Implement a method to display the person's information.
- Define a class Rectangle with attributes length and width. Implement a method to calculate the area of the rectangle.
- Implement a class Circle with a method to calculate the circumference.
- Create a class BankAccount with methods to deposit and withdraw money, and to check the account balance. 10 Write a class Student with attributes name, age, and grade. Implement a method to determine if the student passed or failed. Function and Class Interactions:
- Define a class Calculator with methods for basic arithmetic operations (add, subtract, multiply, divide).
- Implement a class Car with methods to start, stop, and check the fuel level.
- Write a Dart program that uses a function to find the maximum element in a list of integers.
- Create a class Employee with attributes name, salary, and a method to give a bonus.
- Combine a function and a class to calculate the area of a triangle given its base and height. More Functions:
- Write a Dart program with a function to find the square root of a given number.
- Create a function that generates a list of Fibonacci numbers up to a specified limit.
- Implement a function to determine if a given year is a leap year.
- Define a recursive function to compute the factorial of a number.
- Write a function that takes a list of integers and returns a new list with only the even numbers.