Bob huginstien's Profile

About

 
Points: 71

Contact

 

Bob huginstien
April 28, 2015 · Public

Bob huginstien
April 7, 2015 · Public

Bob huginstien  >>  Dol Lod
March 15, 2015 · Public

StudentStatus= "Needs Improvement" ;

else if (percentOftheGrade

Bob huginstien  >>  Dol Lod
March 15, 2015 · Public

#include
#include
#include
#include
#include
#include

using namespace std;

int main()
{
string Students_Name; // The String name.

string StudentStatus; // string constant for the students status's.

float studentScore;

float totalPoints;

float percentOftheGrade;

float FinalScore;

ifstream inFile; // creating a file stream.

inFile.open("Grades.txt"); // opening the file "Grades"

while (inFile >> Students_Name >> studentScore >> totalPoints )
{
FinalScore = ceil(studentScore);

percentOftheGrade = (FinalScore/totalPoints)*100 ; // Calculating the average.

if (percentOftheGrade > 90)

StudentStatus ="Excellent" ;

else if (percentOftheGrade > 80)

StudentStatus="Well Done" ;

else if (percentOftheGrade > 70)

StudentStatus= "Good" ;

else if (percentOftheGrade >= 60)

StudentStatus= "Needs Improvement" ;

else if (percentOftheGrade

Bob huginstien  >>  Dol Lod
March 14, 2015 · Public

#include
#include
#include
#include
using namespace std;
int main()
{
double score,total;
ifstream infile("input.txt");
if(!infile)
{
cout > total;
double final_s = (score*100)/total;
int final_score = static_cast (ceil(final_s));

cout