sc1礦機計算器
A. 矽片清洗工序中,sc-1 sc-2化學清洗液PH值怎樣算
標准RCA 溶液配比濃度大:SC1氨水:雙氧水:水=1:1:5-1:2:7
SC2氯化氫:雙氧水:水=1:1:6-1:2:8
氯化氫濃度37% 氨水濃度27% 雙氧水30%
B. 我的計算器是這樣的如何計算標准差
用EXCEL就是啦
C. java中Class.forName().newInstance()顯示有錯誤
((Common)Class.forName(tool).newInstance()).calculateTime();
D. c語言編程
#include <stdio.h>
#include <math.h>
int main()
{short int a1,b1,a2,b2;
scanf("%3hd%4hd%3hd%4hd",&a1,&a2,&b1,&b2);
a1+=b1;
a2+=b2;
if(a2>9999){a1++;a2-=10000;}
printf("a+b=%hd%04hd ",a1,a2);
return 0;
}
E. C語言求大神有好評在線等
這個我就按照要填寫的內容用序號來標註:
第一空:%f %f %f %f, &sc1,&sc2,&sc3,&sc4(這個是輸入語句的格式,書本上最好看下概念)
第二空:( ( sc1 + sc2 + sc3 + sc4)/4 ) >= 80.0 (這個就是一個條件與酸腐語句的一部分,前面括弧中表示的是求四門課的平均成績,然後與80比較,後面部分的?表示的是進行判斷,當滿足大於等於80 的時候,結果是問號後面的是,反之則為否;
第三空:( (sc1>= 80.0) &&(sc2>=80.0)&&(sc3>=80.0)&&(sc4>=80.0)) ,同樣的分析,只不過這個地方的&&表示的是邏輯運算符,表示的是且,就是同時的意思;
第四空:( (sc1>= 80.0) ||(sc2>=80.0)||(sc3>=80.0)||(sc4>=80.0)),將前面的且換成或,也就是說只要這四個之中滿足一個就可以了,如果是真,則結果取問號後面第一個答案,反之去否;
第五空:沒有一門大於等於80,則說明,四門課同時小於80,答案是( (sc1<80.0) &&(sc2<80.0)&&(sc3<80.0)&&(sc4<80.0))
F. JAVA代碼運行不了 圖形計算器
你這個怎麼可能會看到你想要的效果呢,就新建了一個對象而已。要調用你的Main方法才會執行的。main函數裡面應該是 System.out.println(new Main().Main());
G. 求VB計算器代碼
Option Explicit
Private StoredValue As Double
Private Const opNone = 0
Private Const opAdd = 1
Private Const opSubtract = 2
Private Const opMultiply = 3
Private Const opDivide = 4
Private Operator As Integer
Private NewEntry As Boolean
' Remove the last character.
Private Sub DeleteCharacter()
Dim txt As String
Dim min_len As Integer
txt = txtDisplay.Text
If Left$(txt, 1) = "-" Then
min_len = 2
Else
min_len = 1
End If
If Len(txt) > min_len Then
txtDisplay.Text = Left$(txt, Len(txt) - 1)
Else
txtDisplay.Text = "0"
End If
End Sub
' Clear the current entry, saved value, and operator.
Private Sub cmdClear_Click()
cmdClearEntry_Click
StoredValue = 0
Operator = opNone
End Sub
' Clear the current entry.
Private Sub cmdClearEntry_Click()
txtDisplay.Text = ""
End Sub
' Add a decimal point to the display.
Private Sub cmdDecimal_Click()
If InStr(txtDisplay.Text, ".") Then
Beep
Else
If NewEntry Then
txtDisplay.Text = "."
NewEntry = False
Else
txtDisplay.Text = txtDisplay.Text & "."
End If
End If
End Sub
' Calculate the result of the previous operation.
Private Sub cmdEquals_Click()
Dim new_value As Double
If txtDisplay.Text = "" Then
new_value = 0
Else
new_value = CDbl(txtDisplay.Text)
End If
Select Case Operator
Case opNone
StoredValue = new_value
Case opAdd
StoredValue = StoredValue + new_value
Case opSubtract
StoredValue = StoredValue - new_value
Case opMultiply
StoredValue = StoredValue * new_value
Case opDivide
StoredValue = StoredValue / new_value
End Select
Operator = opNone
NewEntry = True
txtDisplay.Text = Format$(StoredValue)
End Sub
' Add a number to the display.
Private Sub cmdNumber_Click(Index As Integer)
If NewEntry Then
txtDisplay.Text = Format$(Index)
NewEntry = False
Else
txtDisplay.Text = _
txtDisplay.Text & Format$(Index)
End If
End Sub
' Prepare to perform an operation.
Private Sub cmdOperator_Click(Index As Integer)
' Perform the previous operation.
cmdEquals_Click
' Remember this operation.
Operator = Index
' Start a new value.
NewEntry = True
End Sub
' Change the value's sign.
Private Sub cmdPlusMinus_Click()
If NewEntry Then
txtDisplay.Text = "-"
ElseIf Left$(txtDisplay.Text, 1) = "-" Then
txtDisplay.Text = Right$(txtDisplay.Text, 2)
Else
txtDisplay.Text = "-" & txtDisplay.Text
End If
End Sub
' Check for normal characters.
Private Sub Form_KeyPress(KeyAscii As Integer)
txtDisplay_KeyPress KeyAscii
End Sub
' Check for unusual characters.
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
txtDisplay_KeyUp KeyCode, Shift
End Sub
' Keep the cursor on the right.
Private Sub txtDisplay_Change()
txtDisplay.SelStart = Len(txtDisplay.Text)
End Sub
' Keep the cursor on the right.
Private Sub txtDisplay_GotFocus()
txtDisplay_Change
End Sub
' Check for normal characters.
Private Sub txtDisplay_KeyPress(KeyAscii As Integer)
Dim ch As String
ch = Chr$(KeyAscii)
Select Case ch
Case "0"
cmdNumber_Click 0
Case "1"
cmdNumber_Click 1
Case "2"
cmdNumber_Click 2
Case "3"
cmdNumber_Click 3
Case "4"
cmdNumber_Click 4
Case "5"
cmdNumber_Click 5
Case "6"
cmdNumber_Click 6
Case "7"
cmdNumber_Click 7
Case "8"
cmdNumber_Click 8
Case "9"
cmdNumber_Click 9
Case "*", "x", "X"
cmdOperator_Click opMultiply
Case "+"
cmdOperator_Click opAdd
Case vbCrLf, vbCr, "="
cmdEquals_Click
Case "-"
cmdOperator_Click opSubtract
Case "."
cmdDecimal_Click
Case "/"
cmdOperator_Click opDivide
Case "C", "c"
cmdClearEntry_Click
End Select
KeyAscii = 0
End Sub
' Check for unusual characters.
Private Sub txtDisplay_KeyUp(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyNumpad0
cmdNumber_Click 0
Case vbKeyNumpad1
cmdNumber_Click 1
Case vbKeyNumpad2
cmdNumber_Click 2
Case vbKeyNumpad3
cmdNumber_Click 3
Case vbKeyNumpad4
cmdNumber_Click 4
Case vbKeyNumpad5
cmdNumber_Click 5
Case vbKeyNumpad6
cmdNumber_Click 6
Case vbKeyNumpad7
cmdNumber_Click 7
Case vbKeyNumpad8
cmdNumber_Click 8
Case vbKeyNumpad9
cmdNumber_Click 9
Case vbKeyMultiply
cmdOperator_Click opMultiply
Case vbKeyAdd
cmdOperator_Click opAdd
Case vbKeySeparator
cmdEquals_Click
Case vbKeySubtract
cmdOperator_Click opSubtract
Case vbKeyDecimal
cmdDecimal_Click
Case vbKeyDivide
cmdOperator_Click opDivide
Case vbKeyBack, vbKeyDelete
DeleteCharacter
End Select
KeyCode = 0
End Sub
H. Java循環,輸入一個數,計算1到這個數的和
StringBuffer,循環完畢剪掉最後一個字元。用string也可以,但是費資源。
或者你寫成
Scanner sc1 = new Scanner(System.in);
System.out.print("輸入任意一個數:");
int c = sc1.nextInt();
System.out.print(1); //先列印處必定有的第一個數1
for(int i = 1;i<=c;i++){
System.out.print("+"+i);....//倒過來寫就成了