Using Python 1 Ask User Number Students Use Try Catch Statement Make Sure User Enters Whol Q37061249

Using Python

1. Ask the user for the number of students. Use a try/catchstatement to make sure

the user enters a whole number. Once you have the number ofstudents, you can

define your arrays with this size. For example,FirstName = [“”] * num defines an

array to hold num items.

2. For each student, ask the user to enter a set of first namesinto one array, the

middle initials into another array, last names into anotherarray and grade point

average (GPA – floating point values such as 3.4, 2.8,etc.) into another array for a

given student. This way, you will have 4 parallelarrays.

3. Write a function that displays

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.