Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.util.Date;
- import java.text.DateFormat;
- import java.text.SimpleDateFormat;
- import java.util.Calendar;
- public class Testtt {
- public static void Main(String[] args) {
- // Меню избор статут на студента
- System.out.print("Choice you student status : ");
- System.out.print("Press 1 for new student ");
- System.out.print("Press 2 for existing student : ");
- System.out
- .print("Press 3 to upload document, certificate or picture : ");
- Scanner input = new Scanner(System.in);
- int studentChoice = input.nextInt();
- switch (studentChoice) {
- case 1:
- NewStudent();
- break;
- case 2:
- ActualStudent();
- break;
- case 3:
- CertificateAndProfilePictureOfStudent();
- break;
- case 4:
- break;
- }
- }
- public static void NewStudent() {
- Scanner input = new Scanner(System.in);
- String[] ArrayNewStudent = new String[100];
- for (int i = 0; i < ArrayNewStudent.length; i++) {
- System.out.print("Enter your Fist name : ");
- String studentFirstName = input.nextLine();
- System.out.print("Enter your Second name : ");
- String studentSecondName = input.nextLine();
- System.out.print("Enter your Third name : ");
- String studentThidName = input.nextLine();
- System.out.print("Enter your ID number : ");
- int studentId = input.nextInt();
- }
- // Тук трябва да вкарам данните от масива в текстовил файл и
- }
- public static void CertificateAndProfilePictureOfStudent() {
- // качване на сертификати и снимки на студента за портфолиото
- }
- public static void ActualStudent() {
- // записан студент - неговите оценки, сертификати и снимки
- String[] actualStudent = { "Names : Petar Plamenov Kamenov",
- "Student ID : 90903", "University Number : 09091044 :" };
- String[] StudentPayment = { " " };
- //поправка на времето да показва студента активен ли е (да се довърши)
- SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy");
- String StudentStartEducation = "12/09/2012";
- String StudentEndEducation = "12/09/2016";
- Date Start = null;
- Date End = null;
- long diffrence = Start.getDate() - End.getDate();
- if (diffrence > 0) {
- System.out.println("Student is Active: ");
- }
- else {
- System.out.println("Student is not Active: ");
- }
- }
- public static void StudentsAndExams() {
- // опция за признаване на изпит поради издържани майстоски класове
- }
- public static void StudentsAndCertificate() {
- // прехвърляне в метода StudentsAndExams(); и признаване на изпитите
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement