Thursday, March 17, 2022

Student Final Grade in C++

 A simple program to solve the student final grade using a C++ programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

#include <iostream>


int main(){

    float prelim_grade, midterm_grade;

    float endterm_grade, final_grade;


     std::cout <<"\n\n";

std::cout <<"\tStudent Final Grade in C++";

std::cout <<"\n\n";

    std::cout <<"\tGive Student Prelim Grade   : ";

    std::cin >> prelim_grade;

    std::cout <<"\tGive Student Midterm Grade  : "; 

std::cin >> midterm_grade;

    std::cout <<"\tGive Student Endterm Grade  :  "; 

std::cin >> endterm_grade;

final_grade = (prelim_grade * .2)+ (midterm_grade * .3) + (endterm_grade *.5);

std::cout <<"\n\n";

    std::cout << "\tThe Student Final Grade : " << final_grade;

std::cout <<"\n\n";

std::cout <<"\tEnd of Program";

std::cout <<"\n\n";

    return 0;

}

No comments:

Post a Comment