# 資料處理題庫

【非選題】

 最佳解! Angus Yang 大二上 (2013/08/19)     102     /*使用C++喔,可在Dev-C++ 4.9.9執行*/ #include using namespace std; main() { float old_t,new_t; float old_m,new_m,final; old_t=0; new_t=0; char key_in; key_in = 'a'; new_t=0; old_t=0; cout << "press any key" << endl; cout << "請按A~Z鍵結束,或按任何鍵繼續:"<> key_in; while( (key_in < 'A') || (key_in > 'Z') ) { old_m = 0; new_m = 0; cout << "請輸入員工薪資" << endl; cin >> old_m; old_t = old_t + old_m; if (old_m >= 50000) { cout << "薪資已大於或等於50000.....看完整詳...查看完整內容 檢舉
2F
Eggplant Lu 幼稚園下 (2013/09/05)     1
import java.util.Scanner;
public class 員工調增薪資 {
public static void main(String[] args) { // TODO 自動產生的方法 Stub Scanner sc = new Scanner(System.in); System.out.println("請輸入一位員工的薪資或輸入A~Z之任一字元結束。:"); String st = sc.nextLine();
String[] str_inc = st.split(" "); int total = 0; for (int i = 0; i < str_inc.length; i++) { int income = Integer.valueOf(str_inc[i]); double per_total = income * (1 + 0.03); double increase = income * 0.03; if (per_total <= 5000) { System.out.println("調整後薪資為: " + (int) (per_total)); total += increase; }
} ...

3F
Yu Chu Chu (2015/09/18)     1
(1)class