Dol Lod's Profile

About

 
Points: 100

Contact

 

Dol Lod
December 20, 2015 · Public

Is anyone else having an issue with the black bar on the left? It won't allow me to scroll down or anything else so I am stuck with whatever comes up first. I tried switching browsers from chrome to firefox and there was no improvement. What happened to the site? I checked it in Thanksgiving and it was working perfectly.

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

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

Hi there,


here are the instructions

Write a C++ program that computes a student's grade for an assignment as a percentage given the student's score and total points. The final score should be rounded up to the nearest whole values using the ceil function in the header file. You should also display the floating -point result up to 5 decimal places. The input to the program must come from a file containing a single line with the score and total separated by a space. In addition, you should print to the console "Excellent" if the grade is greater than 90, "Well Done" if the grade is greater than 80, "Good" if the grade is greater than 70, "Need Improvement" if the grade is greater than or equal to 60, and "Fail" if the grade is less than 60.




Here is the code:

#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