package com.company;
import java.util.Scanner;
public class Demo10 {
public static void main(String[] args) {
System.out.println("请输入消费的金额:");
Scanner scanner = new Scanner(System.in);
double sun = scanner.nextDouble();
System.out.println("是否参加优惠活动:");
System.out.println("1.满50,加2元换购百事可乐一瓶");
System.out.println("2.满100,加3元换购500ml可乐一瓶");
System.out.println("3.满100,加10元换购5公斤面粉");
System.out.println("4.满200,加10元换购1个苏泊尔炒菜锅");
System.out.println("5.满200,加20元换购爽肤水一瓶");
System.out.println("0,不换购");
System.out.println("请选择");
int funNo = scanner.nextInt();
switch ( funNo ){
case 1:
if ( sun>= 50 ){
System.out.println("本次消费总金额");
}
}
}
}