基本上在這個網站,你可以得到學分,並與他們購買的東西。如果保持信貸在銀行,你每天都得到增加0.12%:需要幫助獲得一個數字的百分比
我想編寫一個快速程序來計算,但我需要幫助,這是我的代碼:
import java.util.Scanner;
public class project {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.println("-------------------------");
System.out.println("| NextGenUpdate Credits |");
System.out.println("-------------------------");
System.out.println("Credits: ");
double credits = input.nextDouble();
System.out.println("Days: ");
int days = input.nextInt();
int total = //DON'T KNOW WHAT TO PUT HERE
System.out.println("You will have have " + total + " credits in " + days + " days.");
}
}
[快速谷歌搜索數學每日複合利息應該幫助](https://www.google。 de/search?q = math + compounded + interest&oq = math + compounded + interest&aqs = chrome..69i57j0l5.1350j0j7&sourceid = chrome&ie = UTF-8#q = math + daily + compounded + interest +) – SomeJavaGuy