Đề tài Presentation data structure and algorithm
Add a student
Show student list
Sorting list by ascending:NAME,SUM OF MARKS
Edit student information by ID entering
Delete student by ID entering
Ghi het vao
10 trang | Chuyên mục: Cấu Trúc Dữ Liệu & Giải Thuật | Chia sẻ: tuando | Lượt xem: 420 | Lượt tải: 0
Tóm tắt nội dung Đề tài Presentation data structure and algorithm, để xem tài liệu hoàn chỉnh bạn click vào nút "TẢI VỀ" ở trên
Hanoi University of Science and TechnologyPRESENTATIONDATA STRUCTURE AND ALGORITHMLecturer:Dr. Pham Doan TinhGroup:Hoang Thanh AnNguyen Thanh BinhNguyen Trung HieuNguyen Van TuContentBackground informationObjectiveProgramBackground informationWrite a simple Java program to manage student informationReason why choosing: contains almost Java knowledge we learntObjectivesWrite a JAVA program to create student’s basic database (ID,name,marks) and perform some operations on it (add, find, edit, sort, delete,exit)FunctionsAdd a studentShow student listSorting list by ascending:NAME,SUM OF MARKSEdit student information by ID enteringDelete student by ID enteringGhi het vaoIDE: NetBeans Input the student informationStudent information: ID, name, date of birth, sex, subject marksWrite student information (text ouput): using Character Streams(for character Unicode) and DataOutputStream (for byte - binary format)BufferredReader: read text inputFileWriter/PrintWriter: print strings and numbers in text formatShow student listRead data from text file: using FileInputFileInputStream: Input stream allow to read data from filefin= new FileInputStream("D:\\exp.txt");Sorting list by ascendingLAY VI DU CU THE,LIEN QUAN DANH SACH SVBase on total mark: using Bubble SortVoid BubbleSort (int A[], int n)//arrange A[n] array by ascending{For (int I = 0; I start; j --)If (A[j] < A [j-1]Swap (a[j], A[j-1]);}Frame
File đính kèm:
- presentation_data_structure_and_algorithm.pptx