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

正文內(nèi)容

簡(jiǎn)易計(jì)算器課程設(shè)計(jì)-全文預(yù)覽

  

【正文】 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (Back)。 (sixteen)。 (this)。//Back ()。 (text)。//創(chuàng)建一個(gè)多斥作用域 (sixteen)。 (this)。 lgX=new JButton(lgX)。 num8=new JButton(8)。 num4=new JButton(4)。 num0=new JButton(0)。 fu = new JButton(+/)。 chu = new JButton(247。 (false)。 (false)。 (false)。 (false)。 (false)。 (new GridLayout(7,4))。 (cp2,Center)。 JPanel cp2=new JPanel()。 setLocation(400,400)。 String fuhao,copy。 String copycontent=。//單選按扭 JButton Back,ce,c,num0,num1,num2,num3,num4,num5,num6,num7,num8,num9。public class Calculator extends JFrame implements ActionListener{ JScrollPane scrollHelp。八、源代碼import .*。這次課程設(shè)計(jì)的主要目的是學(xué)會(huì)Java程序開(kāi)發(fā)的環(huán)境搭建與配置,并在實(shí)際運(yùn)用中學(xué)習(xí)和掌握J(rèn)ava程序開(kāi)發(fā)的全過(guò)程,以及進(jìn)一步熟悉掌握J(rèn)ava程序設(shè)計(jì)語(yǔ)言的基礎(chǔ)內(nèi)容,提高Java編程技術(shù)以及分析解決問(wèn)題的綜合能力。設(shè)計(jì)過(guò)程中遇到了不少麻煩:如進(jìn)制間的轉(zhuǎn)換,也遇到了平時(shí)學(xué)習(xí)中老師強(qiáng)調(diào)與教過(guò)的疑難點(diǎn),不懂的通過(guò)翻閱資料和與同學(xué)間的討論都一一解決了。 } }六、參考文獻(xiàn)[01]施霞萍,(第二版)[M][02] 耿祥義,張躍平. Java2實(shí)用教程(第三版).清華大學(xué)出版社。 } } for(int i=length。 int length = ()。 }else{ strBinNum += (decNum)。 } } return invert (strOctNum, 3)。 while (decNum != 0){ if (decNum 7){ strOctNum += (decNum % 8)。 default: strHexNum +=(currentNum)。 case 11: strHexNum += B。 case 13: strHexNum += D。 } switch (currentNum){ case 15: strHexNum += F。 while(decNum != 0){ if (decNum 15){ currentNum=decNum%16。 i++) strDecNum = 0 + strDecNum。 } }6、退出窗口動(dòng)作class WindowDestroyer extends WindowAdapter{//     public void windowClosing(WindowEvent e){      (0)。 (() + a)。){ ()。)){ isNumber = false。||(i)==39。amp。 for (int i = 0。 } else (s)。 for (k = 0。039。) break。 for (i = 0。 ().length() == 1) (除數(shù)不能為零)。 } if (temp == dao){ if (().charAt(0) == 39。39。 }3、對(duì)數(shù)運(yùn)算if(temp==lgX){ ((((()))))。 clear = false。 if (fuhao == ) (qian * ss + )。 } if (temp == deng){ double ss = (())。 clear = false。 fuhao = 。 } if (temp == jian){ qian = (())。4、這是“幫助”菜單里的“關(guān)于計(jì)算器”菜單項(xiàng):(null, 計(jì)算機(jī)開(kāi)發(fā)者:魏曉力)。+\n)。  (1. 鍵入計(jì)算的第一個(gè)數(shù)字。  JTextArea help = new JTextArea(10, 30)。 (this)。 about = new JMenuItem( 關(guān)于計(jì)算器)。 (t)。 (fileMenu)。 fileMenu = new JMenu(復(fù)制C Ctrl+C)。 JMenu helpMenu = new JMenu(幫助)。 JMenuBar mainMenu = new JMenuBar()。 (ff)。 (ee)。 (dd)。 (cc)。 (b)。 (a)。 (lnX)。 (sin)。 (deng)。 (dian)。 (num0)。 (jian)。 (num2)。 (quyu)。 (num6)。 (num4)。 (chu)。 (num8)。 (ce)。 (ten)。 c=new JButton(C)。 (this)。 (false)。 (ten)。 (this)。 lnX=new JButton(lnX)。 cos=new JButton(cos)。 num5=new JButton(5)。 num1=new JButton(1)。 dian = new JButton(.)。)。 jia = new JButton(+)。 ee = new JButton(E)。 cc = new JButton(C)。 a = new JButton(A)。 eight=new JRadioButton(八進(jìn)制)。 sixteen=new JRadioButton(十六進(jìn)制)。 (cp3,South)。 JPanel cp3=new JPanel()。 text=new JTextField(25)。 int jin=10,first=1。 boolean clickable=true,clear=true。 Jbutton a,b,cc,dd,ee,ff,jia,jian,cheng,chu,quyu,deng,fu,dian,kai,dao,cos,sin,tan,lgX,lnX。  private objConversion convert = new objConversion()。import .*。五、程序的界面設(shè)計(jì)及代碼實(shí)現(xiàn)  * 類(lèi)名: calculator ** 作用: 主類(lèi)。各種按鈕采用n行n列的網(wǎng)格布局,并注冊(cè)按鈕事件監(jiān)聽(tīng)器。Back退格、CE返回上層運(yùn)算符、C清零功能。“幫助”菜單中有“關(guān)于計(jì)算器”、“幫助主題”菜單項(xiàng),并實(shí)現(xiàn)相關(guān)功能。其基本功能完成加減乘除、開(kāi)方、求模、求倒,十進(jìn)制與八進(jìn)制、二進(jìn)制、十六進(jìn)制的轉(zhuǎn)換等,退格、清零等按鈕的實(shí)現(xiàn)。15六、參考文獻(xiàn)7777  6五、程序的界面設(shè)計(jì)及代碼實(shí)現(xiàn)55四、設(shè)計(jì)思路5三、需求分析621七、總結(jié)22一、運(yùn)行環(huán)境(1).操作系統(tǒng):Solaris、Windows xp、Windows 7等(2). 應(yīng)用軟件:、Eclipse二、問(wèn)題描述及要求制作一個(gè)計(jì)算器,要求仿Windows里的計(jì)算器,設(shè)計(jì)一個(gè)圖形界面,其中基本組件包括0~+、*、/、.、=、+/、Back、CE、C、sqrt、%、1/x、。在“編輯”菜單中有“復(fù)制”、“粘貼”菜單項(xiàng)。我的計(jì)算器具有的功能如下:實(shí)現(xiàn)基本的加、減、乘、除四則運(yùn)算及開(kāi)方、求倒、求模。四、設(shè)計(jì)思路 工作原理圖開(kāi)始按鍵判斷進(jìn)制轉(zhuǎn)換數(shù)字按鍵運(yùn)用相應(yīng)處理按鍵判斷運(yùn)算符按鍵進(jìn)制轉(zhuǎn)換顯示結(jié)果是否繼續(xù)操作結(jié)束 本程序繼承父類(lèi)Frame,運(yùn)用了布局管理器GridLayout和Borderlayout,將界面分為三塊,頂上為單行文本框,中間為進(jìn)制單選鈕和退格、清空按鈕,下面是數(shù)字、符號(hào)按鈕?!   ≡诖寺暶鞯氖敲看屋斎氲臄?shù)據(jù)都要進(jìn)行類(lèi)型轉(zhuǎn)換。** 繼承的父類(lèi): 無(wú) ** 實(shí)現(xiàn)的接口:無(wú) ***********************************************************         import .*?!       。?、調(diào)試后的界面:標(biāo)準(zhǔn)型  JScrollPane scrollHelp。//單選按扭Jbutton Back,ce,c,num0,num1,num2,num3,num4,num5,num6,num7,num8,num9。 String copycontent=。 String fuhao,copy。 setLocation(400,400)。 JPanel cp2=new JPanel()。 (cp2,Center)。 (new GridLayout(7,4))。 (false)。 (false)。 (false)。 (false)。 (false)。 chu = new JButton(247。 fu
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1