Giter Site home page Giter Site logo

lgomezruiz / classroom-manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24 KB

Program, using object-oriented programming (OOP), to create a classroom with students and a teacher, and determine if a class can be held, given certain conditions

Java 100.00%
abstraction classroom java oop poo students teacher

classroom-manager's Introduction

Classroom-Manager

Program, using object-oriented programming (OOP), to create a classroom with students and a teacher, and determine if a class can be held, given certain conditions

Output example

Exercise Summary

We want to represent, with object-oriented programming, a classroom with students and a teacher.

The objective is to create a classroom of students and a teacher and determine if classes can be held, taking into account the aforementioned conditions.

NOTE: Data can be random (names, age, grades, etc.) as long as it makes sense (age cannot be 80 on a student or grade can be 12).

• For both students and teachers we need to know their name, age and gender. For the students, we also want to know their current grade (between 0 and 10) and the teacher who teaches the subject.

• The subjects available are mathematics, philosophy and physics.

• Students will have 50% of playing hooky, so if they play hooky they don't go to class but even if they don't go it will be recorded in the classroom (like everyone has their place).

• The teacher has a 20% chance of not being available (meetings, leave, etc.)

• The two previous operations must be called the same in Student and Teacher (polymorphism).

• The classroom must have a numerical identifier, the maximum number of students and what it is intended for (mathematics, philosophy or physics). Think about what more attributes you need.

• In order for a class to be taught, a classroom needs the teacher to be available, the teacher of the corresponding subject in the corresponding classroom (a philosophy teacher cannot teach in a mathematics classroom) and there must be more than 50% students.

• If you can teach class, show how many students (separately) are approved at the moment (imagine that they are being given the grades).

classroom-manager's People

Contributors

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