Answered step by step
Verified Expert Solution
Link Copied!

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 4.0
IF inputLetterGrade equals B
GPA equals 3.0
IF inputLetterGrade equals C
GPA equals 2.0
IF inputLetterGrade equals D
GPA equals 1.0
IF inputLetterGrade equals F
GPA equals 0
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
Grade1+ Grade2+ Grade3+ Grade4 DIVIDED BY 4
DETERMINE if summaCumLaude is TRUE or FALSE
PRINT TRUE if studentGPA is Greater than 3.9
ELSE print FALSE
DETERMINE if magnaCumLaude is TRUE or FALSE
PRINT TRUE if studentGPA is GREATER than 3.8 and LESS than or equal to 3.7
ELSE print FALSE
DETERMINE if cumLaude is TRUE or FALSE
PRINT TRUE if studentGPA is GREATER than 3.6 and LESS than or equal to 3.7
ELSE print FALSE
DETERMINE if noHonors is TRUE or FASLE
PRINT TRUE is StudentGPA is LESS than 3.6
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 file(s) 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 error-free
Annotation/Documentation: All code should also be well-commented. 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. Well-annotated 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 conventions/best practices

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

ISBN: 0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago