import java.util.Scanner;
public class IfElse01 {
public static void main(String[] args) {
/*练习:普通顾客购物满100元打9折,会员购物打8。5折
会员购物满200元打7.5折,最后输出总金额。
*/
Scanner input = new Scanner(System.in);
System.out.print("请输入顾客性质:");
String vip = input.next();
System.out.print("请输入消费金额:");
double money = input.nextDouble();
if("是".equals(vip)){
//会员
if(money >= 100 && money <200){
//100
System.out.println("最终购物金额: " + money * 0.85);
}else if(money >= 200){
//200
System.out.println("最终购物金额: " + money* 0.75);
} else if(money < 100){
System.out.println("最终购物金额: " + money);
}else{
//不是会员
if(money >= 100){
System.out.println("最终购物金额: " + money * 0.9);
}else{
System.out.println("最终购物金额: " + money);
}
}
}
}
}