<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    302班

    java突擊隊(duì)
    posts - 151, comments - 74, trackbacks - 0, articles - 14
      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理


    import javax.swing.JOptionPane;
    public class taxQuestion
    {
      public static void main(String[] args)
      {
       //輸入基準(zhǔn)值
       String statusString=JOptionPane.showInputDialog(null,"Enter the filing status:\n"+"(0-single filer,1-married jointly,\n)"+"2-married separately,3-head of household)","Input a status",JOptionPane.QUESTION_MESSAGE);
       int status=Integer.parseInt(statusString);
       //輸入收入値
       String incomeString=JOptionPane.showInputDialog(null,"Enter the taxable income:","Give me your money",JOptionPane.QUESTION_MESSAGE);
       Double income=Double.parseDouble(incomeString);
       double tax=0;
    if(status==0)
      {
       if(income<=1200)
        JOptionPane.showMessageDialog(null,"You should not pay for the tax!","The show of the result",JOptionPane.INFORMATION_MESSAGE);
       else if(income<=3000)
       {
        tax=(income-1200)*0.10;
       JOptionPane.showMessageDialog(null,"You should pay"+tax+"for the tax!","The show of the result",JOptionPane.INFORMATION_MESSAGE);
       }
       else if(income<=10000)
       {
        tax=(income-3000)*0.15;
        JOptionPane.showMessageDialog(null,"You should pay"+tax+"for the tax!","The show of the result",JOptionPane.INFORMATION_MESSAGE);
       }
       else if(income<300000)
       { 
         tax=(income-10000)*0.30;
         JOptionPane.showMessageDialog(null,"You should pay"+tax+"for the tax!","The show of the result",JOptionPane.INFORMATION_MESSAGE);
       }
       else
       {
         tax=(income-300000)*0.80;
         JOptionPane.showMessageDialog(null,"You should pay"+tax+"for the tax!","The show of the result",JOptionPane.INFORMATION_MESSAGE);
       }
      }
       else
       {
         tax=(income-status);
        JOptionPane.showMessageDialog(null,"You should pay"+tax+"for the tax!","The show of the result",JOptionPane.INFORMATION_MESSAGE);
       }
     }
    }
    /////////////////////////////////////////////////////////////////////////
    測試結(jié)果簡要如下:
    ////////////////////////////////////////////////////////////////////////




    主站蜘蛛池模板: 99久久亚洲综合精品成人网| 日韩在线a视频免费播放| 亚洲七七久久精品中文国产| 久久精品国产亚洲av品善| 在线观看免费成人| 亚洲av无码日韩av无码网站冲| 成人免费看片又大又黄| 精品国产日韩亚洲一区在线| 日韩免费三级电影| 黄色网址免费在线| 久久精品亚洲乱码伦伦中文| aa在线免费观看| 久久亚洲私人国产精品| 114一级毛片免费| 亚洲综合欧美色五月俺也去| 日韩高清在线高清免费| 污视频网站在线观看免费| 在线A亚洲老鸭窝天堂| 一区二区三区无码视频免费福利 | 亚洲一区二区三区久久久久| 69成人免费视频| 色欲aⅴ亚洲情无码AV| 亚洲黄片毛片在线观看| 美女视频黄的免费视频网页| 久久夜色精品国产噜噜噜亚洲AV | 日韩va亚洲va欧洲va国产| 99re热精品视频国产免费| 亚洲香蕉久久一区二区| 国产片免费在线观看| 国产在线精品一区免费香蕉| 亚洲成年人电影网站| 国产精品无码一二区免费| 99久久99这里只有免费的精品| 亚洲资源在线视频| 国产精品成人免费综合| 国产成年无码久久久免费| 亚洲中文字幕一二三四区| 亚洲精品国产品国语在线| 免费无码精品黄AV电影| 中文字幕免费播放| 国产亚洲玖玖玖在线观看|