Question: the language i wan used in C# is visual basic. Create a console program that contains the following A Class named Account with the following

the language i wan used in C# is visual basic.Create a console program that contains the following

A Class named Account with the following properties:

o public int Id { get; set; }

o public string Firstname { get; set; }

o public string Lastname { get; set; }

o public double Balance { get; set; }

o public DateTime CreationDate { get; set; }

o Create a constructor that initializes all of the properties.

o Create a ToString Account method which returns a string containing all of the properties with at least one space between property values in the string.

In the main method of the console program create a list of accounts.

Add 10 accounts to the list with the following data:

ID

first name

last name

balance

creation date

1006

John

Doe

100

1/18/2014

1009

Jane

Doe

300

1/18/2014

1002

Richard

Doe

548

1/18/2015

1003

John

Deer

28

3/18/2014

1004

Bob

Reindeer

396

1/22/2016

1005

Patricia

Rabbit

1523.72

7/8/2013

1000

Bill

Rabbit

152

6/28/2013

1007

Steve

Bear

768

9/18/2015

1008

Rita

Slowwalker

23.19

12/23/2015

1001

Cindy

Deer

10004.95

1/18/2014

Write a LINQ query to list and sort items in the list of accounts by Id.

Print the query result set.

Write a LINQ query to list accounts created before 2014/01/18, order by creation date.

Print the query result set.

Write a LINQ query to list the first name, last name and balance of accounts order by account balance descending.

Print the query result set.

Write a LINQ query to Display account Id and creation date ordered by creation date.

Print the query result set.


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!