MsgBox "请在文本框中输入由0和1组成的字符串"
  Exit Sub
  End If
  For int1 = 1 To Len(strSource)
  ___(1)___
  If str1 <> "1" And str1 <> "0" Then
  MsgBox "不能输入非0或非1的字符"
  Exit Sub
  End If
  Next
  str1 = ___(2)____
  num = 1
  For int1 = 2 To Len(strSource)
  If str1 = Mid(strSource, int1, 1) Then
  ___(3)___
  Else
  If result < num Then
  result = num
  End If
  str1 = Mid(strSource, int1, 1)
  ___(4)___
  End If
  Next
  If result < num Then
  result = num
  End If
  ___(5)___
  End Sub
  试题八(15分,每空3分)
  阅读以下说明、Java代码将应填入___(n)___处的字句写在答题纸的对应栏内。
  [说明]
  IC卡和200卡都是从电话卡派生。下面程序将电话卡定义为抽象类。其中balance为双精度变量,代表电话卡中的余额;cardNumber是长整型,代表电话卡的卡号;password是整型变量,代表电话卡的密码;connectNumber是字符串变量,代表电话卡的接入号码;connected是布尔变量,代表电话是否接通。
  performDial()实现各种电话接通后的扣除费用的操作。其中200卡每次通话扣除0.5元的通话费用和附加费用;IC卡每次通话扣除0.9元的通话费。TimeLeft()方法用于测试电话卡余额还可以拨打电话的次数。performConnection()用于电话接入操作,如果卡号和密码正确,则接通,否则,接不通。
  [程序]
  abstract class PhoneCard
  {
  double balace;
  ___(1)___ performDial();
  double getBalance()
  { return balance; }
  double TimeLeft()
  {
  double current=balance;
  int times=0;
  do