Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

 Mahesh has created the following code. The purpose is to create Circle and Triangle class by inheriting the Shape Class. Both the inherited classes should override the WhoamI() method of the Shape Class. The code has some bugs. Identify the Bugs and fix them.

public class Shape

{

private void WhoamI()

{

Console.WriteLine("I m Shape");

}

}

class Triangle : public Shape

{

public virtual void WhoamI()

{

Console.WriteLine("I m Triangle");

}

}


public class Circle : public Shape

{

void WhoamI()

{

Console.WriteLine("I m Circle");

}

}

class Program

{

static void Main(string[] args)

{

Shape s;

s = new Triangle();

s.WhoamI();

s = new Circle();

s.WhoamI();

Console.ReadKey();

}

}


The contract Employee class will have Perks as an additional property. The PermanentEmployee will have NoOfLeaves and ProvidendFund Properties.

1. Create these two classes by inheriting from the Employee class.

2. Override the GetSalary Method in these two classes. For Contract employee the new salary will be Salary + Perks. For Permanent Employee the new salary will be Salary – Providend Fund.

3. Create a console application to use these classes. Create a Menu driven application to select the Type of employee. Based on the user selection create the object and accept the details from the user. Also display the salary of the Employee.

4. As we only need to create instance of Contract Employee and Permanent Employee classes, Convert the Employee class to Abstract class. Also make GetSalary method Abstract in the Base class.


Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use for-each loop to print all the data of the array.


Create an Aplication for Zen Bank which is running there operation accross the globe. you have to create an aplication for Zen bank Employees so they can Add,Update Drop the customers in corresponding accounts.Accounts type which is offerred by bank are

  1 Saving Account

  2 Current Account

  3 Fixed Deposit Account

  4 Reccuring Account


provide the basic operation activity to Zen clerk that he can withdrawl and deposit money in customer account.


keep the Track of Type of operation done on individual account.


create a dialog box to fetch the statement of the account.


Zen clerk can draw DD.use generic class to store the data

check BalanceUnderFlow Event,MaxTransaction Event


Store the data in a file with Serilization for employee as well as for Customer



St. Joseph school planned to create a system to store the records of students studying in their school. They need to store various kinds of data about their students. Write a C# program based on the class diagram given below and initialize the variables with proper values and print it


SCHOOL DEMO:

rollNumber : int

studentName : string

age : bytr

gender : char

dateOfBirth : DateTime

address : string

precentage : float


Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use foreach loop to print all the data of the array.


Create a class named ProductDemo which accepts the details of the product, converts the details into reference types using boxing and displays them by converting them into their relevant types using unboxing and calculate the amountPayable. Refer the class diagram given below.


Input:-

Enter the id of product : 101

Enter the name of the product : Segate HDD

Enter Price : 9000

Enter quantity : 2


Output:-

Product Details :

Product id : 101

Product name : Segate HDD

Price : 9000

Quantity : 2

Amt Payable : 18000.00


Using Structures write an interactive program in C language to create an application program for a small office to maintain the employee’s database. This application should be having menu options like

• Creating a New Record

• Reading/Listing of Records

• Modify the record

• Delete the record

Each employee record should have Employee Name, Employee ID, Department Name, Salary, Position, Date of Joining, etc.). The application should be designed user-friendly.


You need to write a program to manage the Inventory of the used cars.


Task 1: Create a simple text-based “Console Application” in C# to maintain a catalog of used cars. The catalog keeps track of each car's make, model, year, and sale price. The program begins with an empty catalog. The program can perform the following operations:

• Adding a new car

• Modify the details of a particular car

• Search for a particular car in the Catalog

• List all the cars in the Catalog

• Delete a car from the Catalog

• Quit


If an unknown command is entered, the user should be informed and asked to enter another command. Hint:

1) Create a class called as Car. Create appropriate constructors (Default and Parameterized), Properties for the Car class.

2) Use Array to store the Objects of a car.


Once the code is ready, get a peer review done. Maintain the list of issues / bugs identified during the review. You are supposed to fix those issues.


Working with struct data type and arrays:


Use C# 6.0 and 7.0 features, wherever applicable


Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use foreach loop to print all the data of the array.


Create a class named ProductDemo which accepts the details of the product, converts the details into reference types using boxing and displays them by converting them into their relevant types using unboxing and calculate the amountPayable. Refer the class diagram given below.


Output:

Enter the id of product : 101

Enter the name of the product : Segate HDD

Enter Price : 9000

Enter quantity : 2


Product Details :

Product id : 101

Product name : Segate HDD

Price : 9000

Quantity : 2

Amt Payable : 18000.00


St. Joseph school planned to create a system to store the records of students studying in their school. They need to store various kinds of data about their students. Write a C# program based on the class diagram given below and initialize the variables with proper values and print it


SCHOOL DEMO:

rollNumber : int

studentName : string

age : bytr

gender : char

dateOfBirth : DateTime

address : string

precentage : float

_______________

+Main(string[] args)



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS