Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Project

Hambeno
Hambeno 


Please help with this assignment. Attachments Tags
Clarifications

Answers

Project

felo
felo 



Main Class
TuitionConstants Class
Sorter Class
Student Class
OnCampusStudent Class
OnlineStudent Class
Attachments
Student.rar (15 K) Download











Preview
in the studentList. ******************************************************************************************/ //done for (int i = 0; i < studentList.size(); i++) { ((Student) studentList.get(i)).computeTuition(); } System.out.print("tuition computed\n"); break; case 'D': //Count certain students System.out.print("Please enter a number of credits:\n"); inputInfo = stdin.readLine().trim(); int credits

Preview
* PSEUDOCODE * EnhancedFor each student in pStudentList Do * student.calcTuition() * End EnhancedFor */ private void calcTuition(ArrayList<Student> pStudentList) { } /** * Reads the student information from "p02-students.txt" and returns the list of students as an ArrayList

Preview
//Modifies the toString method from the super class to reflect the changes for the on campus student public String toString() { String result; if(resident) { result = "\nOnCampus Student:" + "\nResident Status\n" + super.toString() + "Student Program Fee:\t"+NumberFormat.getCurrencyInstance().format(studentProgramFee)+"\n"

Preview
students, // quit, display menu) to a user. // Then it performs the chosen task. It will keep asking a user to // enter the next choice until the choice of 'Q' (Quit) is // entered. import java.text.NumberFormat; public class OnlineStudent extends Student { private double computingFee;

Preview
http:www.devlang.com //************************************************************************************************************** import java.util.ArrayList; public class Sorter { public static final int SORT_ASCENDING = 0; public static final int SORT_DESCENDING = 1; /** * Sorts pList into ascending (pOrder = SORT_ASCENDING) or descending (pOrder = SORT_DESCENDING) order * using the

Preview
in the student public String toString() { return "First name:\t\t" +firstName+ "\n" + "Last name:\t\t" +lastName+ "\n" + "Student ID:\t\t" +studentID+ "\n" + "Credits:\t\t" +creditNum+ "\n" + "Rate:\t\t\t" +NumberFormat.getCurrencyInstance().format(rate)+ "\n" + "Tuition:\t\t" +NumberFormat.getCurrencyInstance().format(tuition)+ "\n"; } //creates an abstract method to be used in the

Preview
will keep asking a user to // enter the next choice until the choice of 'Q' (Quit) is // entered. public class StudentParser { public static Student parseStringToStudent(String lineToParse) { String parts[] = lineToParse.split("/"); //checks if the student is online or on campus and sets the appropriate variables

Preview
Web: http://www.devlang.com //************************************************************************************************************** public class TuitionConstants { public static final int ONCAMP_ADD_CREDITS = 350; public static final int MAX_CREDITS = 18; public static final int ONCAMP_NONRES_BASE = 12200; public static final

Screenshots
Purchase Answer

CSE205 solution.

mariobeka
mariobeka 



Below you will find the completed solution of your assignment heavily commented where need for better understanding. Also a screen shot of the output file after running the program. Attachments
Main.java (7 K) Download Preview
* student.calcTuition() * End EnhancedFor */ private void calcTuition(ArrayList<Student> pStudentList) { for (Student student : pStudentList) { student.calcTuition(); } } /** * Reads the student information from "p02-students.txt" and returns the list of students as an ArrayList * <Student> object. * * PSEUDOCODE * Declare and create an ArrayList<Student> object

OnCampusStudent.java (2 K) Download Preview
= t + getProgramFee(); if (getCredits() > TuitionConstants.MAX_CREDITS) { t = t + (getCredits() - TuitionConstants.MAX_CREDITS) * TuitionConstants.ONCAMP_ADD_CREDITS; } setTuition(t); } /** * @return <code>True</code> if the OnCampusStudent is a resident, <code>False</code> for non-resident. */ public boolean getResidency() { return mResident; } /** * Sets the status of residency of

OnlineStudent.java (1 K) Download Preview
to online students. // // AUTHOR // Kevin R. Burger (burgerk@asu.edu) // Computer Science & Engineering // School of Computing, Informatics, and Decision Systems Engineering // Fulton Schools of Engineering // Arizona State University, Tempe, AZ 85287-8809 // Web: http://www.devlang.com //************************************************************************************************************** public class OnlineStudent extends Student { private boolean mTechFee; /** * Default constructo

Sorter.java (1 K) Download Preview
--j) { swap(pList, j, j - 1); } } } /** * Returns true if we need to continue moving the element at pIndex until it reaches its proper location. */ private static boolean keepMoving(ArrayList<Student> pList, int pIndex, int pOrder) { if (pIndex < 1) return false; Student after =

Student.java (3 K) Download Preview
* @param pStudent The other student. * @return <code>1</code> if this student id is greater then the other student, <code>-1</code> if this * student id is less then the other student and <code>0</code> if their id are equal. */ @Override public int compareTo(Student pStudent) { return this.getId().compareTo(pStudent.getId()); } /** *

TuitionConstants.java (1 K) Download Preview
public static final int ONCAMP_ADD_CREDITS = 350; public static final int MAX_CREDITS = 18; public static final int ONCAMP_NONRES_BASE = 12200; public static final int ONCAMP_RES_BASE = 5500; public static

Screen Shot 2015-11-02 at 17.53.49.png (33 K) Download Preview

p02-students.txt (1 K) Download Preview
Lisa N 750 18 C 4834324308675 Jetson George R

Screenshots
Screenshot
Purchase Answer