Advertisement
PetyoKamenov

Untitled

Jul 5th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.util.Date;
  3. import java.text.DateFormat;
  4. import java.text.SimpleDateFormat;
  5. import java.util.Calendar;
  6.  
  7. public class Testtt {
  8. public static void Main(String[] args) {
  9. // Меню избор статут на студента
  10. System.out.print("Choice you student status : ");
  11. System.out.print("Press 1 for new student ");
  12. System.out.print("Press 2 for existing student : ");
  13. System.out
  14. .print("Press 3 to upload document, certificate or picture : ");
  15. Scanner input = new Scanner(System.in);
  16. int studentChoice = input.nextInt();
  17. switch (studentChoice) {
  18. case 1:
  19. NewStudent();
  20. break;
  21. case 2:
  22. ActualStudent();
  23. break;
  24. case 3:
  25. CertificateAndProfilePictureOfStudent();
  26. break;
  27. case 4:
  28.  
  29. break;
  30. }
  31. }
  32.  
  33. public static void NewStudent() {
  34. Scanner input = new Scanner(System.in);
  35. String[] ArrayNewStudent = new String[100];
  36. for (int i = 0; i < ArrayNewStudent.length; i++) {
  37. System.out.print("Enter your Fist name : ");
  38. String studentFirstName = input.nextLine();
  39. System.out.print("Enter your Second name : ");
  40. String studentSecondName = input.nextLine();
  41. System.out.print("Enter your Third name : ");
  42. String studentThidName = input.nextLine();
  43. System.out.print("Enter your ID number : ");
  44. int studentId = input.nextInt();
  45. }
  46. // Тук трябва да вкарам данните от масива в текстовил файл и
  47. }
  48.  
  49. public static void CertificateAndProfilePictureOfStudent() {
  50. // качване на сертификати и снимки на студента за портфолиото
  51. }
  52.  
  53. public static void ActualStudent() {
  54. // записан студент - неговите оценки, сертификати и снимки
  55.  
  56. String[] actualStudent = { "Names : Petar Plamenov Kamenov",
  57. "Student ID : 90903", "University Number : 09091044 :" };
  58. String[] StudentPayment = { " " };
  59. //поправка на времето да показва студента активен ли е (да се довърши)
  60. SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy");
  61. String StudentStartEducation = "12/09/2012";
  62. String StudentEndEducation = "12/09/2016";
  63. Date Start = null;
  64. Date End = null;
  65. long diffrence = Start.getDate() - End.getDate();
  66. if (diffrence > 0) {
  67. System.out.println("Student is Active: ");
  68. }
  69. else {
  70. System.out.println("Student is not Active: ");
  71. }
  72. }
  73.  
  74. public static void StudentsAndExams() {
  75. // опция за признаване на изпит поради издържани майстоски класове
  76. }
  77.  
  78. public static void StudentsAndCertificate() {
  79. // прехвърляне в метода StudentsAndExams(); и признаване на изпитите
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement