问题 填空题

某商场对顾客实行购物优惠活动,规定一次购物付款总额:

①如果不超过200元,则不予优惠;

②如果超过200元,但不超过500元,则按标价给予9折优惠;

③如果超过500元,其中500元按第②条给予优惠,超过500元的部分给予7折优惠.

某两人去购物,分别付款170元和441元,若他们合并去一次购买上述同样的商品,则可节约(    )元.

答案

49

阅读理解

根据短文内容, 从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。

A serious problem for today’s society is who should be responsible for our elderly and how to improve their lives.It is not only a financial problem but also a question of the system we want for our society. 小题1:

First,employers should take the responsibility for their employees.小题2: But when a company must take life-long responsibility for its employees,it may suffer from a commercial disadvantage due to higher employee costs.

 小题3: This means each person must  save during his working years to pay for his years of retirement.This does not seem a very fair model since some people have enough trouble paying for daily life without trying to earn extra to cover their retirement years.This means the government might have to step in to care for the poor.

In addition, the government could take responsibility for the care of the elderly.This could be financed through government taxes to increase the level of pensions.Furthermore,some institution should be created for senior citizens,which can help provide a comfortable life for them.  小题4:

The government can seldom afford to care for the elderly,particularly when it is busy trying to care for the young.

One further solution is that the government or social organizations establish some working places especially for the elderly where they are independent.

小题5:Therefore,it is reasonable to expect that some combination of these options may be needed to provide the care we hope to give to our elderly generations.

A.Every coin has two sides

B.To sum up,all these options have advantages and disadvantages.

C.I would like to suggest several possible solutions to this problem.

D.It’s unfair to let the government to share all the responsibilities.E.      To make this possible,a percentage of profits should be set aside for this purpose.

F.      Another way of solving the problem is to return the responsibility to the individual.

G.  Unfortunately,as the present situation in our country shows,this is not a truly practical answer.

问答题

【说明】 IC卡和200卡都是从电话卡派生的。下面的程序将电话卡定义为抽象类。其中 balance为双精度变量,代表电话卡中的余额;cardNumber是长整型变量,代表电话卡的卡号;password是整型变量,代表电话卡的密码;connectNumber是字符串变量,代表电话卡的接入号码;connected是布尔变量,代表电话是否接通。 performDial()实现各种电话接通后的扣除费用的操作。其中200卡每次通话扣除0.5元的通话费用和附加费用;IC卡每次通话扣除0.9元的通话费。TimeLeft()方法用于测试电话卡余额还可以拨打电话的次数。performConnection()用于电话接入操作,如果卡号和密码正确,则接通;否则,接不通。 【程序】 abstract class PhoneCard { doubte balace; (1) perfermDial(); double getBalance() { return balance; } double TimeLeft() { double current=balance; int times=0; do { (2) times++; }white(balance>=0); balance=current; return times-1; } } abstract class Number_PhoneCard extends PhoneCard { long cardNumber: int password; String connectNumber; Boolean connected; Boolean performConnection(long cn, int pw) { if(cn==cardNumber && (3) ) { connected=true; return true; } else return false;} } class IC Card (4) { boolean performDial() { if(balance>0.9) { balance-=0.9; return true; } else return false; } } class D200_Card (4) { static double additoryFee; static{ additoryFee=0.1; } boolean performDial() { if(balance>(0,5+additeryFee)) { (5) return true; } else return false; } }