Submitted by: Submitted by Xanroth
Views: 13
Words: 512
Pages: 3
Category: Science and Technology
Date Submitted: 07/09/2015 02:33 PM
CMIS 102 Homework Assignment 3
Description: I’ve been tasked to create a program that will allow a user, in this case a teacher, to enter their student names and final grades from their course. The amount of students in the class is an unknown variable, as well as courses completed. This program will be utilized to calculate the Grade Point Average for each student based on their final grades of the courses completed.
Analysis: In order for me to calculate the GPA for a single student, the program will require the user to input the final grades for the courses completed for each individual student. The user will not need to tell the program how many courses are completed, but the program will calculate the GPA’s based off the input by the user. Once the course grades have been entered, then it is a simple math problem. The program will take the user’s input for however many class grades they have entered, and divide the total by the number of classes given. Each answer for the course grade will be associated with a number. For example – an “A” will be worth 4 points, a B will be worth 3 points, etc.
VARIABLES USED = Student Name, GPA, Course Grade
Student name = User Input
GPA = Course Grade + Course Grade + Course Grade / Number of Courses
For instance:
Student 1 = Number of Courses Taken = X
Course 1 grade + Course 2 grade + Course 3 grade = Over All Grade
Overall Grade / Number of Courses taken = GPA
Sample Test Data:
Joshua =# Of Courses Taken = 4. Grades Are: A, A, A, A = 4.0 GPA
Emily = # Of Courses Taken = 6. Grades Are: A, C, C, C , B, A = 2.83 GPA
Shaun = # Of Courses Taken = 3. Grades Are: A, B, B = 3.3 GPA
Frankie = # Of Courses Taken = 5. Grades Are: A, A, A, B, A = 3.8 GPA
Pseudocode
//This program will calculate the Final GPA for your Student
/* Variable Declarations */
Int Student Name
Int Total Number of Courses Taken
Int course grade
//Initialize variables
Set A = 4.0
Set B = 3.0
Set C = 2.0
Set D = 1.0
Set F = 0.0
Set Student...