知識
不管是網(wǎng)站,軟件還是小程序,都要直接或間接能為您產(chǎn)生價值,我們在追求其視覺表現(xiàn)的同時,更側(cè)重于功能的便捷,營銷的便利,運營的高效,讓網(wǎng)站成為營銷工具,讓軟件能切實提升企業(yè)內(nèi)部管理水平和效率。優(yōu)秀的程序為后期升級提供便捷的支持!
第五章第三十九題(金融應用:求銷售總額)(Financial application: find t
發(fā)表時間:2020-10-19
發(fā)布人:葵宇科技
瀏覽次數(shù):104
第五章第三十九題(金融應用:求銷售總額)(Financial application: find the sales amount)
- *5.39(金融應用:求銷售總額)假設你正在某百貨商店開始銷售工作。你的工資包括基本工資和提成?;竟べY是5000美元。使用下面的方案確定你的提成率。
你的目標是一年掙30000美元。編寫程序找出為掙到30000美元,你所必須完成的最小銷售額。
*5.39 (Financial application: find the sales amount) You have just started a sales job in a department store. Your pay consists of a base salary and a commission. The base salary is $5,000. The scheme shown below is used to determine the commission rate.
Your goal is to earn $30,000 a year. Write a program to find the minimum sales you have to generate in order to make $30,000.
- 參考代碼:
package chapter05;
public class Code_39 {
public static void main(String[] args) {
final int BASE_SALARY = 5000;
int salesAmount = 10000;
double mySalary = 0;
do {
mySalary = BASE_SALARY + 5000 * 0.08 + 5000 * 0.10 + (salesAmount-10000) * 0.12;
salesAmount++;
} while (mySalary < 30000);
System.out.printf("The minimum sales you have to generate is %d", salesAmount);
}
}
- 結(jié)果顯示:
The minimum sales you have to generate is 210835
Process finished with exit code 0
相關(guān)案例查看更多
相關(guān)閱讀
- 江蘇小程序開發(fā)
- 云南小程序開發(fā)哪家好
- 云南小程序定制
- 網(wǎng)站建設開發(fā)
- 楚雄小程序開發(fā)
- 網(wǎng)絡公司報價
- 旅游網(wǎng)站建設
- 云南旅游網(wǎng)站建設
- 網(wǎng)站開發(fā)
- uniapp開發(fā)小程序
- 云南花農(nóng)小程序
- 昆明小程序代建
- 汽車報廢管理
- 云南小程序開發(fā)公司推薦
- 國內(nèi)知名網(wǎng)站建設公司排名
- 云南網(wǎng)站制作
- 小程序
- 網(wǎng)站建設方法
- 小程序商城
- 大理小程序開發(fā)
- 網(wǎng)站開發(fā)公司哪家好
- 網(wǎng)站建設案例
- 云南百度小程序
- 云南網(wǎng)站建設服務公司
- 云南網(wǎng)站建設百度
- 汽車報廢回收管理系統(tǒng)
- 云南網(wǎng)站建設公司排名
- 搜索引擎優(yōu)化
- 網(wǎng)站建設優(yōu)化
- 百度快速排名