Part I: Pseudocode
The first part of this assignment is to create pseudocode that reflects the main elements of the logic that will drive the code. This section should not be produced using actual code. However, you should include important variables, calculations, relationships, and/or any critical components of the problem. Using the How to Write Pseudocode document for guidance, address the following:
A. Analyze the given problem statement.
B. Break the problem down into distinct steps of pseudocode that will solve the problem.
C. Create variables to track the various elements in the pseudocode.
D. If applicable, determine any breakdown of pseudocode into functions and/or classes.
E. Use natural language to work through the problems.
Imagine that you are a student about to graduate. You realize that it would be handy to have a tool to help you calculate your GPA and determine whether you are graduating with honors. In the GPA scale, an A is a 4.0, a B is 3.0, a C is 2.0, a D is 1.0, and an F is 0.0. GPA scales typically factor in course credits as well, but all of your classes are the same number of credits, so you can ignore that as a variable.
Honor level is based on the following scale: greater than or equal to 3.9 is summa cumlaude, 3.8 to 3.89 is magna cumlaude, 3.65 to 3.79 is cumlaude, below 3.65 there are no honors given.
Your graduation calculator should prompt the user to input four grades as the numerical value (you can ask four times, one at a time), calculate the average of the inputted grades, display this value to the user, and display a Boolean (true or false) statement for each of the honor levels.
You can use the grades A, A, B, and A as a test case, which should result in the following: Your GPA is 3.75.
Graduating summa cumlaude is false.
Graduating magna cumlaude is false.
Graduating cumlaude is true.
Graduating without honors is false.
=============================================================================================
PSEDOCODE
char a,b,c,d;
output("Enter Grades")
input(a,b,c,d);
float E,X,Y,Z;
if(a == 'A')
E=4.0
else if(a=='B')
E = 3.0
else if(a == 'C')
E = 2.0
else if(a == 'D')
E=1.0
else if(a == F)
E=0;
else No found
for all a,b,c,d
int s
s = E+X+Y+Z/4
Now just compare the result of s with all values points
=============================================================================================
C++ CODE
=============================================================================================
#include<iostream>
using namespace std;
int main(){
char a,b,c,d;
bool l1,l2,l3,l4;// for true or false
cout << "Enter values of grades";
cin >> a >> b >> c >> d; //input
float e,x,y,z,sum;
if(a =='A') e = 4.0;
else if(a == 'B') e = 3.0; //for all values to be print
else if(a == 'C') e = 2.0;
else if(a == 'D') e = 1.0;
else if(a == 'F') e = 0;
else cout << "Wrong Grade";
if(b =='A') x = 4.0;
else if(b == 'B') x = 3.0;
else if(b == 'C') x = 2.0;
else if(b == 'D') x = 1.0;
else if(b == 'F') x = 0;
else cout << "Wrong Grade";
if(c =='A') y = 4.0;
else if(c == 'B') y = 3.0;
else if(c == 'C') y = 2.0;
else if(c == 'D') y = 1.0;
else if(c == 'F') y = 0;
else cout << "Wrong Grade";
if(d =='A') z = 4.0;
else if(d == 'B') z = 3.0;
else if(d == 'C') z = 2.0;
else if(d == 'D') z = 1.0;
else if(d == 'F') z = 0;
else cout << "Wrong Grade";
sum = (e+x+y+z)/4;
if(sum >= 3.9) l1 = true;
else if(sum <=3.89 && sum >=3.8) l2 = true;
else if(sum >=3.65 && sum <=3.79) l3 = true;
else if(sum <=3.65) l4 = true;
cout << "Average is" << sum<<endl;
cout << "Graduating summa cumlaude is" << l1<<endl;
cout << "Graduating magna cumlaude is" << l2<<endl;
cout << "Graduating cumlaude is"<< l3 << endl;
cout << "Graduating without honors is" << l4<< endl;
return 0;
}

COMMENT DOWN FOR ANY QUERIES,
AND LEAVE A THUMBS UP IF THIS ANSWER HELPS YOU.
Part I: Pseudocode The first part of this assignment is to create pseudocode that reflects the...
Hello I need help fixing my C++ code. I need to display in the
console the information saved in the file as well have the content
saved in the file output in a fixed position like the screenshot.
Thanks.
CODE
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
//main function
int main()
{
//variable to store student id
int id;
//variables to store old gpa(ogpa), old course
credits(occ), new course credits(ncc), current gpa(cur_gpa),
cumulative gpa(cum_gpa)
float ogpa,...
(TCOs C-F) List the names of subroutines of the hierarchy chart, and then write complete pseudocode for the following problem. You will not have to create a data dictionary for this exercise. Problem: Students get a discount on the tuition paid. The discount is based on a student's code and the registered number of course credits. A student with a code "M" for a military job, and registered for more than four credits is eligible for 5% discount on the...
First, create two inputs that can be stored in variables consisting of a student's name. When the program begins ask "Who is the first student?" followed by "Who is the second student?" You only have to have two students for this program. Ask the user for the scores for the last three test grades for each of the students . After the user has entered both names, and three scores for each, the program should display the following as output:...
Part 1 Examine the pseudocode sample provided, and explain what it does line by line. Click here to access the sample. Note that this example is built on top of the one provided in week 2. UNIT 3 PSEUDOCODE SAMPLE Description: This logic apples a discount on an item unless the discounted price is less than the whole sale price Program: applyDiscount Create variable productPrice as double Create variable discount as double Create variable wholesalePrice as double...
this assingent is to pseudocode, i have instructions
and the example my teacher had given me for this, could i have some
assistance, i need to do this in netbeans IDE and i need to use the
scanner method as well and i need to pass both.
Overview: This assignment will allow you to use pseudocode to implement the program to see the value in planning first, coding later. While coding is the glamorous part of the job, software development is...
How do i write the pseudocode for this java code? First, write
out pseudocode, and then create a program to help you by
accomplishing the following tasks:
: Use command line interface to ask the user to input the
following.
○ How many apples are on hand ○ How many apples should be in
stock ○ How many oranges are on hand ○ How many oranges should be
in stock
Perform an operation to determine how many of...
Modify your PredictGPA.java file from Lab 2 to create a method called GPA that takes a string argument (the grade) and returns the corresponding value (ie 4.0 for an A, 3.33 for a B+, etc). Use this method call to reduce the “redundant” code that you had in Lab 2. The program must otherwise still run correctly as to the directions in Lab 2 and compute the GPA after using the method calls to determine the appropriate grade values. Trying...
Class Average Create a program that dynamically creates an array whose size depends on the user's preference. Pass the array to a calculate_avg function that is responsible for computing the average GPA of the given array. Use pointer arithmetic throughout your program. calculate_avg Create a function called calculate_avg that calculates the average of a double array and returns that average. calculate_avg() will have two parameters: a double* referring to the array an int that contains the size of the given...
Assignment Details You will create a website for handling Recipes, including recipe ingredients. In this assignment you will construct the basic layout, design, and preliminary navigation. Additionally, you will develop the initial brand for your recipe site. Create views for the following pages: 3 marks (1) Home The main page of the Recipe Site 3 marks 2) Recipelist Page to display the collection of Recipes 3 marks -(3) AddRecipe Page to add a new Recipe 3 marks -(4) ViewRecipe- Page...
When breaking a problem down, you often encounter elements that you want to use repeatedly in your code. Sometimes it's appropriate to write a new function; at other times it's appropriate to write a loop. What do you think? What kinds of circumstances would lead you to writing a function versus using a loop? What is the error in the pseudocode below? Re-write the pseudocode in your answer document. Declare Boolean finished = False Declare Integer value, cube While NOT...