README.md
1# util Tool Function - Scope
2
3### Introduction
4
5This sample app checks whether a value is within a specified scope, calculates the intersection and union sets of two scopes, and calculates the upper and lower limits of a scope.
6
7### Usage
8
91. Enter your age in the text box and touch **Age analysis**. The system checks whether your age is within the specified scope and displays a message to indicate the result.
10
112. Enter your body temperature in the text box and touch **Temperature analysis**. The system checks whether the highest and lowest temperatures are within the average body temperature scope and displays a message to indicate the result.
12
133. Enter your longest sleep time and shortest sleep time in a month in the text boxes, and touch **Sleep analysis**. The system calculates the intersection and union sets of your sleep time and the normal sleep time and displays a message to indicate the result.
14
15### Constraints
16
17This sample can only be run on standard-system devices.
18
README_zh.md
1# 范围判断
2
3### 简介
4
5本示例可以判断某一个数值是否在给定范围内,可以算出两个范围之间的交集,并集,也能算出一个区间的最大最小值。
6
7实现效果如下:
8
9
10
11### 相关概念
12
13Scope:提供范围判断功能。
14
15### 相关权限
16
17不涉及。
18
19### 使用说明
20
211.在文本框中输入年龄,点击**年龄分析**按钮,判断您的年龄是否符合工作年龄限制(18-62岁),并弹窗提示。
22
232.在文本框输入一天的体温情况,点击**体温分析**按钮,会根据体温的最大值和最小值判断体温是否在正常范围,并弹窗提示。
24
253.在文本框输入一个月睡眠最长,最短时间,点击**睡眠分析**按钮,会根据输入的睡眠时长计算与正常睡眠时长的并集和交集,并弹窗提示。
26
27### 约束与限制
28
291.本示例仅支持在标准系统上运行。
30
312.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。