欢迎使用题易搜网站

题易搜

离线详情

国家开放大学-Java语言程序设计-形考任务3:实验1-数据类型的使用

发布文件:2024-09-11 59 次 20金币

国开、奥鹏所有的在线答案、离线答案都可在首页进行搜索,搜不到的可以联系客服!所有答案都有!右下角微信扫码可以添加客服微信。

答案已添加至底下文档中,可登录下载完整版。

源代码:

public class Main {

    public static void main(String[] args) {

        String customer1 = "小明";

        int mineralWater1 = 2;

        int bread1 = 1;

        int coke1 = 1;

        double totalPrice1 = calculateTotalPrice(mineralWater1, bread1, coke1);

        printCustomerInfo(customer1, mineralWater1, bread1, coke1, totalPrice1);

 

        String customer2 = "小美";

        int iceCream2 = 3;

        int coke2 = 2;

        int instantNoodles2 =............ 

您需要登录才可以下载或查看,没有账号?会员注册