Question: Question: Write a C + + program for the given pseudocode. make sure to fulfill the following points: Declare a variables of type integer called

Question: Write a C++ program for the given pseudocode. make sure to fulfill the following points:
Declare a variables of type integer called student_id
Declare a variables of type integer called number_of_courses and set it to 3.
Declare a variables of type double called first_grade.
Declare a variables of type double called second_grade.
Declare a variables of type double called third_grade.
Prompt the user through the console for an integer value for the student_id and store it in student_id.
Prompt the user through the console for an integer value and store it in number_of_courses.
Prompt the user through the console for a double value and store it in first_grade, second_grade and third_grade.
Declare a variable of type double called sum (sum of grades)
Declare a variables of type integer called avg (sum divided by number_of_courses)
Output to the console the following message:
 Question: Write a C++ program for the given pseudocode. make sure

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!