This commit is contained in:
m-mun
2026-09-09 08:34:32 +09:00
parent 8e67b4ccb9
commit 1b863df929
181 changed files with 34869 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/*
* PTra02_08.java
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
public class PTra02_08 {
public static void main(String[] args) {
// 所持金
int money = 1000;
// 商品価格(税抜)
int price = 580;
// 消費税率
double taxRate = 0.08;
// TODO 買い物した際の残金計算をします。
// TODO 所持金から価格を引いた値を、買い物後の所持金として再代入してください。
// ※消費税を考慮してください。税込み商品価格の端数は切り捨てとします。
// 残金の表示部分です。編集しないでください
System.out.println("残金は" + money + "円です。");
}
}