Please help me this question is givin me so much stress.

This program is for you to get familiar with file IOs in Java as well as writing methods. Write
a program that asks the user for a file name that contains a line delimited records of student
applications. Each record contains student first, last, ACT score and SAT score. Each item in
a record is delimited by a space. Your program should also ask for an output file where
results will be placed. Your program should determine if a student has been admitted or
denied admission based on the admissions standards shown below. Your program should
also write these results to the output file. Example: (User input in bold)

Please enter the name of the file that contains application records: admissions_data [Enter]
Please enter the name of the file that should contain results: results [Enter]
Joe Miller is admitted on ACT and SAT scores
Sara Evans is admitted on ACT score
Bill Murray is not admitted (ACT and SAT scores are below minimum)
Bob Vance is admitted on SAT score
Billy Hillman is admitted on ACT and SAT scores
Harry Connick is admitted on ACT and SAT scores
Mary Hartman is admitted on SAT score
Write the following methods in the program:
• validAct – This method should accept one score as an argument and return
true or false depending on whether the passed score is a valid ACT score.
• validSat - This method should accept one score as an argument and return
true or false depending on whether the passed score is a valid SAT score.
• metAct – This method should accept one score as an argument and return
true or false depending on whether the student met the minimum ACT score
• metSat – This method should accept one score as an argument and return
true or false depending on whether the student met the minimum SAT score
• admitted – This method should accept a valid ACT score and a valid SAT score
as arguments and return true or false depending on whether the student met
the minimum requirements for admission
• outputStatus – This method should accept a boolean value isadmitted, an
application record, and a Printwriter, and it should report to the user that he
Page 4 of 6
Collins, Lu, Shashidhar, & Varol: CS 146: Assignment 3
or she has been admitted and by what criteria, or if the student has not been
admitted and why.
Minimum ACT – 20
Minimum SAT - 1000
Valid ACT range – between 0 and 30
Valid SAT range – between 0 and 1600
If the student has either an ACT above minimum or an SAT above minimum,
the student should be accepted, otherwise the student should be denied.
The class that you will be writing will be called LastNameFirstNameAdmissions.java and
a partial implementation is available to you on Blackboard. Also, you will find an input file
with application records on Blackboard as well. Grading criteria include documentation,
descriptive variable names, and adherence to the coding convention noted on pages 1 & 2.
Your file will have the following header:

Recommended Answers

All 8 Replies

Post your code in code tags. Post specific questions or error messages.

You need to make some effort yourself first before anyone here will help you. This forum is not a place to find someone to write code for you.

1. Please put your code in code tags.
2. What is your question? Please be specific.

************************************************************************/
public class Admissions
{
	public static void main(String[] args) throws IOException
	{
		//setup keyboard scanner for input


		//get infile and outfile from user


		//Setup input, output and line (record) scanners


		//variable declarations
		String first,last;
		int act, sat;
		boolean isadmitted;
		rec r = new rec();

		//while input file has more records

			//get next record from input file
			filename = get

			//get first, last, act and sat from record

			//set record object values for this record

			//if valid act and sat
				//check admitted status based on act and sat and set isadmitted to true or false

				//output status
			//else
				//report invalid data
			//end if

		//end while

		//close output stream
	}

	static boolean metAct(int act){
		return true;
	}

	static boolean metSat(int sat){
		return true;
	}

	static boolean validAct(int act){
		return true;
	}

	static boolean validSat(int sat){
		return true;
	}

	static boolean admitted(int act, int sat){
		return true;
	}

	static void outputStatus(boolean isadmitted, rec r, PrintWriter out){

	}
}

class rec{
	String first;
	String last;
	int act;
	int sat;
	void setRec(String firstName, String lastName,int actScore, int satScore){
		first = firstName;
		last = lastName;
		act = actScore;
		sat = satScore;
	}
}

i need help putting the info into this code

Hit "Edit", select all that code and click the "[code]" button to place it in code tags. Also state your question.

can someone help please??:(

You need to ask a more specific question. No one here is going to write the code for you.

Merged, deleted double.

@usccapo
1. Read forum rules
2. Do not just post full assignment and some code without explanation what is problem. We are not here to solve your assignment, we are here to guide you. These are two different things.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.