-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
计科:week6 第四次实验 程序流程图和伪代码 #18
Comments
师兄,怎样制作流程图,用word? |
@MattMu 仔细看要求,里面有 |
作业5的数据范围是什么东西? |
流程图是用手画吗,还是用软件制作 |
没有soj.me这个网站呀 |
week6是2041 loop |
soj.me是西西里旧域名吧
---- yyh15336264编写 ---- 没有soj.me这个网站呀 Reply to this email directly or view it on GitHub: |
伪代码要用google style吗 |
请问那个代码风格检测的网站在哪里有啊? |
soj是sicily,如何画流程图上面有写工具,伪代码没有固定格式。大家仔细看作业要求,都是作业里面有详细说明的。 |
在线检测调试中,建议大家用cpplint |
我有一个流程图用的work打的。。没有问题吧 |
可以,不过建议使用推荐的工具 |
实验报告可以是DOC格式吗 |
看要求!pdf |
这个可以忽略不管 |
option 1: Github Discussion |
@yyh15336264 可以考虑把数字当做字符串读入和处理,一是操作方便,二是不受长度限制 |
师兄file structure of filename is wrong到底是什么意思?是指打包提交文件的什么? |
@Tonystark64 就是要根据这个图来安排你的文件和文件名: |
请问一下,下面我写的应该属于伪代码吧 BEGAIN 无限循环,直到i<x或者i<y为止 (if x%i=0 && y%i=0 输出temp OVER |
太长了,可以更简洁些 |
Assignment1有要求写c++代码吗?怎么要提交Source.c? |
@wujr5 我在代码里用了goto,可以么? |
@wujr5
我们的课是星期五的吧…… |
回文素数那个,伪代码要写具体的素数及回文数的判断方式吗? |
@SgLy 改过来了。报名的话直接私聊我,内容自己决定。要求就是上面的要求。 |
@Tonystark64 要写具体判断方式 |
Assignment2冒泡排序可以用自己的算法制流程图或伪代码吗?表示那个有些看不懂 |
@Tonystark64 需要使用给出的代码。 |
print(pData, count)和print(pData, count)怎么区分? |
@Tonystark64 不明白你的问题? |
我没有看到count有赋值?还有就是---------上面那行print(pData,count)指什么? |
@Tonystark64 这是一个函数调用 |
伪代码可以用Word来写吗,我想用不同的颜色标记变量可以吗(我感觉这样更直观,更具有可读性)?还有,必须按照《算法导论》来写伪代码吗?让人更快更好读懂算法就可以吧! |
@iceinJune 可以。 |
你们好厉害 伪代码不是只要是伪的就可以吗 可以用易语言的伪代码风格吗 |
@zzz0906 仔细阅读以下伪代码的定义。其实是能表明程序逻辑就可以了,没有规定的语法。 |
判断回文数时,我开始的思想是通过判断左右对称位置的数是否全部相等来判断是否是回文数 if (n/(pow(10,sum)) == n%10) { |
@yyh15336242 参考相关Markdown语法,改一下你的评论吧。 |
那个 assignment 1 需要提交source么 题目上要求只要伪代码 提交格式上看到要交source? |
@zhuzq5 不需要source,伪代码就可以了。 |
20:48:12
} 卷柏 2015/11/12 20:48:38 卷柏 2015/11/12 20:48:43 |
@wujr5 assignment 2要写伪代码么 题目上并没有哎 |
@yonglc 不能这样写。这样只是稍微修改一下源程序而已 |
那伪代码有什么要求吗。。。这样感觉写伪代码好麻烦啊。。。基本构思的时候就是按源代码想的啊 |
week6 第四次实验 程序流程图和伪代码
1 Flowchart (程序流程图)
A flowchart is a type of diagram that represents an algorithm, workflow or process, showing the steps as boxes of various kinds, and their order by connecting them with arrows. This diagrammatic representation illustrates a solution model to a given problem. Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields.
Detailed Description: flowchat
There is an example:
And this is the flowchart:
2 Pseudocode (伪代码)
Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm.
There is an example:
We can describe this question by this way rather than write a C++ program immediately:
Pseudocode is used to express your thought, you do not need to care about the grammar.
3 Pre Assignment
Learn about Flowchart and Pseudocode.
4 Assignment (100pts)
4.1 Assignment 0 (20pts)
Choose one question from soj.me in week6 in our course and then write the Pseudocode.
4.2 Assignment 1 (35pts)
Translate the following flowchart into Pseudocode
Description
Several surveys indicate that the taller you are, the higher you can climb the corporate ladder. At TALL Enterprises Inc. this "de facto standard" has been properly formalized: your boss is always at least as tall as you are. Furthermore, you can safely assume that your boss earns a bit more than you do. In fact, you can be absolutely sure that your immediate boss is the person who earns the least among all the employees that earn more than you and are at least as tall as you are. Furthermore, if you are the immediate boss of someone, that person is your subordinate, and all his subordinates are your subordinates as well. If you are nobody's boss, then you have no subordinates. As simple as these rules are, many people working for TALL are unsure of to whom they should be turning in their weekly progress report and how many subordinates they have. Write a program that will help in determining for any employee who the immediate boss of that employee is and how many subordinates they have. Quality Assurance at TALL have devised a series of tests to ensure that your program is correct. These test are described below.
May be you can not write out the problem, the only work you will do is write out this program from the following flowchart(Since there are many methods to sort, so you can use one of them, the flowchart does not display in the flow chat, instead a dashed line).
Flowchart
Simple input and output
Input
2
3
123456 14323 1700000
123458 41412 1900000
123457 15221 1800000
123458
4
200002 12234 1832001
200003 15002 1745201
200004 18745 1883410
200001 24834 1921313
200002
Output
(0,2)
(200004,0)
4.3 Assignment 2 (35pts)
Draw a flowchart from the following C++ language program which constructs a bubble sort algorithm.
5 Extended Assignment (10pts)
Draw a flowchart and write Pseudocode as well as a C++ language program for the following description.
6 Discussion,Cooperation and Summary (15pts)
In this part, you will have some options, if you do more options, you will learn more and get more marks.
You should note this part in your report
option 1: Github Discussion
Comment at this issue and decribe a problem that you meet and how you solve detailedly.
Notice that
option 2: Simple Presentation
Have a simple presentation in the lab class on Friday (4 persons limited). And after the presentation, everyone is encouraged to ask questions and you can get bonus by asking good questions.
Notice that
option 3: Helping others
You can help others to slove any problems the will meet. Detailedly decribe the quesion, the solution and your personal experience as well.
Notice that
option 4: Personal Summary
Write personal summary for yourself.
List at least 10 problems that you have met in your learning in c language and decribe the solution as well.
Notice that
7 Report Template
There will be no Report Template this time which means it's all depends on yourself.
Notice that
For example: sinew
8 Flowchart Tool: Process On
Process on is a good tool for drawing flowchart.
link
9 Submit List
Notice that:
13331314 means your student id.
the first assignment need to name your file with your chosen problem id.
10 Deadline
23:59 on Nov 12th, 2015
11 Notification
The text was updated successfully, but these errors were encountered: