diff --git a/bin/assignment1/Encrypt.class b/bin/assignment1/Encrypt.class new file mode 100644 index 0000000..0534bfd Binary files /dev/null and b/bin/assignment1/Encrypt.class differ diff --git a/bin/assignment1/PasswordChange.class b/bin/assignment1/PasswordChange.class new file mode 100644 index 0000000..3c2f238 Binary files /dev/null and b/bin/assignment1/PasswordChange.class differ diff --git a/bin/assignment1/ProductAdditionAndInquiry.class b/bin/assignment1/ProductAdditionAndInquiry.class new file mode 100644 index 0000000..7f42f51 Binary files /dev/null and b/bin/assignment1/ProductAdditionAndInquiry.class differ diff --git a/bin/assignment1/UserLogin.class b/bin/assignment1/UserLogin.class new file mode 100644 index 0000000..093c71e Binary files /dev/null and b/bin/assignment1/UserLogin.class differ diff --git a/bin/assignment1/商品信息.txt b/bin/assignment1/商品信息.txt new file mode 100644 index 0000000..1463cbd --- /dev/null +++ b/bin/assignment1/商品信息.txt @@ -0,0 +1,9 @@ +商品条码 商品名称 单价 供应商 +========================= +100001 手机 4500.00 华为 +100002 鼠标 61.00 华为 +300001 运动鞋 485 耐克 +300002 衬衣 270 雅戈尔 +300003 牛仔裤 156.5 啄木鸟 +400001 电冰箱 4500 海尔 +400002 电视机 6999 长虹 \ No newline at end of file diff --git a/bin/assignment1/商品信息.xls b/bin/assignment1/商品信息.xls new file mode 100644 index 0000000..79518bc Binary files /dev/null and b/bin/assignment1/商品信息.xls differ diff --git a/bin/assignment1/数据库脚本.sql b/bin/assignment1/数据库脚本.sql new file mode 100644 index 0000000..3700108 --- /dev/null +++ b/bin/assignment1/数据库脚本.sql @@ -0,0 +1,77 @@ +/* +Navicat MySQL Data Transfer + +Source Server : localhost_3306 +Source Server Version : 80032 +Source Host : localhost:3306 +Source Database : xiaoshou + +Target Server Type : MYSQL +Target Server Version : 80032 +File Encoding : 65001 + +Date: 2023-05-11 10:27:07 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for t_shangping +-- ---------------------------- +DROP TABLE IF EXISTS `t_shangping`; +CREATE TABLE `t_shangping` ( + `tiaoma` varchar(255) NOT NULL, + `mingcheng` varchar(255) DEFAULT NULL, + `danjia` decimal(10,2) DEFAULT NULL, + `gongyingshang` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tiaoma`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of t_shangping +-- ---------------------------- +INSERT INTO `t_shangping` VALUES ('100001', '手机', '4500.00', '华为'); +INSERT INTO `t_shangping` VALUES ('100002', '鼠标', '61.00', '华为'); +INSERT INTO `t_shangping` VALUES ('100003', '矿泉水', '2.50', '农夫山泉'); +INSERT INTO `t_shangping` VALUES ('100004', '香烟', '20.00', '武汉卷烟厂'); +INSERT INTO `t_shangping` VALUES ('100005', '牙膏', '4.50', '中华牙膏厂'); +INSERT INTO `t_shangping` VALUES ('200001', '电脑', '4300.00', 'dell'); +INSERT INTO `t_shangping` VALUES ('200002', '小明同学', '5.50', '武汉饮料集团'); + +-- ---------------------------- +-- Table structure for t_shouyinmingxi +-- ---------------------------- +DROP TABLE IF EXISTS `t_shouyinmingxi`; +CREATE TABLE `t_shouyinmingxi` ( + `liushuihao` varchar(255) NOT NULL, + `tiaoma` varchar(255) DEFAULT NULL, + `mingcheng` varchar(255) DEFAULT NULL, + `danjia` decimal(10,0) DEFAULT NULL, + `shuliang` int DEFAULT NULL, + `shouyinyuan` varchar(255) DEFAULT NULL, + `xiaoshoushijian` datetime DEFAULT NULL, + PRIMARY KEY (`liushuihao`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of t_shouyinmingxi +-- ---------------------------- + +-- ---------------------------- +-- Table structure for t_yonghu +-- ---------------------------- +DROP TABLE IF EXISTS `t_yonghu`; +CREATE TABLE `t_yonghu` ( + `yonghuming` varchar(255) NOT NULL, + `mima` varchar(255) DEFAULT NULL, + `xingming` varchar(255) DEFAULT NULL, + `juese` varchar(255) DEFAULT NULL, + PRIMARY KEY (`yonghuming`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of t_yonghu +-- ---------------------------- +INSERT INTO `t_yonghu` VALUES ('niegang', null, '聂刚', '管理员'); +INSERT INTO `t_yonghu` VALUES ('wangyuxin', null, '王玉欣', '收银员'); +INSERT INTO `t_yonghu` VALUES ('xiaowang', null, '小王', '收银员'); diff --git a/bin/calculator/Add.class b/bin/calculator/Add.class new file mode 100644 index 0000000..a36a266 Binary files /dev/null and b/bin/calculator/Add.class differ diff --git a/bin/calculator/Compute.class b/bin/calculator/Compute.class new file mode 100644 index 0000000..70da9b2 Binary files /dev/null and b/bin/calculator/Compute.class differ diff --git a/bin/calculator/Divide.class b/bin/calculator/Divide.class new file mode 100644 index 0000000..76f1bd7 Binary files /dev/null and b/bin/calculator/Divide.class differ diff --git a/bin/calculator/Factory.class b/bin/calculator/Factory.class new file mode 100644 index 0000000..537abca Binary files /dev/null and b/bin/calculator/Factory.class differ diff --git a/bin/calculator/Multiply.class b/bin/calculator/Multiply.class new file mode 100644 index 0000000..7dfd3f1 Binary files /dev/null and b/bin/calculator/Multiply.class differ diff --git a/bin/calculator/Subtract.class b/bin/calculator/Subtract.class new file mode 100644 index 0000000..8edad8f Binary files /dev/null and b/bin/calculator/Subtract.class differ diff --git a/bin/calculator/Test.class b/bin/calculator/Test.class new file mode 100644 index 0000000..e0954aa Binary files /dev/null and b/bin/calculator/Test.class differ diff --git a/bin/crawler/HtmlFetcher.class b/bin/crawler/HtmlFetcher.class new file mode 100644 index 0000000..4dfad0f Binary files /dev/null and b/bin/crawler/HtmlFetcher.class differ diff --git a/bin/crawler/MatcherGetter.class b/bin/crawler/MatcherGetter.class new file mode 100644 index 0000000..94fc8cd Binary files /dev/null and b/bin/crawler/MatcherGetter.class differ diff --git a/bin/crawler/Test.class b/bin/crawler/Test.class new file mode 100644 index 0000000..a88e914 Binary files /dev/null and b/bin/crawler/Test.class differ diff --git a/bin/equationsolver/QuadraticEquationSolver.class b/bin/equationsolver/QuadraticEquationSolver.class new file mode 100644 index 0000000..64a4da7 Binary files /dev/null and b/bin/equationsolver/QuadraticEquationSolver.class differ diff --git a/bin/excel/Test.class b/bin/excel/Test.class new file mode 100644 index 0000000..15d4156 Binary files /dev/null and b/bin/excel/Test.class differ diff --git a/bin/finalexam/Database/Cashier.class b/bin/finalexam/Database/Cashier.class new file mode 100644 index 0000000..e9d2e66 Binary files /dev/null and b/bin/finalexam/Database/Cashier.class differ diff --git a/bin/finalexam/Database/CashierStatistics.class b/bin/finalexam/Database/CashierStatistics.class new file mode 100644 index 0000000..1c08170 Binary files /dev/null and b/bin/finalexam/Database/CashierStatistics.class differ diff --git a/bin/finalexam/Database/DataInput.class b/bin/finalexam/Database/DataInput.class new file mode 100644 index 0000000..0b9385f Binary files /dev/null and b/bin/finalexam/Database/DataInput.class differ diff --git a/bin/finalexam/Database/DataOutput.class b/bin/finalexam/Database/DataOutput.class new file mode 100644 index 0000000..1b47854 Binary files /dev/null and b/bin/finalexam/Database/DataOutput.class differ diff --git a/bin/finalexam/Database/Encrypt.class b/bin/finalexam/Database/Encrypt.class new file mode 100644 index 0000000..ee5c9de Binary files /dev/null and b/bin/finalexam/Database/Encrypt.class differ diff --git a/bin/finalexam/Database/PasswordChange.class b/bin/finalexam/Database/PasswordChange.class new file mode 100644 index 0000000..4a7aa3a Binary files /dev/null and b/bin/finalexam/Database/PasswordChange.class differ diff --git a/bin/finalexam/Database/PermissionJudgment.class b/bin/finalexam/Database/PermissionJudgment.class new file mode 100644 index 0000000..7e56156 Binary files /dev/null and b/bin/finalexam/Database/PermissionJudgment.class differ diff --git a/bin/finalexam/Database/ProductAdditionAndInquiry.class b/bin/finalexam/Database/ProductAdditionAndInquiry.class new file mode 100644 index 0000000..4b0fab2 Binary files /dev/null and b/bin/finalexam/Database/ProductAdditionAndInquiry.class differ diff --git a/bin/finalexam/Database/ProductModificationAndDeletion.class b/bin/finalexam/Database/ProductModificationAndDeletion.class new file mode 100644 index 0000000..5cd4127 Binary files /dev/null and b/bin/finalexam/Database/ProductModificationAndDeletion.class differ diff --git a/bin/finalexam/Database/UserLogin.class b/bin/finalexam/Database/UserLogin.class new file mode 100644 index 0000000..99e7a59 Binary files /dev/null and b/bin/finalexam/Database/UserLogin.class differ diff --git a/bin/finalexam/StandardIO/DateCalculation.class b/bin/finalexam/StandardIO/DateCalculation.class new file mode 100644 index 0000000..517b58d Binary files /dev/null and b/bin/finalexam/StandardIO/DateCalculation.class differ diff --git a/bin/finalexam/StandardIO/DateFormatOutput.class b/bin/finalexam/StandardIO/DateFormatOutput.class new file mode 100644 index 0000000..47ed124 Binary files /dev/null and b/bin/finalexam/StandardIO/DateFormatOutput.class differ diff --git a/bin/finalexam/StandardIO/Encryption.class b/bin/finalexam/StandardIO/Encryption.class new file mode 100644 index 0000000..953a95e Binary files /dev/null and b/bin/finalexam/StandardIO/Encryption.class differ diff --git a/bin/finalexam/StandardIO/Expressions.class b/bin/finalexam/StandardIO/Expressions.class new file mode 100644 index 0000000..7ffbacf Binary files /dev/null and b/bin/finalexam/StandardIO/Expressions.class differ diff --git a/bin/finalexam/StandardIO/FileIO.class b/bin/finalexam/StandardIO/FileIO.class new file mode 100644 index 0000000..b97c484 Binary files /dev/null and b/bin/finalexam/StandardIO/FileIO.class differ diff --git a/bin/finalexam/StandardIO/Goods.class b/bin/finalexam/StandardIO/Goods.class new file mode 100644 index 0000000..9238a2d Binary files /dev/null and b/bin/finalexam/StandardIO/Goods.class differ diff --git a/bin/finalexam/StandardIO/PrimeNumbers.class b/bin/finalexam/StandardIO/PrimeNumbers.class new file mode 100644 index 0000000..dc73aff Binary files /dev/null and b/bin/finalexam/StandardIO/PrimeNumbers.class differ diff --git a/bin/finalexam/StandardIO/SecurePasswordSpecification.class b/bin/finalexam/StandardIO/SecurePasswordSpecification.class new file mode 100644 index 0000000..9a2ec62 Binary files /dev/null and b/bin/finalexam/StandardIO/SecurePasswordSpecification.class differ diff --git a/bin/finalexam/StandardIO/StatisticsOfProducts.class b/bin/finalexam/StandardIO/StatisticsOfProducts.class new file mode 100644 index 0000000..894750c Binary files /dev/null and b/bin/finalexam/StandardIO/StatisticsOfProducts.class differ diff --git a/bin/finalexam/StandardIO/StringInitialization.class b/bin/finalexam/StandardIO/StringInitialization.class new file mode 100644 index 0000000..923d979 Binary files /dev/null and b/bin/finalexam/StandardIO/StringInitialization.class differ diff --git a/bin/finalexam/StandardIO/SumInReverseOrder.class b/bin/finalexam/StandardIO/SumInReverseOrder.class new file mode 100644 index 0000000..0823f79 Binary files /dev/null and b/bin/finalexam/StandardIO/SumInReverseOrder.class differ diff --git a/bin/finalexam/StandardIO/question.txt b/bin/finalexam/StandardIO/question.txt new file mode 100644 index 0000000..3b5ce08 --- /dev/null +++ b/bin/finalexam/StandardIO/question.txt @@ -0,0 +1,5 @@ +add(1,2) +sub(4.5,2) +max(7.5,2) +min(5,3) +doubleMe(3.5) \ No newline at end of file diff --git a/bin/library/Administrator.class b/bin/library/Administrator.class new file mode 100644 index 0000000..6d6c2b7 Binary files /dev/null and b/bin/library/Administrator.class differ diff --git a/bin/library/Bag.class b/bin/library/Bag.class new file mode 100644 index 0000000..4da1908 Binary files /dev/null and b/bin/library/Bag.class differ diff --git a/bin/library/Book.class b/bin/library/Book.class new file mode 100644 index 0000000..9505901 Binary files /dev/null and b/bin/library/Book.class differ diff --git a/bin/library/Library.class b/bin/library/Library.class new file mode 100644 index 0000000..f58d582 Binary files /dev/null and b/bin/library/Library.class differ diff --git a/bin/library/Student.class b/bin/library/Student.class new file mode 100644 index 0000000..79ebc4a Binary files /dev/null and b/bin/library/Student.class differ diff --git a/bin/library/Test.class b/bin/library/Test.class new file mode 100644 index 0000000..b1181f9 Binary files /dev/null and b/bin/library/Test.class differ diff --git a/bin/school/Administrator.class b/bin/school/Administrator.class new file mode 100644 index 0000000..3f23bfc Binary files /dev/null and b/bin/school/Administrator.class differ diff --git a/bin/school/ManagementSys.class b/bin/school/ManagementSys.class new file mode 100644 index 0000000..e52403e Binary files /dev/null and b/bin/school/ManagementSys.class differ diff --git a/bin/school/Manager.class b/bin/school/Manager.class new file mode 100644 index 0000000..4a9f1d4 Binary files /dev/null and b/bin/school/Manager.class differ diff --git a/bin/school/Person.class b/bin/school/Person.class new file mode 100644 index 0000000..493d742 Binary files /dev/null and b/bin/school/Person.class differ diff --git a/bin/school/Staff.class b/bin/school/Staff.class new file mode 100644 index 0000000..a36a9b1 Binary files /dev/null and b/bin/school/Staff.class differ diff --git a/bin/school/Student.class b/bin/school/Student.class new file mode 100644 index 0000000..85adaae Binary files /dev/null and b/bin/school/Student.class differ diff --git a/bin/school/Teacher.class b/bin/school/Teacher.class new file mode 100644 index 0000000..3ed48d0 Binary files /dev/null and b/bin/school/Teacher.class differ diff --git a/bin/school/Test.class b/bin/school/Test.class new file mode 100644 index 0000000..d35b40f Binary files /dev/null and b/bin/school/Test.class differ diff --git a/bin/shopping/Cashier.class b/bin/shopping/Cashier.class new file mode 100644 index 0000000..502a559 Binary files /dev/null and b/bin/shopping/Cashier.class differ diff --git a/bin/shopping/Customer.class b/bin/shopping/Customer.class new file mode 100644 index 0000000..0510724 Binary files /dev/null and b/bin/shopping/Customer.class differ diff --git a/bin/shopping/Good.class b/bin/shopping/Good.class new file mode 100644 index 0000000..8bcfd5d Binary files /dev/null and b/bin/shopping/Good.class differ diff --git a/bin/shopping/ShopCar.class b/bin/shopping/ShopCar.class new file mode 100644 index 0000000..d2923a7 Binary files /dev/null and b/bin/shopping/ShopCar.class differ diff --git a/bin/shopping/Test.class b/bin/shopping/Test.class new file mode 100644 index 0000000..d844e4c Binary files /dev/null and b/bin/shopping/Test.class differ diff --git a/bin/ticket/Test.class b/bin/ticket/Test.class new file mode 100644 index 0000000..b154f7b Binary files /dev/null and b/bin/ticket/Test.class differ diff --git a/bin/ticket/TicketSeller.class b/bin/ticket/TicketSeller.class new file mode 100644 index 0000000..c915007 Binary files /dev/null and b/bin/ticket/TicketSeller.class differ diff --git a/bin/ticket/combinations.py b/bin/ticket/combinations.py new file mode 100644 index 0000000..dde6104 --- /dev/null +++ b/bin/ticket/combinations.py @@ -0,0 +1,12 @@ +def find_combinations(): + combinations = [] + for i in range(10): + for j in range(5): + for k in range(3): + if 5 * i + 10 * j + 20 * k == 45: + combinations.append((i, j, k)) + return combinations + + +combinations = find_combinations() +print(f"The combinations of 5, 10, and 20 that sum up to 45 are: {combinations}")