Computer Science > QUESTIONS & ANSWERS > program to analyze GPAs for Fall 2018 graduating students at NOVA (All)
Question Answered step-by-step IPO CHART AND PSEUDOCODE PLEASE This program assesses your ability... IPO CHART AND PSEUDOCODE PLEASE This program assesses your ability to use functions, ... arrays, for loops, and if statements where needed. You are writing a program to analyze GPAs for Fall 2018 graduating students at NOVA. You begin by asking the user how many students for whom they want to enter GPAs. Validate the response with a while loop to ensure that the value entered is between 0 and 500. Once you have a valid response, a for loop is entered for processing 2 parallel arrays. The size of each of the parallel arrays is equal to the number of students entered by the user. The first array will store the Student ID and you must use a function to get the Student ID as input and store it in the Student ID array. The second array will store the GPA for the student, and you must use a function to get the GPA as input, and store it in the GPA array. Use a while or for loop to validate the value of the GPA to make sure that it falls in the range of 0 to 4.0 inclusive. If you have at least 1 student, print the contents of the parallel arrays meaning the Student ID and GPA. You also need to calculate the average GPA for all students. You must also find the student with the highest GPA and then display that student's ID and GPA. Finally, you end the program with a goodbye message. If you do not have any students (meaning if the user entered 0 students when prompted at the beginning of the program), end the program with a goodbye message. The following functions are required although it is possible to include more functions: · A function to get the Student Id and store it in an array. · A function to get the student's GPA store it in an array. · A function to validate a range of numbers. You can use this function to validate the number of students and/or the GPA. The next page shows the output from the program running with some test data. Remember that your program must run for any number of students and not just these 3 students and data shown below. It's time for NOVA's Fall 2018 graduation. We need to analyze student GPAs. ___________________________________________________________ Please enter the number of students: 3 -------------------------Student 1 ------------------------- Please enter the student ID: 1234567 Please enter the GPA: 3.3 -------------------------Student 2 ------------------------- Please enter the student ID: 2345678 Please enter the GPA: 4.0 -------------------------Student 3 ------------------------- Please enter the student ID: 9876543 Please enter the GPA: 2.0 --------------------------------------GPA Analysis----------------------------------------- Student ID GPA 1234567 3.3 2345678 4.0 9876543 2.0 Average GPA 3.1 [Show More]
Last updated: 2 years ago
Preview 1 out of 6 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jul 29, 2021
Number of pages
6
Written in
This document has been written for:
Uploaded
Jul 29, 2021
Downloads
0
Views
73
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·