最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

自己寫(xiě)的 沒(méi)什么好的思路 不知道那個(gè)可載人車(chē)及載貨車(chē)怎么算

package com.ZC;

import java.util.Scanner;

public class Zh {


public static void main(String[] args) {

// TODO 自動(dòng)生成的方法存根

Scanner input=new Scanner(System.in);

zuche p1=new car1();

zuche p2=new car2();

zuche p3=new car3();

zuche p4=new car4();

zuche p5=new car5();

zuche p6=new car6();

System.out.println("是否進(jìn)入租車(chē)系統(tǒng):");

int a=input.nextInt();

if(a==1) {

System.out.println("進(jìn)入成功");

System.out.println("您可租車(chē)的類(lèi)型及價(jià)格目錄:");

System.out.println("序號(hào)\t汽車(chē)名稱(chēng)\t租金\t容量\t");

p1.zc();

p2.zc();

p3.zc();

p4.zc();

p5.zc();

p6.zc();

System.out.println("選擇車(chē)輛,請(qǐng)輸入車(chē)輛的序號(hào):");

int b=input.nextInt();

switch(b) {

case 1:

p1.jg();

System.out.println("請(qǐng)輸入租車(chē)天數(shù):");

int c=input.nextInt();

//

int jq1=c*car1.jq;

System.out.println("您組的車(chē)是:"+car1.cx);

System.out.println("您的賬單:"+jq1+"RMB");

System.out.println("請(qǐng)支付所選車(chē)輛金額,支付完成即刻幫您提取車(chē)輛");

break;

case 2:

p2.jg();

System.out.println("請(qǐng)輸入租車(chē)天數(shù):");

int c1=input.nextInt();

//

int jq2=c1*car2.jq;

System.out.println("您組的車(chē)是:"+car2.cx);

System.out.println("您的賬單:"+jq2+"RMB");

System.out.println("請(qǐng)支付所選車(chē)輛金額,支付完成即刻幫您提取車(chē)輛");

break;

case 3:

p3.jg();

System.out.println("請(qǐng)輸入租車(chē)天數(shù):");

int c2=input.nextInt();

//

int jq3=c2*car3.jq;

System.out.println("您組的車(chē)是:"+car3.cx);

System.out.println("您的賬單:"+jq3+"RMB");

System.out.println("請(qǐng)支付所選車(chē)輛金額,支付完成即刻幫您提取車(chē)輛");

break;

case 4:

p4.jg();

System.out.println("請(qǐng)輸入租車(chē)天數(shù):");

int c3=input.nextInt();

//

int jq4=c3*car4.jq;

System.out.println("您組的車(chē)是:"+car4.cx);

System.out.println("您的賬單:"+jq4+"RMB");

System.out.println("請(qǐng)支付所選車(chē)輛金額,支付完成即刻幫您提取車(chē)輛");

break;

case 5:

p5.jg();

System.out.println("請(qǐng)輸入租車(chē)天數(shù):");

int c4=input.nextInt();

//

int jq5=c4*car5.jq;

System.out.println("您組的車(chē)是:"+car5.cx);

System.out.println("您的賬單:"+jq5+"RMB");

System.out.println("請(qǐng)支付所選車(chē)輛金額,支付完成即刻幫您提取車(chē)輛");

break;

case 6:

p6.jg();

System.out.println("請(qǐng)輸入租車(chē)天數(shù):");

int c5=input.nextInt();

//

int jq6=c5*car6.jq;

System.out.println("您組的車(chē)是:"+car6.cx);

System.out.println("您的賬單:"+jq6+"RMB");

System.out.println("請(qǐng)支付所選車(chē)輛金額,支付完成即刻幫您提取車(chē)輛");

break;

}

}else {

System.out.println("進(jìn)入失敗");

}

}


}

//后面的和這個(gè)一樣太多就只傳一個(gè)

package com.ZC;

//奧迪A4

public class car1 extends zuche {

int xh=1;

static int jq=500;

int rs=4;

static String cx="奧迪A4";

@Override

public void zc() {

// TODO 自動(dòng)生成的方法存根

System.out.println(xh+"\t"+cx+"\t"+jq+"\t/天"+rs);

}


@Override

public void jg() {

// TODO 自動(dòng)生成的方法存根

System.out.println("奧迪A4");

}


}


正在回答

2 回答

加油!


1 回復(fù) 有任何疑惑可以回復(fù)我~

遍歷累加

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

自己寫(xiě)的 沒(méi)什么好的思路 不知道那個(gè)可載人車(chē)及載貨車(chē)怎么算

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)