ProblemStatement:
This exercise needs to be submitted through the Visual Studio Package: Day2->Assignment2
A corporate bank ’IEBI’ needs to automate the process of transferring the money.
Class Diagram:
Account (long, double) method:
Account (long, double, string [], long []) method:
DebitAmount(amount) method:
Write a program to print the area of a rectangle by creating a class named 'Area' having two functions. First function named as 'setDim' takes the length and breadth of the rectangle as parameters and the second function named as 'getArea' returns the area of the rectangle. Length and breadth of the rectangle are entered through keyboard.(For C sharp)
Write a program to print the area of two rectangles having sides (4,5) and (5,8) respectively by creating a class named 'Rectangle' with a function named 'Area' which returns the area. Length and breadth are passed as parameters to its constructor.(For C sharp)
Write a program to print the area and perimeter of a triangle having sides of 3, 4 and 5 units by creating a class named 'Triangle' with the constructor having the three sides as its parameters.(For C sharp)
Write a program to print the area and perimeter of a triangle having sides of 3, 4 and 5 units by creating a class named 'Triangle' with a function to print the area and perimeter.(For C sharp)
Assign and print the roll number, phone number and address of two students having names "Sam" and "John" respectively by creating two objects of the class 'Student'. (For C sharp)
Instructions:
1. Create a Windows application that will ask the user to enter a student’s information, then display all of
them in a message box when the button is clicked. The application should include the following controls
and their properties:
Control Properties
Three (3) Textboxes
Two (2) Radio buttons Font Size -> 12
Three (3) Combo boxes
One (1) Button Back Color -> Crimson
Flat Style -> Flat
Font Size -> 12
Fore Color -> White
Six (6) Labels Font Size -> 12
Font Bold -> True
2. The program should meet the following specifications:
• Use CamelCase in naming controls.
• Use looping statement to add items on the three (3) combo boxes:
o Day is from 1 to 31;
o Month is from 1 to 12; and
o Year is from 1900 to current year.
• Use a decision statement to determine what combo box value is selected by the user.
3. Name the project as StudentRegistrationApplication and the class or form as
frmStudentRegistration.
Create an Employee class with the following specifications.
1. EmployeeName as string.
2. BasicSalary, HRA, DA, TAX, GrossSalary and NetSalary as double.
3. Calculate the HRA (15% of BasicSalary), DA (10% of BasicSalary), GrossSalary (BasicSalary + HRA + DA), Tax (8% of GrossSalary) and NetSalary (GrossSalary – Tax).
4. A Constructor to define the EmployeeName and BasicSalary.
5. A method CalculateNetPay to calculate the HRA, DA, Tax, GrossSalary and NetSalary values using the criteria mentioned in the Point 3.
6. A method Display to display the Salary structure
Create a class named 'Student' with a string variable 'name' and an integer variable 'roll_no'. Assign the value of roll_no as '2' and that of name as "John" by creating an object of the class Student. (For C sharp)
create a console application in area of the square