EE308 Lab5

m0_56404396 2021-10-18 23:01:49
The Link Your Class https://bbs.csdn.net/forums/MUEE308FZ?category=0
The Link of Requirement of This Assignment https://bbs.csdn.net/topics/602043584
The Aim of This AssignmentDevelopment of an Oral Calculation Program
MU STU ID and FZU STU ID831901225_19104022
Teammate's ID and FZU STU ID (Teammate)19105151_831901204;19105274_831901203;19105681_831901211
The Link of GitHub link https://github.com/Gamker3777/ee308lab5

PSP form

Personal Software Process StagesEstimated Time(minutes)Completed Time(minutes)
Planning--
Estimate1010
Development--
Analysis2030
Design Spec3040
Design Review4040
Coding Standard2020
Design--
Coding2020
Code Review Planning3030
Test1010
Reporting--
Test Report1010
Size Measurement1010
Postmortem&Process Improvement3030
Total230250
8 weeksNew code (line)Cumulative code (lines)Learning time this week (hours)Total Learning Time (hours)Important growth
17369244Familiar with c + +

content
1.The division of responsibilities of team members;

2.The program running environment;

3.Screenshot of the software running;

4.Three events that take a long time in coding, arguing, reviewing and other activities and give you great gains;

5.Team programming experience;

6.Team programming experience

1.The division of responsibilities of team members
(1)WANQI CHEN and ZEJING FANG are mainly responsible for Grade;
(2)ZHENG YU writes CSDN;
(3)ZEYAN WEI is responsible for the uploading of the Github.

2.The program running environment
The C++ language is very flexible and powerful. The advantage of C++ is the design of performance and class hierarchy structure, which is very rigorous, accurate and mathematical, and the standard definition is very detailed, so we choose C++ as the programming language.

Code specification:
https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/contents/

3. Screenshot of the software running
Firstly, in the design process, we found that multiple layers of identification input and different operations are required this time, which is different from the single or single-layer input and judgment we faced before.

img

Secondly, since the use of random numbers is involved, we are not familiar with the call of such functions. Therefore, we have fully understood the use of Rand functions through consulting materials. At the same time, we note that random numbers can also help us generate random operators. Since Grades 3-6 need to calculate multiplication and division, we use if statements to represent "+" "-" "*" "/" by generating four numbers: 0, 1, 2 and 3. After running the program, we found that there are some small mathematical problems in the program. For example, negative numbers and divisor 0 may occur during subtraction. We also realized through the code that there will be no questions with negative answers and divisor 0.

img

Thirdly, when generating decimals, sometimes the answer is infinite decimals, and the result we need is to retain two decimal places. After the brainstorming of team members, we use the following methods to realize the operation of retaining two decimal places. We first add 0.005 to the obtained data, and this step realizes the rounding of the two decimal places after the decimal point, Then multiply the number by 100 to get an integer of type int, and then divide by 100 to get a floating-point number in the form of float, that is, the answer we need.

img

Finally, in order to accomplish the main function, we use the random numbers and get the results. Then, we compare the result to the answer that typed in. We divided the whole score, which is 100, by the number of questions. If the answer is true, we add the score. If wrong, we lose the score. At the end, we calculate the scores we gain, and show it on the screen.

img

img

img

img

img

4. Three events that arguing
(1)Writing key parts of the code
The most critical part of the oral calculation program is to Write core calculating function code. In this part, there are three different levels of difficulty, each of which requires different computational functions and needs the random numbers. This part of the code is the most logical and complex part. Although it's difficult, we finished it. When this part of the code is complete, there are many gains
for us.

(2)Co-edit GitHub
Github still strange for us, so when we making operation on Github, we are not very skilled, after building team and repositories, every members need to create a branch to write the code, and when synchronizing all members' code, which needs to maintain the same code format, so it took us a lot of time to accomplish it.

(3)Team programming
The difficulty of multi-team programming is that each team member sometimes thinks differently and needs to be on the same pagewhen programming, which took some time to coordinate and discuss.

5. Software operating environment detection
https://b23.tv/vmet8b

6. Team programming experience
We have had some pair programming experience since last week, but this week's experiment requires teamwork. Through teamwork, we can better allocate the parts that need to be completed individually and the parts that need to be completed together to multiple team members. During this experiment ,everything is going on well actuallywith our excellent ,talented teammatesWe firstly finished the calculating codes,also modified,executed it.Then the followings is a series of tasks.As a matter offact, we have faced a few troublesome problems.We respected each other's ideas and were able to control and plan our working hours so that we could complete programming tasks within the allotted time and improve our work in the future.

...全文
182 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

183

社区成员

发帖
与我相关
我的任务
社区描述
福州大学 梅努斯国际工程学院 软件工程 教学
软件工程 高校
社区管理员
  • 单步调试
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧