Lab Act2 CPP
Lab Act2 CPP
ITE 001
Activity 2
-Basic programming using C++ Input/ Output (cin/cout object)
The following question supports the attainment of Course Intended Learning Outcomes (CILO): Identify the components, features,
characteristics, and uses of C++ Language in various applications; and Design computing-based solution using control structures,
functions, arrays and other statements.
Instruction: Write a program that will let the user enter: Student Name, FOUR course Code, FOUR course Units and FOUR course Grade.
The program will compute and display the student's General Weighted Average(GWA).
Variables: studName, cCode1, cCode2, cCode3, cCode4, cUnit1, cUnit2, cUnit3, cUnit4, cGrade1, cGrade2, cGrade3, cGrade4, totUnits,
gwa=0.
Formula:
totUnits=cUnit1 + cUnit2 + cUnit3 + cUnit4
gwa= ((cGrade1*cUnits1)+( cGrade2*cUnits2) + ( cGrade3*cUnits3) +( cGrade4*cUnits4))/ totUnits
************************************************************************************************************************************************************
SAMPLE OUTPUT:
Name: Great Allan Ong
Section: IT11S10
#include<iostream>
#include<string>
OUTPUT: paste the output here...PRESS ALT PRINT SCREEN TO SCREEN SHOT THE OUTPUT
Honor Pledge
"I affirm that I have not given or received any unauthorized help on this assignment and that this work is my own".