请在两天的时间内我需要此解决方案,有人可以帮助我吗? [英] please i need this solution in two days time can Anybody help me regarding this?

查看:92
本文介绍了请在两天的时间内我需要此解决方案,有人可以帮助我吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说明
解决与解决问题之前,请仔细阅读以下说明.提交作业:
应当明确的是,在以下情况下,您的作业将不会获得任何学分: o作业在截止日期之后提交.
o提交的作业未打开或文件损坏.
o作业是全部或部分复制自(其他学生或同义从讲义或互联网复制).
o作业中未提及学生证或文件名不是学生证.
o作业未提交.java格式.

上传说明
您提交的内容必须包括:

1.所有源代码(.java文件)以及其他必要的文件,以编译和运行程序.
2.如果且仅当有多个文件要提交时,才将所有文件放在一个Zip文件中,然后将其上传到VULMS上,否则仅需要提交源代码文件.

注意:使用Notepad或Notepad ++进行编码,并使用JDK包进行Java源代码的编译和运行(课程下载部分提供了JDK安装和配置的视频教程)
物镜
此任务的目标是

o为了给您一些文件处理的实践练习,并理解在Java控制台程序中对文件的使用.

重要要求和说明:
1.在此作业中,不允许使用任何IDE工具(如Netbeans).
2.使用作业文件附带的文本文件(students.txt).您的代码应与给定的附加文本文件一起使用.
3.在同一目录中使用文本文件和Java文件.
4.创建Student.java,其中将包含学生信息(姓名,卷号,班级,电话号码和程序).
5.创建Driver.java文件,该文件将从文本文件中读取数据并以表格形式显示(请参见输出屏幕截图).
6.完成输出屏幕截图中给出的所有要求.
7.作业的截止日期为2012年11月8日.只有在最后日期有任何问题(例如服务器关闭或文件未上传)时,才有额外的宽限日(2012年11月9日).在到期日之后,恕不接受任何la脚的借口.
8.在任何情况下,我们都不接受通过电子邮件进行的分配.小心



问题:
您必须开发一个简单的控制台基础应用程序,该应用程序从"students.txt"文件中读取学生的记录,并以表格形式显示每个学生的信息.该程序还应该以表格形式计算并显示文件中的字母,空格,整数,单词,字符和行的数量



提示:
要管理学生信息,请使用学生班".
要存储多个学生的记录,请使用ArrayList.

Instructions
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
o Student ID is not mentioned in the assignment File or name of file is other than student ID.
o The assignment is not submitted .java format.

Uploading instructions
Your submission must include:

1. All the source code (.java files) and other if necessary files to compile and run your program.
2. If and only if there are multiple files to submit, place all the files in a Zip file and Upload it on VULMS else only source code file is required to be submitted.

Note: Use Notepad or Notepad++ for coding and JDK package for java source code compilation and running (A video tutorial of JDK installation and configuration is given in course download section)
Objective
The objective of this assignment is

o To give you some practice exercise of file handling and understanding use of it in java console programs.

Important Requirements and Instructions:
1. You are not allowed to use any IDE tool like Netbeans in this assignment.
2. Use text file (students.txt) attached with assignment file. Your code should work with given attached text file.
3. Use text file and java files in same directory.
4. Create Student.java which will contain student information (name, roll number, class, phone number and program).
5. Create Driver.java file which will read data from text file and show in tabular form (see output screen shot).
6. Complete all requirements given in output screen shot.
7. Assignment due date is November 08, 2012. Extra grace day (November 09, 2012) is only if last date has any problem (like server gets down or files not uploading). Any lame excuses will not be accepted after due date.
8. We will not accept assignment through email in any case. Be Careful



Question:
You have to develop a simple console base application, which reads the students records from "students.txt" file and displays each student’s information in form of table. The program should also count and display the number of alphabets, spaces, integers, words, characters and lines from the file in tabular form



Hints:
To manage student information use Student class.
To store multiple students record use ArrayList.

推荐答案

然后,您最好屈指可数了,不是吗?


我们不做您的作业:这是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试,您可能会发现它并不像您想的那么难!

如果您发现特定的问题,请随时提出,但我们不只是坐在这里给您通过及格的分数.
Then you had best knuckle down and get on with it, hadn''t you?


We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you find a specific problem, feel free to ask, but we don''t just sit here giving you a passing grade.


很明显,您的作业不会获得任何学分如果:
o作业在截止日期之后提交.
o提交的作业未打开或文件损坏.
o作业是全部或部分复制自(其他学生或同义从讲义或互联网复制).
o作业文件中未提及学生证,或者文件名不是学生证.
o作业未提交.java格式.

是什么让您觉得您的教授现在不读这篇文章?
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
o Student ID is not mentioned in the assignment File or name of file is other than student ID.
o The assignment is not submitted .java format.

What makes you think your professor is not reading this right now?


STEP 1.阅读students.txt
STEP 1.1从文件到DataTable
您需要逐行阅读,然后使用string.Split函数将每行拆分为令牌数组(对应于每一列) [ ^ ]
要将行添加到数据表-从MSDN遵循此示例 [ ^ ]

STEP 1.2从文件转换为简单字符串(用于计数)

STEP2.将DataTable绑定到"DataGrid"(从一个简单的Winform项目开始)
再次,遵循以下简单示例! [
STEP 1. Read students.txt
STEP 1.1 from file into a DataTable
You need read line by line, then use string.Split function to split each line into array of tokens (corresponding to each column)[^]
To add rows to a DataTable - follow this example from MSDN[^]

STEP 1.2 from file into a simple string (for counting purpose)

STEP 2. Bind DataTable to a "DataGrid" (Start with a simple Winform project)
Again, follow this simple example![^]
But basically, just do this:
<br />
dataGrid1.DataSource = MyDataTable.DefaultView;<br />



步骤3.计算字母/单词/空格/换行符-您可以使用
正则表达式 [ ^ ]

如果您无法做到这一点,则不妨将Major切换到其他内容.



STEP 3. Count alphabets/words/spaces/line breaks - you can use Regular Expression[^]

If you can''t do this, you might as well switch major to something else.


这篇关于请在两天的时间内我需要此解决方案,有人可以帮助我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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