Jim is developing software for automating the slot booking process for a video game parlor.Customers
题目
Jim is developing software for automating the slot booking process for a video game parlor.Customers fill the Booking Request form with the details of the game ,such as the name,number of players,and complexity level .They hand over the form to the booking officer at the parlor.Depending on the availability; the booking officer reserves the time slots and the play station for customers.
Identify the involved classes and objects ,and their attributes.Wrtie methods in the class to accept the game details and store the values in a variable.
答案
public class GameInfo{
public string Name;
public int numberOfPlayers;
public int complexityLevel;
}
public class GameInfoProvider{
GameInfo _gi;
DateTime _timeSlots;
public void Reserve(GameInfo gi,DateTime timeSlots){
_gi = gi;
_timeSlots = timeSlots;
}
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点
- 已知等差数列8、16、24、32、……,求它的第21项和第40项.
- 若a,b,c为三角形ABC的三边长,且a(a-b)+b(b-c)+c(c-a)=0,试判断三角形ABC的形状并说明理由
- 求800字作文,触动我心灵的一首诗
- 一电动机 铭牌 12V 3W 线圈电阻1.92欧 只有18V电源
- 把函数f(x)=1/(x^2-x-2)展开为x的幂级数,并求出收敛区间
- 求大虾们一定要解释清楚!关于不等式组的题目
- 用1.2.3.4.5.6.7.8.9.这九个数字组成三个三位数,使第2个数是第一个数的2倍,第3个数是第一个数的3倍.每
- 怎么算稀释倍数
- When you come to Beijing,I’ll you around the city A、send B、let C、visit D、show
- 乘方的意义是什么?