Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part II: C + + Programming based on pseudocode: OBTAIN inputLetterGrade of Student / / gets input from user IF inputLetterGrade equals A GPA equals
Part II: C Programming based on pseudocode:
"OBTAIN inputLetterGrade of Student gets input from user
IF inputLetterGrade equals A
GPA equals
IF inputLetterGrade equals B
GPA equals
IF inputLetterGrade equals C
GPA equals
IF inputLetterGrade equals D
GPA equals
IF inputLetterGrade equals F
GPA equals
ELSE IF inputLetterGrade isnt A B C D or F
PRINT You have entered an invalid letter grade, please try again.
RETURN GPA
Calculate GPA from LetterGrade created variable LetterGrade and calculate GPA from average of grades provided
Grade Grade Grade Grade DIVIDED BY
DETERMINE if summaCumLaude is TRUE or FALSE
PRINT TRUE if studentGPA is Greater than
ELSE print FALSE
DETERMINE if magnaCumLaude is TRUE or FALSE
PRINT TRUE if studentGPA is GREATER than and LESS than or equal to
ELSE print FALSE
DETERMINE if cumLaude is TRUE or FALSE
PRINT TRUE if studentGPA is GREATER than and LESS than or equal to
ELSE print FALSE
DETERMINE if noHonors is TRUE or FASLE
PRINT TRUE is StudentGPA is LESS than
ELSE print FALSE
END"
The second part of the assignment is to build the actual program code C for the calculator. Your submission should include your source code,
complete with a brief description of the file in a commented 'header' section.
The following critical elements should be addressed:
Code Description: A brief explanation of the code and a brief discussion of any issues that you encountered while completing the exercise.
Functioning Code: A source code must meet its specifications and behave as desired. To develop proper code, you should produce fully
functioning code produces no errors that aligns with accompanying annotations. You should write your code in such a way that the
submitted files actually executes, even if it does not produce the correct output. You will be given credit for partially correct output that
can actually be viewed and seen to be partially correct.
Code Results: Properly generated results establishes that your source code:
A Generates accurate output
B Produces results are streamlined, efficient, and errorfree
AnnotationDocumentation: All code should also be wellcommented. This is a practiced "art" that requires striking a balance between
commenting everything, which adds a great deal of unneeded noise to the code, and commenting nothing. Wellannotated code requires
you to:
A Explain the purpose of lines or sections of your code detailing the approach and method the programmer took to achieve a specific task
in the code
B Document any section of code that is producing errors or incorrect results.
Style and Structure: Part of the lesson to be learned in this course is how to write code that is clearly readable and formatted in an
organized manner. To achieve this, you should:
A Develop logically organized code that can be modified and maintained
B Utilize proper syntax, style, and language conventionsbest practices
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started