java programming

Finalizat Postat la acum 5 ani S-au achitat serviciile după ce au fost prestate
Finalizat S-au achitat serviciile după ce au fost prestate

NEED IT IN 12 HOURS

STYLE RULES FOR CODING

The style rules are not overly restrictive.

1) Your programs should use the normal Java conventions (class names begin with an uppercase letter, variable names begin with a lowercase letter, public static final constants

should be in all caps, etc.).

2) In general, use short but descriptive variable names. There are exceptions to this rule;

for example, traditional loop variables are often called i, j, k, etc. Avoid very long

names; they are hard to read, take up too much screen space, and are easy to mistype.

3) Use a consistent indentation size. Beware of the TAB vs SPACE problem: Tabs have

no fixed size; one editor might interpret a tab to be 4 spaces and another might use 8

spaces. If you mix tabs and spaces, you will have indenting errors when your code is

viewed in different editors.

4) Use a consistent and aligned brace style.

5) Insert a space around operators (except the period ”.”)

6) Avoid using ”magic numbers”. A magic number is a number that appears in a program

in place of a named constant.

7) A good IDE (integrated development environment) such as eclipse will correct many

style errors for you. In eclipse, you can select the code that you want to format, right

click to bring up a context menu, and choose Source → Format to automatically format

your code.

WORK:

Complete the implementations of various classes in a Student Management System. Read

the API for StudentManagementSystem carefully, the API of this lab is available under

doc folder in the Java project folder (doc→[login to view URL]). Some example tests are given to

you in the Tester class. You are required to write (at least three) additional tests to further

ensure the correctness of your Student Management implementations.

2

We consider a database that stores information about students and courses. Each student

record (e.g., String name, double percentage, int course ID) can be uniquely identified by a

String ID (e.g., ”e1”), whereas each course record (e.g., String name and String instructor

for course name and instructor name, respectively ) can be uniquely identified by an integer

id (e.g., 2030).

You must implement all methods in the StudentManagementSystem by manipulating

the two attributes students and courses, each of which declared as a HashMap.

class StudentManagementSystem {

HashMap<Integer, CourseInfo> courses;

HashMap<String, StudentInfo > students;

/* All methods must be implemented via ’courses’ and ’students’

*/

}

Override the compareTo and equals methods in the StudentInfo class. Override the

equals method in the CourseInfo [login to view URL] simplicity, you can assume that a student cannot

be registered in multiple courses. For this lab you are required to submit Java files such as

CourseInfo, StudentInfo, StudentManagementSystem, Tester in your Eclipse project. Note

that the exception classes are available in the project folder.

FILES TO GIVE

[login to view URL]

[login to view URL]

[login to view URL]

[login to view URL]

Programare C Java JavaFX JavaScript Arhitectură software

ID Proiect: #18822059

Detalii despre proiect

2 propuneri Proiect la distanță Activ acum 5 ani

Acordat lui:

it2051229

Hi there, I do Java programming. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are interested.

%selectedBids___i_sum_sub_7%%project_currencyDetails_sign_sub_8% CAD în 0 zile
(1346 Recenzii)
7.8

2 freelanceri plasează o ofertă medie de 28$ pentru proiect

Gkiprop

Ready for the task

$25 CAD în 1 zi
(0 recenzii)
0.0