Problem 1 (25 points) Suppose you are writing a program that will help our Admissions Office process applications into t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Problem 1 (25 points) Suppose you are writing a program that will help our Admissions Office process applications into t

Post by answerhappygod »

Problem 1 25 Points Suppose You Are Writing A Program That Will Help Our Admissions Office Process Applications Into T 1
Problem 1 25 Points Suppose You Are Writing A Program That Will Help Our Admissions Office Process Applications Into T 1 (324.52 KiB) Viewed 111 times
100 Cain J. Eggett 1551 Kennedy Springville Montana 48084 830
066 8871 History 3.98 Yes
This is Java assignment. I need screenshot of execution. Please
follow instruction.
Problem 1 (25 points) Suppose you are writing a program that will help our Admissions Office process applications into the University. In this problem. your program will open an input file containing applicant information and read it into an array of application objects. Once you have them read into an array, you can do some interesting operations with the data that you just read in. See a sample input files named a0.txt, al.txt, a2.txt, a3.txt and a 4.txt distributed with this assignment. I added multiple input files of various sizes for your consumption if you need them. An entry (an application record) in the input file has seven attributes and is formatted as follows: The file consists of a series of 'Application records”. The list of records end when the id number reads -1. This is called a 'sentinel which is a special marker value that the item (id) can never be. The application record contains the following lines: The first line of an application record is the id number of the application. The next line of an application record is the name of an applicant consisting of first name, middle name (or middle initial with a period), and last name in that order in a single line, all separated by 1 a blank space. Next line is the street address in one line, city name in the next line, state in another line, and finally zip code in a separate line (4 lines total) The next line is a US phone number consisting of the area code, prefix, and last four digits all separated by a blank space. The next line is the intended major, e.g., Computer Science, Economics, etc. A multi-word name should be allowed. The next line is the applicant's high school GPA, e.g., 3.96. The next line is an indication of whether the applicant is applying for a scholarship or not. It will read 'Yes' or 'No'. If there is another application record in the file, it will follow next in the same format. Your task is to read a file containing application records and do what is asked to be done in ProcessApplications.java that is provided along with this assignment description. You will also need to develop an Application class in file Application.java). This should contain members for each data item in an Application (id number, applicant name, street address, city, state, zip code, phone number, intended major, high school GPA, and scholarship applicant flag. The Application class should also implement methods for: A constructor with 10 arguments (one for each field) Setter and Getter methods for each field

Your solution should consist of the following files: Application.java: This file contains a class definition that represents an application. ProcessApplications.java: This file contains a main that reads in an input file and processes the application data. (A skeleton is provided attached to the assignment.) It is likely that you will want to add another file, perhaps State.java to represent a state and use it in the main. Hand in your Java files and at least one input file that works with your program. I assume that your input file would be of the same format as mine, but I would still like to have one of your own input files that for sure works with your program. When you test your program as you develop it, use a small input file, for example start with one application and make sure it works; then two applications and make sure it works, and so on. Incremental development, right? It is much easier to deal with a smaller input file. After you think you are done debugging your program, use a large input file to test it again before you hand it in. Note: I included a program that you can use to generate an input file of any arbitrary size. The file is called RandomApplications.java. Take a look if you are interested. Turn in Application.java and ProcessApplications.java. Also, turn in 1 data file you used as described above. Optionally, turn in State.java if you implemented that class.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply