Explore BrainMass

Creating Pseudocodes and Flow Charts

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

How do you write pseudocode and a flow chart that would let you put in up to 50 student names and 4 grades for each? The names need to be sorted alphabetically and the grades averaged and sorted from highest to lowest.

© BrainMass Inc. brainmass.com March 21, 2019, 3:59 pm ad1c9bdddf

Solution Preview

First, we need to build a structure to accept student name as well as the four grades. It can also calculate the average grades. In OOP design, we can use a student class defined as follows.
class Student {
String name; // The name of the student name
float grades[]; // Grades of the student.
float avg; // The average grade
float avgGrade() {
float totalGrade
for (int i=0; i<grades.length; i++) ...

Solution Summary

This is a guide on how to create a pseudocode and a flow chart that can allow data to be sorted alphabetically and have grades averaged.