freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java上機(jī)實(shí)驗(yàn)報(bào)告(參考版)

2024-10-21 05:29本頁面
  

【正文】 }public void actionPerfor。(EXIT_ON_CLOSE)。=new LuoXuanCanvas()。(b)。(p,”North“)。(,)。//自定義畫布組件 public LuoXuan(){super(”阿基米德螺線“)。public class LuoXuan extends JFrame implements ActionListener{ private static final long serialVersionUID = 1L。import .*。} package2。y=()。//設(shè)置為背景色 (x20,y20,diameter,diameter)。(x,y,diameter,diameter)。int diameter = (()/2, ()/2)。}public void paint(Graphics g)//在Applet上繪圖 { ()。y=()/4。public class MoonApplet extends Applet implements MouseListener { int x,y。import 。} else if((k=((t1[i].getText())))new PingFen()。imax){max=k。min=((t1[0].getText()))。t1[i].setText(null)。else continue。for(int i=0。(b)。b=new JButton(”平均分“)。p=new JPanel(new FlowLayout())。p1=new JPanel(new GridLayout(2,5))。public PingFen(){ super(”模擬裁判評分“)。float s=0,k。JTextField t1[]=new JTextField[10]。public class PingFen extends JFrame implements ActionListener{ JPanel p,p1。import .*。} public static void main(String[] args){ new ZhuanH()。(((c)))。}public void actionPerformed(ActionEvent e){ String c = ()。(EXIT_ON_CLOSE)。(new Label(”十六進(jìn)制“))。(new Label(”八進(jìn)制“))。(new Label(”二進(jìn)制“))。(t1)。(new GridLayout(4,2))。(null)。t3=new TextField(5)。t1=new TextField(5)。public ZhuanH(){super(”十進(jìn)制整數(shù)轉(zhuǎn)換“)。import .*。}} .*。value=0。count=2。} else if(p==”負(fù)“){value=1*(())。((value))。count=2。count=2。count=2。count=2。count=2。} if(c==”=“){ if(p==”開根“){value=(float)((()))。if(count==2){p=c。} else {count++。}} else if(p==”清零“){value=0。} else {(()+c)。if(c==”0“||c==”1“||c==”2“||c==”3“||c==”4“||c==”5“||c==”6“||c==”7“||c==”8“||c==”9“||c==”.“){if(p2==0){(c)。for(int i=0。(t1)。()。p1=new JPanel()。public Calulator(){f=new JFrame(”Calulator“)。int p2=0。static int count=1。JPanel p1。import .*。import 。程序清單:(建議程序中適當(dāng)添加注釋信息,增強(qiáng)可讀性;較長程序可分欄書寫,保證報(bào)告排版整潔美觀。//畫圓 } } :r=aθ畫出相應(yīng)圖形。//畫圓(())。//圓的直徑()。y = ()/4。int x=0,y=0。public class MoonApplet extends Applet { public void paint(Graphics g)//在Applet上繪圖 { ()。import .*。,然后修改程序,當(dāng)使用鼠標(biāo)單擊后在另一位置重新繪制月亮。設(shè)計(jì)如圖所示圖形界面,顯示n個(gè)裁判的評分,根據(jù)制定規(guī)則計(jì)算出最后得分。三、實(shí)驗(yàn)過程將一個(gè)十進(jìn)制整數(shù)分別轉(zhuǎn)換成二進(jìn)制、八進(jìn)制和十六進(jìn)制整數(shù)。(6)調(diào)試程序要記錄調(diào)試過程中出現(xiàn)的問題及解決辦法;(7)編寫程序要規(guī)范、正確,上機(jī)調(diào)試過程和結(jié)果要有記錄,不斷積累編程及調(diào)試經(jīng)驗(yàn);(8)做完實(shí)驗(yàn)后給出本實(shí)驗(yàn)的實(shí)驗(yàn)報(bào)告。所以我必須在以后的學(xué)習(xí)中多動(dòng)手多實(shí)際操作爭取能在實(shí)踐中找到屬于自己新的感悟,終于在學(xué)習(xí)Java時(shí)達(dá)到了事半功倍的效果。而這次實(shí)驗(yàn)也讓我看到了現(xiàn)在學(xué)習(xí)的一個(gè)很大弱點(diǎn)就是實(shí)踐的實(shí)踐往往很少。(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)五、實(shí)驗(yàn)體會(huì)(遇到問題及解決辦法,編程后的心得體會(huì))學(xué)習(xí)程序設(shè)計(jì)的基本目的就是培養(yǎng)描述實(shí)際問題的程序化解決方案的關(guān)鍵技能Java面向?qū)ο蟪绦蛟O(shè)計(jì)是一門實(shí)踐性比較強(qiáng)的課程在實(shí)際中我們必須把理論和實(shí)踐結(jié)合起來。else return(a/b)。amp。}finally{(”程序結(jié)束!“)。}catch(NumberFormatException e2){(”異常:字符串不能轉(zhuǎn)換成整數(shù)!“+e2)。}catch(ArithmeticException e1){(”商結(jié)果:Infinity“+e1)。double b = (str)。(”請輸入除數(shù):“)。String str = ()。public class Div { public static void main(String args[])throws MyException{try{BufferedReader in = new BufferedReader(new InputStreamReader())。} }(2)Div主類: package exp2_11。} } }(11)(1)MyException類: package exp2_11。} //捕獲數(shù)值轉(zhuǎn)化時(shí)的異常,如不能將字符轉(zhuǎn)化成數(shù)值catch(NumberFormatException e){(”數(shù)值格式異常,重新輸入“)。(”商為:“+c)。int b=(cl)。(”請輸入被除數(shù):“)。String cl=()。public class Ex1 { public static void main(String args[ ]){ try{ BufferedReader strin=new BufferedReader(new InputStreamReader())。makeFly(b)。makeFly(p)。} } public class Test { static void makeFly(CanFly obj){()。} public class Plane implements CanFly{//使用接口 Override public void fly(){// TODO Autogenerated method stub(”飛機(jī)借助螺旋槳飛上天空“)。(”圓錐體積:“+())。(”圓柱體積:“+())。Yuanzhui c2=new Yuanzhui(”圓錐“,2,3,)。} public double NewVolum(){return *pi*r*pi*r*height。public double area(){s=(height*height+r*r)。} } public class Yuanzhui extends Yuanzhu implements Volume { public Yuanzhui(String shape, double r, double height, double pi){super(shape, r, height, pi)。} public double area(){ return pi*r*r。public abstract double NewVolume()。=pi。=height。double pi。double r。(”劉三月工資:“+())。(”王五月工資:“+())。(”李四月工資:“+())。(”張三月工資:“+())。} public String earnings(){ return(time*money+”“)。 = time。double money。}public String earnings(){return(number*price+”“)。 = number。double price。} public String earnings(){return(salary+sale*price+”“)。 = sale。public CommissionWorker(String first, String last, double salary, double sale,double price){super(first, last)。double sale。} public String earnings(){return(salary+”“)。public Boss(String first, String last, double salary){ super(first, last)。} public abstract String earnings()。} public String getLastName(){ return lastName。lastName=last。private String lastName。(())。()。} public String toString(){return(”三角形三邊長:“+a+” “+b+” “+c+” “+”周長:“+perimeter()+”面積:“+area())。s=(a+b+c)/2。} public double perimeter(){return a+b+c。=b。public Triangle(String newShape,double a,double b,double c){super(”newShape“)。//定義抽象類,里面不能寫方法public abstract double area()。public ClosedFigure(String newShape){=newShape。(())。(80,86,79)。Graduate c2=new Graduate(”小紅 “,18)。(())。(65,75,60)。} } public class StudentDemo {//測試public static void main(String[] args){Undergraduate c1=new Undergraduate(”小明 “,22)。if(average=80)(”研究生生成績合格“)。}}class Graduate extends Student// Student繼承Graduate {public Graduate(String name,int age){ super(name,age)。if(average=60)(”本科生成績合格“)。} }class Undergraduate extends Student// Student繼承Undergraduate {public Undergraduate(String name,int age){ super(name,age)。} public void set(float chinese,float math,float Enghish){average=(chinese+math+Enghish)/3。=age。float math,Enghish。int age。(10000)。(20000)。} } public class UseAccount {//測試public static void main(String[] args){BankAccount c1=new BankAccount(40000,40000)。} public void qu(double qukuan){(”取款為:“+qukuan)。} public void chaxun(double balance,double cunkuan){(”存款為:“+cunkuan)。} public void set(double cunkuan){if(cunkuanelse if(cunkuanelse if(cunkuanelse interest=。public BankAccount(double cunkuan,double balance)//寫方法{=balance。(”立方體體積=“+())。(”相乘=“+())。(”相加=“+())。} } public class PackageDemo {//測試public static void main(String[] args){Calculate c1=new Calculate(8,4)。} public double chu(){return i/j。} public double jian(){return ij。=t。} public Calculate(int i,int j,int t){=i。public Calculate(int i,int j){=i。((c1,c2))。((c1,c2))。//創(chuàng)建類,調(diào)用類里面的方法Complex c2=new Complex(5,2)。} public String t
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1