Core Java Assignment 3

Program 1: Write a program to take the inputs in the following order and display the result as shown below.
Your program should use primitive arrays and for loop to get this work.
number of students, id as int, name as string, fee as double and section as char
***** User inputs *****
Number of students :
Enter student 1 Id :
1
Enter student 1 name:
ds
Enter student 1 fee :
10.50
Enter student 1 section :
c
Enter student 2 Id :
2
Enter student 2 name:
sd
Enter student 2 fee :
11.43
Enter student 2 section :
e
(repeat until number of students)

****** Result*********
Id Name Fee Section
1 ds 10.50 c
2 sd 11.43 e

Program 2: Write a program to take the inputs in the following order and display the result as shown below.
Your program should use primitive arrays and control stmts to get this work.
number of students, id as int, name as string, fee as double and section as char
***** User inputs *****
Number of students :
Enter student 1 Id :
Enter student 1 name:
Enter student 1 fee :
Enter student 1 section :
(repeat until number of students)

Enter section that you want to see the result :
e
****** Result*********
Id Name Fee Section
2 sd 11.43 e

Program 3: Write a program to take the inputs in the following order and display the result as shown below.
Your program should use Student Object to store the Student details(id,name …) and store them in Array of Student type.
number of students, id as int, name as string, fee as double and section as char
***** User inputs *****
Number of students :
Enter student 1 Id :
Enter student 1 name:
Enter student 1 fee :
Enter student 1 section :
(repeat until number of students)

****** Result*********
Id Name Fee Section
1 ds 10.50 c
2 sd 11.43 e