C#编程试题,在线等答案!!!
Aninternetcaféwantstoselectthecustomerswhoareeligibletoapplymembership@cafe.Theirsele...
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. 展开
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. 展开
1个回答
展开全部
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>{
}
}
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>{
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询