The University want to create a Student Information System. In the Design Phase,
ID: 3771239 • Letter: T
Question
The University want to create a Student Information System. In the Design Phase, the university must make major decisions with the analyst. Those decisions are the following • User Interface planning • Data Storage Format • A good Architecture The Student Information System holds the details of the student personal and academic records. Which needs to be secure and has high performance when it is under pressure in the course registration week. The student and the colleges administrations needs to have access to reports on the system. For Example the student will view transcripts, GPA, Contact number, Level. In addition, the administrator will have the right to CRUD the number of registrations, assignment of teachers to courses and current courses registration status, canceling schedule and modification of the class student numbers and the student record. The student and the administrator can update the record no one else depending on the permissions. Q1. What is the best data storage format for the Student Information System and give 5 benefits of the format you chose? (In your own words) Q2. What is the best Architecture for the Student Information System based on the non-functional requirement and why? State 5 benefits of the Architecture you chose? Q3. Create an Interface Structure Diagram for the System. Where you have the following navigations: 1. Student Navigation 2. Administrator Navigation Also state what is best for System to use online or batch processing and Why?
Explanation / Answer
program:
public class Student
{
public static void main(String[] args) throws IOException
{
Scanner keyboard = new Scanner ( System.in);
String inputString, name, phone;
boolean okToCreate = false;
System.out.println("Enter the file name: ");
String fileName = keyboard.nextLine();
File outFile = new File(fileName)
if(outFile.exists())
{
System.out.println(" Warning, a file named " + fileName + " already exists!");
System.out.print("Do you want to overwrite this file? Enter Yes or No: ");
inputString = keyboard.nextLine();
while ( !inputString.equalsIgnoreCase("Yes") && !inputString.equalsIgnoreCase("No"))
{
System.out.println("Error, " + inputString + " is not a valid response.");
System.out.println(" A file named " + fileName + " already exists!");
System.out.print("Do you want to overwrite this file? Enter Yes or No: ");
inputString = keyboard.nextLine();
}
if (inputString.equalsIgnoreCase("Yes"))
{
okToCreate = true;
}
else
{
okToCreate = false;
}
if (okToCreate)
{
name = "Scrappy ";
phone = "214-686-3721";
PrintWriter outputFile = new PrintWriter(fileName);
int studentID = getStudentID(keyboard);
String lastNAME = getLastNAME(keyboard);
String firstNAME = getFirstNAME(keyboard);
String letterGrade = getLetterGrade(keyboard);
System.out.println(" ");
outputFile.println(studentID);
outputFile.println(lastNAME);
outputFile.println(firstNAME);
outputFile.println(letterGrade);
outputFile.close();
}
else
{
System.out.println("Terminating the program.");
}
}
}
public static int getStudentID( Scanner keyboard )
{
System.out.print("Enter the student's ID number(Must be ten digits 0123456789): ");
int studentID = keyboard.nextInt();
return studentID;
}
public static String getLastNAME( Scanner keyboard )
{ System.out.print("Enter student's last name: ");
String lastNAME = keyboard.next();
return lastNAME;
}
public static String getFirstNAME( Scanner keyboard )
{
System.out.print("Enter student's first name: ");
String firstNAME = keyboard.next();
return firstNAME;
}
public static String getLetterGrade( Scanner keyboard )
{
String letterGrade = "";
int grade = 0;
while( grade < 11 )
{ System.out.print("Enter student's letter grades in eleven courses: ");
letterGrade = keyboard.next();
System.out.println(letterGrade);
grade++;
}
return letterGrade;
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.