Question: For this assignment, you are required to write a golang application. Your application must have a struct representing students . Each student must have student

For this assignment, you are required to write a golang application. Your application must have a struct representing students. Each student must have student id, name, GPA and place of birth.

The application should be written in Golang only

The application should be written in Golang only

The application should be written in Golang only.

.......................................................................................

1- When a user runs your application, ask the user to enter a positive number, referred as n throughout this assignment.

Then, ask the user to provide the details of n students. Save the collected details in a one-dimensional array. The size of the array must be fixed to 100.

2- Write an algorithm to find the student with the highest GPA, and the student with the lowest GPA. Use the array created in Step 1 for searching. Compute the time complexity and the Big O.

3- Repeat Step 1, but save the data in a stack this time. Set the size of the stack to 5.

4- Repeat Step 2, but use the stack created in Step 3 instead.

5- Repeat Step 1, but here the array should not hold more than n records.

6- Repeat Step 2, but use the array created in Step 5 instead.

The application should be written in Golang only

The application should be written in Golang only

Remarks

The application should be written in Golang only

  • - Provide a separate function for each of the requirements above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!