Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The project consists of Java programming that allows a student to readily access

ID: 3824453 • Letter: T

Question

The project consists of Java programming that allows a student to readily access, monitor and track student grades and averages. The premise of the project is to have a student be able to keep track of his/her own grade status, including their actual grade, their grade average and their status or standing in relations to the overall course. The name of the intended application for this project is “Class Student Grades”. The Class Student Grades with have 5-7 classes including class Student and class Grade Book. The purpose of this project is to provide a student with a tool to use to properly identify, count, grade and average students’ scores in a course. Because the author’s experience with Java is limited and because of the author’s visual disability, this project would be the best project for the author to present in an attempt to design a successful application in this course. It would also allow the author a refresher on the use of object-oriented design using Java programming combined with some of the complexity for an advance level course.

Requirements

The project Grade Book must meet the following requirements:

Classes (5-7);

Create object and call method;

Attributes or fields;

Receives arguments;

Initialize a class constructor;

Array List of grades;

Looping through array;

For statements;

If…else…if statements;

Associations.

Microsoft Visio Activity diagrams

Student Grades Activity Diagram

The 5-7 Classes of Student Grade Project

Class Student

Class Course

Class Professor

Class CourseDepartment

Class Grades

Class StudentGradeBook

Class StudentGradeBookTest

Explanation / Answer

/*
++ : is called as increment operator because it increaments variable value by 1
--   : is called as increment operator because it decreses variable value by 1

we use these operators either before or after variable.
Prefix increment/ decrement operators
============================
If we use these operators before variable, they are called prefix operators.

Postfix increment/ decrement operators
============================
If we use these operators after variable, they are called postfix operators.

Difference:
========
If use them as prefix operators, JVM first increaments / decrements its value then JVM uses the current value in the expression.

If use them as postfix operators, JVM first uses the current value then it increaments / decrements that variable value.
*/

//IncrementAndDecrementOperators.java
class IncrementAndDecrementOperators
{
   public static void main(String[] args)
   {
       int a = 10;
       a++;
       System.out.println(a);//11

       int b = 20;
       ++b ;
       System.out.println(b);//21
       System.out.println();
       /*
       Note: we cannot observe the difference in prefix and postfix operators if we donot use the value at the same statement or line.
      
       check the below code, you can find the difference in both operators
       */

       int x = 30;
       System.out.println(x++);
       System.out.println(x);

       System.out.println();

       int y = 40;
       System.out.println(++y);
       System.out.println(y);

       System.out.println();
      
       int z = 5;
       System.out.println(z++ + ++z + --z + z-- + z - z-- +z);

   }
}