Giter Site home page Giter Site logo

py-create-management-system's Introduction

Management System

Please note: read the guideline before starting.

The Technical Lyceum plans to create a system for managing information about groups and students. You have to implement the above system using the dataclasses module.

You can import the module in such way:

import dataclasses

Let`s implement 3 classes:

  1. Specialty

It has the following attributes:

  • name;
  • number.
  1. Student

It has the following attributes:

  • first_name;
  • last_name;
  • birth_date ;
  • average_mark โ€” average score of the previous year (or average score of entrance exams for the first-course students), float number;
  • has_scholarship โ€” information on whether the student receives a scholarship. This is a bool value;
  • phone_number;
  • address.

Please note: to import datetime, use the following syntax:

from datetime import datetime
  1. Group

It has the following attributes:

  • specialty - instance of the Specialtyclass;
  • course - course number/year of study;
  • students - list of students studying in this group. This should be a list of instances of the Student class.

Also implement 4 functions, using module pickle in this way:

import pickle
  1. write_groups_information

This function writes all inputted information about the Lyceum groups to the file named "groups.pickle". The input is a list of the Group class instances. This function returns the maximum number of students from all the groups.

  1. write_students_information

This function writes information about students to the "students.pickle" file. You should store all the students in one file. The input is a list of the Student class instances. This function returns the number of students.

  1. read_groups_information

This function reads data from the "groups.pickle" file. It returns all group's specialties' names without repetition.

  1. read_students_information

This function reads data from the "students.pickle" file. It returns a list of all the Student class instances.

Hint

The pickle module returns only one recorded object. It is necessary to implement the reading of each instance from the file for the read_students_information and read_groups_information functions.

Implement the described task here

py-create-management-system's People

Contributors

nattalli 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.