-4

私は、1 人の小売業者と複数の購入者による購入のクレジットとデビットを許可するプログラムを作成しています。各買い手が pmnt を購入または作成した後、毎月の要約で各トランザクションが必要です。
これが私が持っているものです。この時点で私が持っている唯一のエラーは次のとおりです。

Main.java:136: error: not a statement
                  displayprocestran;   
                  ^
Main.java:144: error: not a statement
                displayprostrans;
                ^

これはプログラムです:

/*Project4B, Judith Berk, CIS 2110, 4/28/13*/

import java.io.*;

public class Project4BDriver 
{

    public void main(String args[]) throws IOException ;
    {
         Project4B app;
         app = new Project4B();
         app.appMain();
    }
} //end of class DriverProject4B

class Project4B 
{
     //Data declarations

     BufferedReader stdin;
     String custName;
     char transType;
     int transNum;
     float transAmt;
     float prcnt;
     float prcntChrg;
     float TprcntChrg;
     float runBal;
     float begBal;
     float endBal;
     float TPmnt;
     float TChrg;
     int PurchCtr;
     float HiPurchAmt;
     String HiPurchCust;
     float AvgPurch;
     float CoMonthBal;
     float CoTnewChrg;
     float CoTPmnt;
     float CobegBal;


    public void appMain() throws IOException ;
    {
        outputHeader();
        initReport();
        getAcctInfo();
        initrunBal();

        while (transNum != 0);
        {
             prostrans();
        }

         calculate average;
         calculate runBal;
         calculate interest;
         display summary;
    }

    void outputHeader();
    {
         //Output report header
         System.out.print("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");
         System.out.println("Project4B");
         System.out.println("Judith Berk CIS 2110");
         System.out.println("Supply Chain Monthly Report");
         System.out.print("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");
    }

    void initReport() 
    {
         //standard input will be keyboard
         stdin = new BufferedReader(new InputStreamReader.System.in());

         TPmnt = 0;
         TChrg = 0;
         PurchCtr = 0;
         PrcntChrg = 0;
         TprcntChrg = 0;
         hiPurchAmt = 0;
         CoMonthlyBal = 0;
    }

    public void getAcctInfo() throws IOException;
    {
         System.out.print("Please enter CUSTOMER NAME:");
         custName = (stdin.readLine());

         System.out.print("Please enter BEGINNING BALANCE for Customer:");
         begBal = Float.parseFloat(stdin.readLine());

         System.out.print("Please enter Customer's individual INTEREST RATE (i.e. 0.05, 0.03, 0.035):");
         prcnt = Float.parseFloat(stdin.readLine());
    }

    void initrunBal()

    {
         runBal = begBal;
    }

    public void prostrans() throws IOException;

    {
         get transNum;
    }

    public void gettransNum() throws IOException;

    {
         System.out.print("Please enter TRANSACTION NUMBER:");
         transNum = Integer.ParseInt(stdin.readLine());
    }

    public void gettransDetails() throws IOException;

    {
         System.out.print("Please enter TRANSACTION AMOUNT:");
         transAmt = Float.parseFloat(stdin.readLine());

         System.out.print("Please enter TRANSACTION TYPE:");
         transType = (stdin.readLine().charAt(0));
    }

    void  calcTPmntTChrgTPrcntChrgandrunBal();
    {

         if ((transType == "C") && (transType ==  "c"))
           {
                 purchCtr = purchCtr + 1;
                 prcntChrg = prcnt * transAmt;
                 runBal = runBal + transAmt + prcntChrg;
                 TChrg = TChrg + transAmt;
                 TprcntChrg = prcntChrg + prcntChrg;
                  displayprocestran;   
            } 


         else if ((transType == "p") && (transType ==  "P"))
            {
                 runBal = runBal - transAmt;
                 TPmnt = TPmnt + transAmt;
                displayprostrans;
            }



    }

    void displayprostran();
    {
         System.out.println("*\n" + custName);
         System.out.println("*\n" + transAmt);
         System.out.println("*\n" + runBal);
    }

    void updateHiPurchCustandHiPurchTot();
    {
        if (HiPurchAmt > TChrg);
            {
                 HiPurchChrg = TChrge;
                 HiPurchName = custName;
            }
    }

    void calcAvgPurch();
    {
         AvgPurch = TChrg / purchCtr;
    }

    void initCoMonthBal()
    {
         get CobegBal;
    }

    {
         System.out.print("Enter Company Beginning Balance");
         CobegBal = Float.parseFloat(stdin.readLine());
    }

    void calcCosummary();
    {
         CoMonthBal = CobegBal + TChrg - TPmnt;
    }

    void displaysummary()
    {
         System.out.print("Customer Name:\t" + custName);
         System.out.print("Customer Beginning Balance:\t" + begBal);
         System.out.print("Customer Payments:\t" + TPmnt);
         System.out.print("Customer New Charges:\t" + TChrg);
         System.out.print("Customer Interest Charge:\t" + TprcntChrg);
         System.out.print("Customer Ending balance:\t" + runBal);

         System.out.print("Overall Company Ending Balance:\t" + CoMonthlBal);
         System.out.print("Monthly Average Purchases:\t" + AvgChrg);
         System.out.print("Monthly Payments Received:\t" + TPmnts);
         System.out.print("Customer with highest monthly Purchases:\t" + HiPurchName);
         System.out.print("Highest Monthly Purchase Amount:\t" + HiPurchAmt);
    }
}

私を助けてください!

ありがとうジュディ

4

2 に答える 2