Hỏi đáp
Chia sẻ kiến thức, cùng nhau phát triển
Hi mọi người, em cũng mới học về OOP Python, hiện tại em đang có 2 bài tập làm về dạng này nhưng vẫn chưa giải quyết được mọi người giúp em với ạ.
Bài 1:
Write a program to manage student learning outcomes at a university.
There are two types of students: “Regular students” and “In-service students” with the same information: student ID, full name, date of birth, year of admission, entry scores, faculty and list of academic results (Math, English, physical education) with
10 points-scale. In-service students have more information about cross-border education (Dong Nai, Ca Mau, etc…)
Note: GPA = (Math + English + physical education) / 3
Requirements:
- Design and write the code of the above program with OOP
- Input and output methods to allow the user to enter information for each type of student
- Write a method to determine students regular or not
- Write a method to determine the total number of regular students of the faculty
- Find out the student with the highest entry score in each faculty
- In each faculty, write a method to get a list of students with GPA that are equal or greater than 8.0
- In each faculty, find the student with the highest semester GPA (in any period)
- In each faculty, write a method to calculate the number of students by year of admission.
Example 2020: 100, 2019: 90, 2018: 120
Bài 2:
Write the calculator program like as Microsoft Calculator
Requirements:
- It has GUI application
- The program can do the basic operations: + - x /
- It can be edit the current input using the Backspace button
- Allow to clear the current result (like as C button)
- It can show the old results by pressing on "History" button (Maximum at 10 results)