Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

UMaT Grading System for CE L100 Sem1, Exams of Computer Science

A C++ program that calculates the grades of students in various courses offered in the Computer Science and Engineering Department of the University of Mines and Technology. The program takes in student details and grades in courses such as Computer Programming, Computer Science and Engineering, Linear Algebra, Basic Mechanics, Technical Drawing, Communication Skills, Basic French, and Applied Electronics. The program assigns letter grades based on the percentage score of each course and displays the final grades of the student.

Typology: Exams

2022/2023

Available from 07/16/2023

odeneho-calculus
odeneho-calculus 🇬🇭

2 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
/*PROGRAMMER NAME: CALCULUS GUY
PROJECT NAME: UMAT GRADING SYSTEM FOR CE L100 SEM1
INSTITUTION: UNIVERSITY OF MINES AND TECHNOLOGY
*/
// NOTE: IF ANY MISUNDERSTANDING KINDLY CONTACT ME ON +233597537575
//GIVE CREDIT WHEN REMOD IT. THANK YOU
/*
MADE WITH LOVE 0_0
*/
#include <iostream>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <cmath>
using namespace std;
int main()
{
system("color 0A");//SYSTEM MAING COLOUR
//Variables used in the project. You change it at your own risk.
string fname;
string lname;
string ref_no;
int year;
float comp_prog=0;
float comp_sci;
float lin_alg;
float bas_mec;
float Tec_drw;
float com_ski;
float bas_fre;
float appl_elec;
char comp_prog_holder;
char comp_sci_holder;
char lin_alg_holder;
char bas_mec_holder;
char Tec_drw_holder;
char com_ski_holder;
char bas_fre_holder;
char appl_elec_holder;
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download UMaT Grading System for CE L100 Sem1 and more Exams Computer Science in PDF only on Docsity!

/*PROGRAMMER NAME: CALCULUS GUY

PROJECT NAME: UMAT GRADING SYSTEM FOR CE L100 SEM

INSTITUTION: UNIVERSITY OF MINES AND TECHNOLOGY

// NOTE: IF ANY MISUNDERSTANDING KINDLY CONTACT ME ON +

//GIVE CREDIT WHEN REMOD IT. THANK YOU

MADE WITH LOVE 0_

#include #include <stdlib.h> #include #include <string.h> #include using namespace std; int main() { system("color 0A");//SYSTEM MAING COLOUR //Variables used in the project. You change it at your own risk. string fname; string lname; string ref_no; int year; float comp_prog=0; float comp_sci; float lin_alg; float bas_mec; float Tec_drw; float com_ski; float bas_fre; float appl_elec; char comp_prog_holder; char comp_sci_holder; char lin_alg_holder; char bas_mec_holder; char Tec_drw_holder; char com_ski_holder; char bas_fre_holder; char appl_elec_holder;

//Heading starts here. Please if you want to remove the heading then start from here to where it ends as "//Heading ends here" cout<< "\tUniversity of Mines And Technology____________________________________________________________\n"; cout<< "\t________________________________________________________________________________ ______________\n"; cout <<"\t## ### ### # ######## ####### ###### ## ## ######\n"; cout <<"\t## ## ## ## ## ## ## ## ## ## ## ## ## \n"; cout <<"\t## ## ## ## ## ####### ## ### ## #### ##### #### ##### \n"; cout <<"\t## ## ## ## ## ## ## ## ## ## ## \n"; cout <<"\t ###### ## ## ## ## ##### ## ###### #### ###### \n"; cout<< "\t________________________________________________________________________________ ______________\n"; cout<< "\t__________________________________________Welcome to UMaT Grading System 2023 by Calculus Guy\n\n\n"; //Heading Ends here //Takes in Students details starts here cout <<"\t\t\t\tCOMPUTER SCIENCE AND ENGINEERING DEPARTMENT \n"; cout <<"\t\t\t\t-------------------------------------------\n"; cout <<"Please Kindly Provide Student Details to conƟnue\n"; cout <<"-------------------------------------------------\n\n"; cout <<" Enter student Firstname and must not exceed 20 leƩers\n"; cout <<">> ";cin >> fname;cout <<endl; cout <<" Enter student Lastname and must not exceed 20 leƩers\n"; cout <<">> ";cin >> lname;cout <<endl; cout <<" Enter one opƟon to select student year or level;\n"; cout << " 1. Year 1 2. Year 2 3. Year 3 4. Year 4\n"; cout <<">> ";cin >> year;cout <<endl; cout << " Enter Student reference number or index number\n"; cout <<">> ";cin >> ref_no;cout <<"\n"; system("cls"); goto st_detail; //Show Student details starts here st_detail: //Heading starts here. Please if you want to remove the heading then start from here to where it ends as "//Heading ends here" //Heading is being called here again aŌer screen has been cleared cout<< "\tUniversity of Mines And Technology____________________________________________________________\n";

//Take student course marks ends here system("cls");//clear screen goto grading; //Jump to line indicated grading: //Heading starts here. Please if you want to remove the heading then start from here to where it ends as "//Heading ends here" //Heading is being called here again aŌer screen has been cleared cout<< "\tUniversity of Mines And Technology____________________________________________________________\n"; cout<< "\t________________________________________________________________________________ ______________\n"; cout <<"\t## ### ### # ######## ####### ###### ## ## ######\n"; cout <<"\t## ## ## ## ## ## ## ## ## ## ## ## ## \n"; cout <<"\t## ## ## ## ## ####### ## ### ## #### ##### #### ##### \n"; cout <<"\t## ## ## ## ## ## ## ## ## ## ## \n"; cout <<"\t ###### ## ## ## ## ##### ## ###### #### ###### \n"; cout<< "\t________________________________________________________________________________ ______________\n"; cout<< "\t__________________________________________Welcome to UMaT Grading System 2023 by Calculus Guy\n\n\n"; //Heading Ends here cout << " --------------------------------------------------\n"; cout << " ------------STUDENT DETAILS SHOWN BELOW-----------\n"; cout << " Student Name: ";cout << fname; cout <<" "; cout << lname; cout <<endl; cout << " Student Year: ";cout << year; cout <<endl; cout << " Student Ref #: ";cout << ref_no; cout <<endl; cout << " -------------------------------------------------\n"; cout << " -----------GRADING OCCURS SUCCESSFUL-------------\n\n"; //Show grade starts here cout << " --------------------------------------------------------------- \n"; cout << " -------------------GRADING RESULLTS---------------------------- \n\n"; cout << " COURSE NAME\t\t\t\tSCORED\t\tGRADE \n"; //show grade ends here //Grade calculaƟng codes starts here

//computer programming starts here if(comp_prog >= 80||comp_prog == 100){ comp_prog_holder = 'A'; cout << " Intro to Computer Programming \t\t"; cout<<comp_prog; cout <<"\t\t";cout << comp_prog_holder; cout <<"\n"; } else if(comp_prog >= 70||comp_prog == 80){ comp_prog_holder = 'B'; cout << " Intro to Computer Programming \t\t"; cout<<comp_prog; cout <<"\t\t";cout << comp_prog_holder; cout <<"\n"; } else if(comp_prog >= 60||comp_prog == 70){ comp_prog_holder = 'C'; cout << " Intro to Computer Programming \t\t"; cout<<comp_prog; cout <<"\t\t";cout << comp_prog_holder; cout <<"\n"; } else if(comp_prog >= 50||comp_prog == 60){ comp_prog_holder = 'D'; cout << " Intro to Computer Programming \t\t"; cout<<comp_prog; cout <<"\t\t";cout << comp_prog_holder; cout <<"\n"; } else if(comp_prog < 50){ comp_prog_holder = 'F'; cout << " Intro to Computer Programming \t\t"; cout<<comp_prog; cout <<"\t\t";cout << comp_prog_holder; cout <<"\n"; } //computer programming ends here //computer science and engineering starts here if(comp_sci >= 80||comp_sci == 100){

cout << " Linear Algebra \t\t"; cout<<lin_alg; cout <<"\t\t";cout << lin_alg_holder; cout <<"\n"; } else if(lin_alg >= 70||lin_alg == 80){ lin_alg_holder = 'B'; cout << " Linear Algebra \t\t"; cout<<lin_alg; cout <<"\t\t";cout << lin_alg_holder; cout <<"\n"; } else if(lin_alg >= 60||lin_alg == 70){ lin_alg_holder = 'C'; cout << " Linear Algebra \t\t"; cout<<lin_alg; cout <<"\t\t";cout << lin_alg_holder; cout <<"\n"; } else if(lin_alg >= 50||lin_alg == 60){ lin_alg_holder = 'D'; cout << " Linear Algebra \t\t"; cout<<lin_alg; cout <<"\t\t";cout << lin_alg_holder; cout <<"\n"; } else if(lin_alg < 50){ lin_alg_holder = 'F'; cout << " Linear Algebra \t\t"; cout<<lin_alg; cout <<"\t\t";cout << lin_alg_holder; cout <<"\n"; } //Linear Algebra ends here //Basic Mechanics starts here if(bas_mec >= 80||bas_mec == 100){ bas_mec_holder = 'A'; cout << " Basic Mechanics \t\t"; cout<<bas_mec; cout <<"\t\t";cout << bas_mec_holder; cout <<"\n"; } else if(bas_mec >= 70||bas_mec == 80){

bas_fre_holder = 'B'; cout << " Basic Mechanics \t\t"; cout<<bas_mec; cout <<"\t\t";cout << bas_mec_holder; cout <<"\n"; } else if(bas_mec >= 60||bas_mec == 70){ bas_mec_holder = 'C'; cout << " Basic Mechanics \t\t"; cout<<bas_mec; cout <<"\t\t";cout << bas_mec_holder; cout <<"\n"; } else if(bas_mec >= 50||bas_mec == 60){ bas_mec_holder = 'D'; cout << " Basic Mechanics \t\t"; cout<<bas_mec; cout <<"\t\t";cout << bas_mec_holder; cout <<"\n"; } else if(bas_mec < 50){ bas_mec_holder = 'F'; cout << " Basic Mechanics \t\t"; cout<<bas_mec; cout <<"\t\t";cout << bas_mec_holder; cout <<"\n"; } //Basic Mechanics ends here //Technical Drawing starts here if(Tec_drw >= 80||Tec_drw == 100){ Tec_drw_holder = 'A'; cout << " Technical Drawing \t\t"; cout<<Tec_drw; cout <<"\t\t";cout << Tec_drw_holder; cout <<"\n"; } else if(Tec_drw >= 70||Tec_drw == 80){ Tec_drw_holder = 'B'; cout << " Technical Drawing \t\t"; cout<<Tec_drw; cout <<"\t\t";cout << Tec_drw_holder; cout <<"\n"; } else if(Tec_drw >= 60||Tec_drw == 70){ Tec_drw_holder = 'C'; cout << " Technical Drawing \t\t"; cout<<Tec_drw; cout <<"\t\t";cout << Tec_drw_holder; cout <<"\n"; } else if(Tec_drw >= 50||Tec_drw == 60){ Tec_drw_holder = 'D';

bas_fre_holder = 'A'; cout << " Basic French \t\t"; cout<<bas_fre; cout <<"\t\t";cout << bas_fre_holder; cout <<"\n"; } else if(bas_fre >= 70||bas_fre == 80){ bas_fre_holder = 'B'; cout << " Basic French \t\t"; cout<<bas_fre; cout <<"\t\t";cout << bas_fre_holder; cout <<"\n"; } else if(bas_fre >= 60||bas_fre == 70){ bas_fre_holder = 'C'; cout << " Basic French \t\t"; cout<<bas_fre; cout <<"\t\t";cout << bas_fre_holder; cout <<"\n"; } else if(bas_fre >= 50||bas_fre == 60){ bas_fre_holder = 'D'; cout << " Basic French \t\t"; cout<<bas_fre; cout <<"\t\t";cout << bas_fre_holder; cout <<"\n"; } else if(bas_fre < 50){ bas_fre_holder = 'F'; cout << " Basic French \t\t"; cout<<bas_fre; cout <<"\t\t";cout << bas_fre_holder; cout <<"\n"; } //Basic French ends here //Applied Electricity starts here if(appl_elec >= 80||appl_elec == 100){ appl_elec_holder = 'A'; cout << " Applied Electricity \t\t"; cout<<appl_elec; cout <<"\t\t";cout << appl_elec_holder; cout <<"\n"; } else if(appl_elec >= 70||appl_elec == 80){ appl_elec_holder = 'B'; cout << " Applied Electricity \t\t"; cout<<appl_elec; cout <<"\t\t";cout << appl_elec_holder; cout <<"\n"; } else if(appl_elec >= 60||appl_elec == 70){ appl_elec_holder = 'C';

cout << " Applied Electricity \t\t"; cout<<appl_elec; cout <<"\t\t";cout << appl_elec_holder; cout <<"\n"; } else if(appl_elec >= 50||appl_elec == 60){ appl_elec_holder = 'D'; cout << " Applied Electricity \t\t"; cout<<appl_elec; cout <<"\t\t";cout << appl_elec_holder; cout <<"\n"; } else if(appl_elec < 50){ appl_elec_holder = 'F'; cout << " Applied Electricity \t\t"; cout<<appl_elec; cout <<"\t\t";cout << appl_elec_holder; cout <<"\n"; } //Applied Electricity ends here cout << " -------------------GRADING COMPLETED---------------------------- \n\n"; //Grade calculaƟng codes ends here return 0; }