Question: A simple python code Problem Statement: An inefficient student repository In this lab, you will be building a simple software application that finds the highest

A simple python code

A simple python code Problem Statement: An inefficient student repository In this

Problem Statement: An inefficient student repository In this lab, you will be building a simple software application that finds the highest cgpa from a list of students as given by the user and then displays the average cgpa for the course. The purpose of the assignment is to gain experience with for loop and list manipulation. C. Lab Procedure: 1. The program initializes two lists: names and cgpas 2. The program asks for name and cgp of a student using one input statement. User will enter the information separated by comma. a. Separate the name and cgpa from the input. Hint: input assume everything as string. how to convert a string to a list of information? b. Add the name and cgpa to names and cgpas list. cgpa in index i in cgpas list belongs to the name of index i in names list. For example: in the sample 1/0 Bonney M has a CGPA of 3.12. Both are in index position of 2. 3. Step 1 and 2 repeats as long as user wants to continue entering the information. 4. The program will then find the maximum cgpa and maximum cgpa index from the cgpas list. Helpful code: Week 5 video lecture: 5.7 Use case-find largest number from a list. 5. Print the names and cgpas list. 6. Use the maximum cgpa index to obtain the name of the student whose score is the highest 7. Report the average cgpa of the course from the cgpas list. Sample 10: Enter student name and cgpa (seperate by comma): Bob Dylon,3.45 Do you want to continue (y)? y Enter student name and cgpa (seperate by comma): Bob Marley, 4.00 Do you want to continue (y)? y Enter student name and cgpa (seperate by comma): Bonney M, 3.12 Do you want to continue (y)? y Enter student name and cgpa (seperate by comma): John Elton, 3.92 Do you want to continue (y)? n ['Bob Dylon', 'Bob Marley', 'Bonney M', 'John Elton'] [3.45, 4.0, 3.12, 3.92] Student name: Bob Marley has the highest cgp of 4.0 The average cgpa of the class is: 3.62

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!