請定義類別
class student
{
String name;
int score;
....
};
有五筆學生資料:
學生甲 54
學生乙 83
學生丙 66
學生丁 88
學生戊 65
(1) 請宣告1個屬於student類別之陣列物件stu[ ],
並請將五筆學生資料的值於程式碼中存入陣列物件stu[ ]中。
(2) 利用迴圈,列印出這五名學生成績的總平均。
(3) 利用迴圈,列印出這五名學生不及格之學生姓名。
herrDeng網內搜尋

自訂搜尋
Ads
訂閱:
文章 (Atom)
熱門文章
-
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...
-
需要練習的Java程式:
-
Ex1 加權平均
-
Leetcode 342 Power of Four幾個C++一行解 [codes on Leetcode] https://leetcode.com/problems/power-of-four/solutions/7081839/9-ways-of-bit-manipula...
-
請用Java顯示以下字串:
-
計算gcd(123456789,999999999)