EE308_lab5
| The Link of Requirement of This Assignment | |
| ruoyu Wang MU STU ID and FZU STU ID | 19104332 -- 831901214 |
| haotian Lin MU STU ID and FZU STU ID | 19105738 -- 831901221 |
| yanhan Zhang MU STU ID and FZU STU ID | 19105924 -- 831901302 |
| Wei Liu MU STU ID and FZU STU ID | 19103832 -- 831901226 |
| xingyu Ma MU STU ID and FZU STU ID | 19103875 -- 831901219 |
Github:https://github.com/3MarkAeolus10/LAB5
written it up front. Finally, an easy experiment,and multiplayer

MU LU
4.Problem collection and resolution
2.Open the file path displayed
3.Log in to your GitHub account for binding
<2> click SSH and GPGkey,and click NEW SSH KEY in the top right corner
<3>Paste in the previously obtained code into key
1.PSP FORM
| PSP Stages | Estimated Time/mins | Completed Time/mins |
| Planning | 10 | 10 |
| Time Estimation | - | - |
| Development | - | - |
| Requirement Analysis | 10 | 10 |
| Design Documents | - | - |
| Design Review | - | - |
| Code Specification | 10 | 10 |
| Specific Design | 30 | 30 |
| Specific Coding | 30 | 30 |
| Code Review | - | - |
| Test | 10 | 10 |
| Presentation | - | - |
| Test Report | - | - |
| Calculation Workload | - | - |
| Summary&Improvement | 30 | 30 |
| Total | 130 | 130 |
2.IDEA
1.Software Selection
In the selection of software, the team had differences in the use of wechat applet, c++ and python coding. Finally, we asked the teaching assistant and explained that this experiment should not be implemented as a applet, but only in the console of the code. Python is easier to realize than c++ in generating random numbers and controlling the reserved digits of random numbers, so we finally choose python for coding.
2.Design Idea

We divide the task into judge grade and number of questions function and Grade1_2, Grade3_4, Grade5_6, judge right and wrong function and write fraction function. Finally, integrate in the main page. When we did the integration on the main page, we wanted to code using classes because we thought it would keep the code simple. However, the final written program does not fit the purpose of the experiment well. So we just code it in a generic way.
3.Task Allocation
| ruoyu Wang | code Grade3_4 function,Summary program, test program |
| yanhan zhang | Prepare grade input, item quantity input, result judgment, result output procedure |
| haotian Lin | code Grade5_6 function,write blog |
| wei Liu |
code Grade1_2 function |
| xingyu Ma | build Github Public warehouse |
4.Problem collection and resolution
The main problem we encountered in this experiment was the creation of the Github common repository, and since the tutorial hasn't been updated, there are some key parts we don't understand. We spent a lot of time here
1.Download git
Bind your local Git repository to Github

2.Open the file path displayed
![]()
Copy the value of ssh.key (that is, open the following file (open with Notepad) and copy it)
![]()
3.Log in to your GitHub account for binding
<1>click setting

<2> click SSH and GPGkey,and click NEW SSH KEY in the top right corner

<3>Paste in the previously obtained code into key

<4>Select someone to create a project on GitHub and share the project's SSH code with a teammate. Click fork to upload the file

<5>Finally, click Pull Requests and click NEW Pull REQUEST in the upper right corner, and wait for the owner to pass

5.Code Presentation
Here mainly shows the fifth and sixth grade set the question part, and the result comparison, the result part of the code
1.Grade 5_6
def Grade56():
flag = random.randint(1, 4)
num1 = random.uniform(0, 1000)
num2 = random.uniform(0, 1000)
num1 = round(num1, 2)
num2 = round(num2, 2)
if (flag == 1):
print(num1, " + ", num2, " = ?")
sol = num1 + num2
elif (flag == 2):
while (num1 < num2):
num1 = random.uniform(0, 1000)
num2 = random.uniform(0, 1000)
num1 = round(num1, 2)
num2 = round(num2, 2)
print(num1, " - ", num2, " = ?")
sol = round(num1 - num2,2)
elif (flag == 3):
print(num1, " × ", num2, " = ?")
sol = num1 * num2
elif (flag == 4):
while (flag == 0):
num2 = random.uniform(0, 1000)
num2 = round(num2, 2)
print(num1, " ÷ ", num2, " = ?")
sol = round(num1 / num2 ,2)
return sol
2.result judge and score
def judge(right,sol):
answer = input('Please enter your answer: ')
if float(answer) == sol:
right = right + 1
return right
def score(right):
score = 100 * (right / n)
if score == 100:
print("End ! All right, that is great! Your score is 100.")
else:
print("End ! Wrong question. Your score is", score, ".")
6.summary
Since this was the first group work, we divided the question into several modules after simple analysis. Because we were not familiar with the use of Git, it took us the longest time to build the warehouse. On the contrary, the code design was quickly completed under everyone's discussion. In this cooperation, we realized the power of a team. We got together to write code and asked each other what we didn't understand. The process was very efficient and quick.In my opinion, we can learn from each other, help each other and grow up together when we finish the homework in the form of group cooperation, which is probably the charm of group cooperation.
相关推荐
EE-308 LAB4 final version.7z
这是本次实验的压缩包
EE308-Lab8-AlphaSprint-Day5
EE308-Lab8-AlphaSprint-Day5Feedback From Members1. Beichen, ZhouModulePersonal SummaryCode & Results2. Yuwei, JiangModulePersonal SummaryCode & Results3. Yifan, ZhuModulePersonal Summary4. Yifan, ShenModulePersonal SummaryCode & Results5. Shenk
EE308-Lab5-设计一款口算程序
设计一款口算程序介绍需求
EE308-Lab11-Software Testing
unittest for Python
EE308-Lab8-AlphaSprint-Day6
EE308-Lab8-AlphaSprint-Day6Feedback From Members1. Beichen, ZhouModulePersonal SummaryCode & Results2. Yuwei, JiangModulePersonal SummaryCode & Results3. Yifan, ZhuModulePersonal Summary4. Yifan, ShenModulePersonal SummaryCode & Results5. Shenk


