# CMIS 102 Homework 3

Satisfactory Essays
342 Words
Grammar
Plagiarism
Writing
Score
CMIS 102 Homework 3
Program Description - This program will allow a user to input their name and final grades from their courses and calculate their GPA accordingky. The amount of students as well as the amount of classes each student is taking, are undetermined.

Analysis – First I need to declare A, B, C, D, F and GPA as integers.
A = 4, B = 3, C = 2, D = 1, F = 0.
Each of these numbers will be floated
The program will ask for the name of the user
User Name: Stephen
The letters corresponding to the integers will be summed ex. A+A+D = 4+4+1 = 9
The program will then divide the sum of the integers by the amount entered.
9/3 = 3.0 = GPA
The program will print the students name and their GPA
Name: Stephen GPA = 3.0

Test Plan -
Test Case #
Input
Expected Output
1
Steve: A,A,D
James: A,A,D,B
Chris: D,B,D,C
Kelly: F,A,C,C,D
Rick: D,C,C
Crystal: C,A,D
David: D,A,A,C,B
Kelsey: B,B,A,C,C
Laura: A,A,F
Marissa: D,D,A,B
GPA for Steve: 3.0
GPA for James: 3.0
GPA for Chris 1.75
GPA for Kelly: 2.25
GPA for Rick: 1.25
GPA for Crystal:1.75
GPA for David: 3.0
GPA for Kelsey: 2.8
GPA for Laura: 2.67
GPA for Marissa: 2.25

Pseudocode-
//Purpose: This program will allow students to input their name and grades to determine a GPA value
//Developer: Joe Metz
//GPA Calculator

//Variable Definition
Floats=GPA
//Declare Integer Values
GRADE_POINTS= A=4, B=3, C=2, D=1, F=0
//Initiate Student Loop
For (students=0; students<10; students++)
Print “Enter Student Name”
User Input Student Name
//Reset sum to 0.0
Sum=0.0
//Calculate GPA
GPA=SUM/NUM_OF_CLASSES
Print “The GPA for “STUDENT_NAME” is “GPA”

Flowchart-

## You May Also Find These Documents Helpful

• Good Essays

10. College XYZ wants to collect information from students concerning a plus/minus grading system (the college administration wants to add minus grades to the plus values…

• 1556 Words
• 7 Pages
Good Essays
• Satisfactory Essays

4.) Write assignment statements that perform the following operations with the variables a, b, and c:…

• 470 Words
• 3 Pages
Satisfactory Essays
• Satisfactory Essays

Analysis: The problems required output is the students name with scores from three tests. Each student and scores shall be listed on separate lines. The input variables needed for this program include Test1, Test2, Test3, and Student.…

• 175 Words
• 2 Pages
Satisfactory Essays
• Satisfactory Essays

Problem 1:Input names of students from the user, terminated by ZZZ, andcreate a data file GRADES with records of the form:student (string), test1 (integer), test2 (integer), test3 (integer)In this file, all test scores should be set equal to 0.…

• 194 Words
• 2 Pages
Satisfactory Essays
• Satisfactory Essays

Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form: student(string), test1(integer), test2(integer), test3(integer). In this file, all test scores should b e set equal to 0.…

• 349 Words
• 2 Pages
Satisfactory Essays
• Satisfactory Essays

4.) Write assignment statements that perform the following operations with the variables a, b, and c:…

• 453 Words
• 3 Pages
Satisfactory Essays
• Powerful Essays

This report aims to examine and show how economic factors and housing policy have affected provision of affordable housing in Dundee from mid 1900’s to present day. It will show evolution of provision, regeneration, accessibility to affordable housing and social exclusions affecting neighbourhoods and communities within the City of Dundee.…

• 3986 Words
• 16 Pages
Powerful Essays
• Satisfactory Essays

|1. Identify the differences between a | |1, 2, 3, 4 | | | | | |1A | |1B |…

• 11453 Words
• 46 Pages
Satisfactory Essays
• Satisfactory Essays

Problem definition: Calculate the monthly payment on a loan given the loan amount, the annual interest rate, and the total number of monthly payments.…

• 345 Words
• 2 Pages
Satisfactory Essays
• Satisfactory Essays

The intent of our system is to help the Teachers or Professors of Asian Summit College to supervise the Grades of the student.…

• 259 Words
• 2 Pages
Satisfactory Essays
• Satisfactory Essays

1) a. When the holding cost is assessed on a period by period basis, the holding cost would be the function of the maximum quantity hold during a period, especially when the carrying cost increase significantly along with the quantity, such as the insurance cost. Also, there are some products take up great space such as automobiles, ships and airplanes, each pieces need a certain amount of space, which makes the cost higher along with the increase of product quantity.…

• 549 Words
• 3 Pages
Satisfactory Essays
• Satisfactory Essays

7. Where on your student Web site will you be able to find your schedule and course grades for all courses completed to date?…

• 596 Words
• 3 Pages
Satisfactory Essays
• Satisfactory Essays

F. Use the appropriate function to calculate the letter grade equivalent in cell Z8. Use the range name in the function. The first student’s letter grade is A-…

• 472 Words
• 2 Pages
Satisfactory Essays
• Good Essays

the importance of client’s understanding what is planned to do in therapy, if needed further explanation should be provided…

• 2583 Words
• 8 Pages
Good Essays
• Satisfactory Essays

The Patient Protection & Affordable Care Act, or P.P.A.C.A, was signed into law by President Obama in March 2014. The plan would not take effect until January 1, 2014. The act will expand health coverage to 25 million Americans by 2023 (apha.org). In this paper, I will describe the purpose, history, key features, and how the act will impact the U.S health care system. I will also compare and contrast the media reports to official government research, and provide pros and cons of the act as well as my personal opinion on the act. I will analyze the expected effect of the act in terms of cost, quality, access and services. Lastly, I will describe which features of the P.P.A.C.A. will have the biggest effect on our health care system.…

• 535 Words
• 2 Pages
Satisfactory Essays