Machine Problem in C++
Write a C++ program to ask the student subject, grades in the following criteria and compute the prelim grade of the said subject
1 Written Quiz ( 5%)
2 Hands on Quiz (30%)
3 Programming Project (35%)
4 Prelim Examination (30%)
Display the Prelim Grade and Remarks whether the student passed or failed in the Prelim period.
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 at 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.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Thank you very much.
Program Listing
// prelim_grade.cpp
// Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
// Dev C++
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
/* Machine Problem in C++
Write a C++ program to ask the student subject, grades in
the following criteria and compute the prelim grade of the
said subject
1 Written Quiz ( 5%)
2 Hands on Quiz (30%)
3 Programming Project (35%)
4 Prelim Examination (30%)
Display the Prelim Grade and Remarks whether the student
passed or failed in the Prelim period.
*/
#include <iostream>
int main()
{
std::string subject,remarks;
int written_quiz=0.00;
int hands_on_quiz = 0.00;
int programming_project = 0.00;
int prelim_examination = 0.00;
int compute_prelim_grade = 0.00;
std::cout << "\n\n";
std::cout << "\tPrelim Grade Solver in Modern C++";
std::cout << "\n\n";
std::cout << "\tGive Subject Name : ";
std::getline(std::cin,subject);
std::cin.ignore();
std::cout << "\tGive Written Quiz Grade : ";
std::cin >> written_quiz;
std::cout << "\tGive Hands On Quiz Grade : ";
std::cin >> hands_on_quiz ;
std::cout << "\tGive Programming Project Grade : ";
std::cin >> programming_project ;
std::cout << "\tGive Prelim Examination Grade : ";
std::cin >> prelim_examination;
compute_prelim_grade = (written_quiz * 0.05) +
(hands_on_quiz * 0.3) +
(programming_project * 0.35) +
(prelim_examination * 0.30);
if (compute_prelim_grade >= 75) {
remarks = "PASSED";
} else {
remarks = "FAILED";
}
std::cout << "\n\n";
std::cout << "\t===== DISPLAY RESULTS ======";
std::cout << "\n\n";
std::cout << "\tSubject : " << subject ;
std::cout << "\n";
std::cout << "\tPrelim Grade : " << compute_prelim_grade ;
std::cout << "\n";
std::cout << "\tRemarks : " << remarks;
std::cout << "\n\n";
std::cout << "\tEnd of Program";
std::cout << "\n\n";
}
No comments:
Post a Comment