C#编程试题,在线等答案!!!

An internet café wants to select the customers who are eligible to apply membership @cafe. Their selection criteria is “total number of hours the customer has used is more than or equal to 20hours, assume that the individual customer’s number of hours used is calculated by the staff manually before this program was implemented.”
1. develop a user class to store the following user information.
2. initialize using the constructor class
3. create get/set properties
4. develop a class named AssessUser to keep an array of all user object
5. the data must be able to add(),edit(), delete() and also search() which performs the selection of eligible users.

using System;
using System.Collection.Generic;

namespace ConsoleApplication1{
public class Customer{
string _id;
int _totalHours;

public string Id{
get;
set;
}

public int TotalHours{
get;
set;
}

public Customer (string id, int totalHours){
_id = id;
_totalHours = totalHours;
}
}

public class AssessUser : List<Customer>{
}
}
温馨提示:答案为网友推荐,仅供参考
相似回答