Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

How autonomous should the target be left after the merger deal?

Answered: 1 week ago