[問題] C++作業一問
Use a one-dimensional array to solve the following problem.
A company pays its salespeople on a commission basis.
The salespeople each receive $200 per week plus 9 percent of their gross sales
for that week. For example, a salesperson who grosses $5000 in sales
in a week receives $200 plus 9 percent of $5000, or a total of $650.
Write a program (using an array of counters) that determines
how many of the salespeople earned salaries in each of the following ranges
(assume that each salesperson's salary is truncated to an integer amount):
a.$ 200$299 b.$300$399 c.$400$499 d.$500$599 e.$600$699 f.$700$799
g.$800$899 h.$900$999 i.$1000 and over
題目是這樣子
基本上我知道他在說什麼
可是最後一段
他問我 每個銷售員可以得到的薪資是多少
用以下的範圍
到底要用什麼數據去算呢?
我想法是:
用陣列算 銷售總額為 200~ 1000的薪資 可是 over要怎麼算?
真正要我求的是這個意思嗎?
這是課本習題 我真不懂他~"~
拜託高手解救
感激不盡
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.169.131.151
推
06/13 14:00, , 1F
06/13 14:00, 1F
→
06/13 14:03, , 2F
06/13 14:03, 2F
討論串 (同標題文章)