某商场推出打折促销活动:若顾客购物额不满 100 元则不优惠;达到或超过 100 元则九五折优惠;达到或超过 200 元则九折优惠;达到或超过 500 元则八五折优惠;达到或超过 1000 元则八折优
时间: 2023-06-05 21:48:02 浏览: 180
这个商场推出了一项打折促销活动,根据顾客购物的金额不同,享受不同的优惠力度。如果顾客的购物金额不到100元,则不享受任何优惠;如果购物金额达到或超过100元,则可以享受95折的优惠;如果购物金额达到或超过200元,则可以享受9折的优惠;如果购物金额达到或超过500元,则可以享受85折的优惠;如果购物金额达到或超过1000元,则可以享受8折的优惠。是的,您的理解是正确的。商场推出了一项打折促销活动,根据顾客的购物金额不同,享受不同的优惠力度。如果顾客的购物金额不到100元,则不享受任何优惠;如果购物金额达到或超过100元,则可以享受95折的优惠;如果购物金额达到或超过200元,则可以享受9折的优惠;如果购物金额达到或超过500元,则可以享受85折的优惠;如果购物金额达到或超过1000元,则可以享受8折的优惠。该商场推出的打折促销活动规则是:如果顾客购买物品的金额不足100元,则没有优惠;如果顾客购买物品的金额达到或超过100元,则享受95折优惠;如果顾客购买物品的金额达到或超过200元,则享受9折优惠;如果顾客购买物品的金额达到或超过500元,则享受8.5折优惠;如果顾客购买物品的金额达到或超过1000元,则享受8折优惠。
请问,如果一个顾客购买了价值850元的商品,那么他可以享受多少折的优惠?折后价格是多少?
请用中文回答。
相关问题
使用C语言写以下代码某商场推出打折促销活动:若顾客购物额不满 100 元则不优惠;达到或超过 100 元则九五折优惠;达到或超过 200 元则九折优惠;达到或超过 500 元则八五折优惠;达到或超过 1000 元则八折优惠。请编写程序,根据购物金额计算优惠后的实际付款金额。
```C
#include <stdio.h>
int main()
{
float total; //购物总金额
float discount = 1.0; //默认优惠无打折,打折系数为1.0
float pay; //应付金额
printf("请输入购物总金额:");
scanf("%f", &total);
if (total >= 100 && total < 200)
{
discount = 0.95; //九五折
}
else if (total >= 200 && total < 500)
{
discount = 0.9; //九折
}
else if (total >= 500 && total < 1000)
{
discount = 0.85; //八五折
}
else if (total >= 1000)
{
discount = 0.8; //八折
}
pay = total * discount;
printf("应付款金额:%.2f元", pay);
return 0;
}
```
用C语言编写以下代码:某商场推出打折促销活动:若顾客购物额不满 100 元则不优惠;达到或超过 100 元则九五折优惠;达到或超过 200 元则九折优惠;达到或超过 500 元则八五折优惠;达到或超过 1000 元则八折优惠。请编写程序,根据购物金额计算优惠后的实际付款金额。
```c
#include <stdio.h>
int main() {
float amount, discount, payable;
printf("请输入购物金额:");
scanf("%f", &amount);
if (amount < 100) {
discount = 0;
} else if (amount < 200) {
discount = 0.05;
} else if (amount < 500) {
discount = 0.1;
} else if (amount < 1000) {
discount = 0.15;
} else {
discount = 0.2;
}
payable = amount * (1 - discount);
printf("优惠后的实际付款金额为:%.2f元\n", payable);
return 0;
}
```
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)