自动反馈用于编程分配 [英] Automatic feedback For Programming Assignment

查看:51
本文介绍了自动反馈用于编程分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我是新来的,但如果我能得到答案,我将不胜感激。



我将为编程分配系统构建一个微型自动反馈作为最后一年的项目。



该系统将通过网络表格或C在C中进行编程任务文本文件并检查错误。然后,它将通知程序的上传者错误和预期的可能更正。它不一定是评分系统。



我只是想知道如何从这开始。任何知道如何实现我的目标的人都应该帮帮忙。



谢谢。



编辑:网络系统将采用一个代码片段,该代码片段将由学生使用该平台提交,并检查不会让代码编译或导致代码错误的错误。然后它会输出这些错误,从而建议学生关注的地方。

Hello,

Am new here but I will appreciate if I can get an answer.

I am to build a miniature automatic feedback for programming assignment system as a final year project.

This system will take a programming assignment in C either through a web form or a text file and check for errors. It will then notify the uploader of the program of the errors and possible corrections expected. It isn't necessarily going to be a grading system.

I just want to know how to start with this. Anyone who has any idea what I can do to acheive my objective should please help out.

Thanks.

The web system will take a code snippet which will be submitted by a student using the platform and check for errors that won't let the code compile or that makes the code wrong. It will then output these errors, thereby advising the student on where to focus on.

推荐答案

你加入的很好,但这不是其他人愿意做的地方你的家庭作业或最后一年的项目。你真的需要自己做。但是,如果您在某些方面遇到任何具体问题需要帮助,那么这就是您要去的地方。问题需要针对某些问题进行具体说明。就像你尝试过上传功能一样,在你尝试搜索网页以获取更多信息之后,你仍然无法使用它。你质疑自己缺少什么以及为什么它仍然不起作用。然后,您发布到目前为止所做的信息和代码,这里的成员将很高兴看看并帮助您,如果他们可以。



希望上面能说明这个网站的全部内容(以及它不是什么)。



祝你好运!
Nice you joined, but this isn't the place others are willing to do your homework assignments or final year projects. You really need to do it yourself. If, however, you have any specific problems at some point you need help with, this is the place to go. Questions need to be specific about some problem. Like you tried something to get upload functionality going and after you tried and searched the web for more info you still not get it working. You question yourself about what you are missing and why it still won't work. You then post info and code on what you did so far and members here will be glad to have a look and help you out if they can.

Hopefully above makes it more clear what this site is all about (and what it ain't).

Good luck!


我被要求编写一个软件来完成您所读取的内容。获取代码并检查其错误。有点像编译器指示阻止代码编译或正确的问题。



这是一个问题。可能是一个非常非常大的。

这里有两个很大的限制:无错误编译 - 这取决于代码所针对的编译器和环境:有大量的C例如,每个编译器将不同的东西视为错误,而用C语言编写的嵌入式设备代码将不会为Windows编译。 证明编译正确性的唯一实用方法是完全复制每个编译器将要执行的操作...



第二个是很多,更大。您不能孤立地证明应用程序的正确性 - 只能参考它写入的实际规范。

例如:

"I was asked to write a software to do exactly what you read. Take a code and check for its errors. Somewhat like a compiler that indicates the issue stopping a code from compiling or being correct."

And that a problem. Probably a very, very big one.
There are two big limits here: "error free compilation" - which depends on the compiler and environment that the code is intended for: there are a huge number of C compilers each of which will consider different things as "errors" for example, and code written in C for an embedded device will not compile for Windows for another. The only practical way to "prove" compilation correctness is to duplicate exactly what each compiler will do...

The second is a lot, lot bigger. You can't prove "correctness" of an application in isolation - only by referring to the actual specification it was written to.
For example:
using System;
using System.IO;

namespace TCFConsole
    {
    class Program
        {
        static void Main(string[] args)
            {
            Console.WriteLine("Hello World!");
            }
        }
    }

在C#中它是一个正确的程序,因为它编译好并且不会崩溃 - 但它不起作用好吧,如果它应该是一个文字处理器!



我认为你可能咬得比你咀嚼的多,并且需要非常仔细地思考你将接受什么以及你的正确性将是什么。

然后你就可以开始考虑如何实现它了。



即使你把它限制在表示编译中的实际问题,这也是一场噩梦!

编译器会尽力说这是我发现问题的地方,但这不一样当我遗漏双引号并且它不会成为几百行的问题时说:你忘了在这里关闭你的字符串......:笑:

Is a "correct program" in C# in the sense that it compiles ok and doesn't crash - but it doesn't work at all well if it is supposed to be a word processor!

I think you have possibly bitten off more than you can chew, and need to think very, very carefully about exactly what you are going to accept and what your "correctness" is going to be.
Then you can start thinking about how to implement it.

Even if you restrict it to indicating the actual problem in compilation, that's a nightmare!
Compilers do their best to say "this is where I found the problem" but that isn't the same as saying "You forgot to close your string here" when I leave out a double quote and it doesn't become a problem for a couple of hundred lines...:laugh:


这篇关于自动反馈用于编程分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆