Code Monkey home page Code Monkey logo

javafinalproject's Introduction

Java Programming Fundamentals - Assessment



It's time to see how much you learned about Java and Object-Oriented Programming.

Part 1: Understanding the StudentGen project

  1. Download the source code and import the project using IntelliJ Idea or any other IDE you prefer.
  2. Understand the project structure:
  • Packages
  • Classes
  • Functionality
  1. Run and test the project to get a deeper understanding of how it works (remember the persistence mindset!).

Part 2: Implementing the Student and StudentService missing features

  1. Open the Student class (src/com/generation/model/Student.java) and implement the following methods:
 public void enrollToCourse( Course course )
 {
     //TODO implement this method
 }

 public boolean isAttendingCourse( String courseCode )
 {
     //TODO implement this method
     return false;
 }
  1. Open the StudentService class (src/com/generation/service/StudentService.java) and implement the following methods:
    public void showSummary()
    {
        //TODO implement
    }

Hint: To show the summary use System.out.println() to print out to the console.

Part 3: Implementing the missing main method features

  1. Test the program to verify it works as expected:
  • Create a new student.
  • Enroll the student to a few courses.
  • Show the students and courses summary and verify that data is correct.

Part 4: Handling exceptions

  1. Register a new user providing a wrong date format.
  2. Modify the createStudentMenu so that it handles correctly the exception when a wrong date format is inserted by the user.
  3. Catch the exception and show a proper message to the user.

Part 5: Writing Unit Tests

  1. Write 2 Unit tests for the class StudentService
  2. Write 2 Unit tests for the class CourseService

Challenge Yourself

  1. Implement a way to store grades for each course a student is taking. There should be a way to update/set the score. Afterwards, fill in the public List<Course> findPassedCourses( Course course ) method in Student.java
  2. Implement an additional feature in the menu options that will display the average grade of all the students suscribed to a given course.

javafinalproject's People

Contributors

roesnera avatar vickyluvs 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.