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

正文內(nèi)容

簡易計算器課程設(shè)計-全文預(yù)覽

2025-02-03 16:02 上一頁面

下一頁面
  

【正文】 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (Back)。 (sixteen)。 (this)。//Back ()。 (text)。//創(chuàng)建一個多斥作用域 (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è)計的主要目的是學(xué)會Java程序開發(fā)的環(huán)境搭建與配置,并在實際運用中學(xué)習(xí)和掌握Java程序開發(fā)的全過程,以及進一步熟悉掌握Java程序設(shè)計語言的基礎(chǔ)內(nèi)容,提高Java編程技術(shù)以及分析解決問題的綜合能力。設(shè)計過程中遇到了不少麻煩:如進制間的轉(zhuǎn)換,也遇到了平時學(xué)習(xí)中老師強調(diào)與教過的疑難點,不懂的通過翻閱資料和與同學(xué)間的討論都一一解決了。 } }六、參考文獻[01]施霞萍,(第二版)[M][02] 耿祥義,張躍平. Java2實用教程(第三版).清華大學(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、退出窗口動作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、對數(shù)運算if(temp==lgX){ ((((()))))。 clear = false。 if (fuhao == ) (qian * ss + )。 } if (temp == deng){ double ss = (())。 clear = false。 fuhao = 。 } if (temp == jian){ qian = (())。4、這是“幫助”菜單里的“關(guān)于計算器”菜單項:(null, 計算機開發(fā)者:魏曉力)。+\n)。  (1. 鍵入計算的第一個數(shù)字。  JTextArea help = new JTextArea(10, 30)。 (this)。 about = new JMenuItem( 關(guān)于計算器)。 (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(八進制)。 sixteen=new JRadioButton(十六進制)。 (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è)計及代碼實現(xiàn)  * 類名: calculator ** 作用: 主類。各種按鈕采用n行n列的網(wǎng)格布局,并注冊按鈕事件監(jiān)聽器。Back退格、CE返回上層運算符、C清零功能?!皫椭辈藛沃杏小瓣P(guān)于計算器”、“幫助主題”菜單項,并實現(xiàn)相關(guān)功能。其基本功能完成加減乘除、開方、求模、求倒,十進制與八進制、二進制、十六進制的轉(zhuǎn)換等,退格、清零等按鈕的實現(xiàn)。15六、參考文獻7777  6五、程序的界面設(shè)計及代碼實現(xiàn)55四、設(shè)計思路5三、需求分析621七、總結(jié)22一、運行環(huán)境(1).操作系統(tǒng):Solaris、Windows xp、Windows 7等(2). 應(yīng)用軟件:、Eclipse二、問題描述及要求制作一個計算器,要求仿Windows里的計算器,設(shè)計一個圖形界面,其中基本組件包括0~+、*、/、.、=、+/、Back、CE、C、sqrt、%、1/x、。在“編輯”菜單中有“復(fù)制”、“粘貼”菜單項。我的計算器具有的功能如下:實現(xiàn)基本的加、減、乘、除四則運算及開方、求倒、求模。四、設(shè)計思路 工作原理圖開始按鍵判斷進制轉(zhuǎn)換數(shù)字按鍵運用相應(yīng)處理按鍵判斷運算符按鍵進制轉(zhuǎn)換顯示結(jié)果是否繼續(xù)操作結(jié)束 本程序繼承父類Frame,運用了布局管理器GridLayout和Borderlayout,將界面分為三塊,頂上為單行文本框,中間為進制單選鈕和退格、清空按鈕,下面是數(shù)字、符號按鈕?!   ≡诖寺暶鞯氖敲看屋斎氲臄?shù)據(jù)都要進行類型轉(zhuǎn)換。** 繼承的父類: 無 ** 實現(xiàn)的接口:無 ***********************************************************         import .*?!       。薄⒄{(diào)試后的界面:標準型  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
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1