Git Product home page Git Product logo

tutor's Introduction

Quản lý giáo viên sinh viên

Tạo interface IPerson có các hàm:

  • int getYearOfBirth() tính năm sinh của Person

Tạo lớp Person implement IPerson và gồm các thuộc tính:

  • int ID;
  • String name;
  • int age;
  • String address;

Tạo interface IPerson có các hàm:

  • int getYearOfBirth() tính năm sinh của Person

Tạo lớp Student kế thừa lớp Person, implement IPerson và gồm các thuộc tính:

  • int ID;
  • String name;
  • int age;
  • String address;
  • float math;
  • float physics;
  • float chemistry;

Tạo lớp Teacher kế thừa lớp Person implement IPerson và gồm các thuộc tính:

  • int ID;
  • String name;
  • int age;
  • String address;
  • int experience

(Tất cả các class đều phải có hàm khởi tạo mặc định, khởi tạo có thuộc tính, các hàm getter setter, ngoài ra bạn có thể viết thêm các phương thức khác, Ở class Student nên có hàm getAverage() để tính điểm trung bình của 3 môn, và khi hiện thị thông tin của một Student cũng hiện thị điểm trung bình của ba môn)

Viết chương trình quản lý Student, Teacher gồm các chức năng:

(Lưu ý: Một ID chỉ sử dụng một lần cho tất cả giáo viên và sinh viên, nếu nhập vào một ID bị trùng với một sinh viên hay giáo viên nào đó thì yêu cầu nhập là đối tượng đó)

  1. Xem tất cả thông tin

  2. Nhập vào một Student

  3. Nhập vào một Teacher

  4. Sắp xếp các Persons:
    4.1 Tăng theo ID
    4.2 Giảm theo ID
    4.3 Tăng theo name
    4.4 Giảm theo name
    4.5 Tăng theo age
    4.6 Giảm theo age
    4.7 Tăng theo address
    4.8 Giảm theo address
    4.9 Các Teacher ở trước Student, các Teacher sắp xếp tăng theo experience, các Student sắp xếp tăng theo điểm trung bình của 3 môn math, physics, chemistry.

  5. Tìm kiếm và in ra các Person dựa vào:
    5.1 ID
    5.2 name
    5.3 age
    5.4 Year of Birth
    5.5 address

  6. In thông tin của tất cả:
    6.1 Teacher
    6.2 Student

  7. Xóa thông tin theo ID

  8. Sửa thông tin theo ID Cho người dùng xem thông tin của đối tưởng cần sửa
    Cho phép người dùng sửa lại từng thông tin của đối tượng đó.

  9. Xóa tất cả dữ liệu.

  10. Thoát chương trình.

tutor's People

Contributors

zukahai avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.