1) Write an algorithm draw a flow chart and write a java program to accept; Quiz (10%) Midterm (30%) Project (15%) Attendance (5%) and Final (40%) value of studentsfrom user. Then program will find and print the last grade and letter grade of student.Note- Number of students will be decided by the user.2)Write an algorithm draw a flow chart and write a java program to accept integer values from keyboard and will find and print the minimum maximum summation andaverage of entered numbers when the number entered from keyboard is smaller than 1.