#include <iostream> using namespace std; //Display functions void calculateMean(
ID: 3618750 • Letter: #
Question
#include <iostream>
using namespace std;
//Display functions
void calculateMean(double, double);
void calculateStandardDeviation(double);
void getLetterGrade();
//enter main function
int main()
{
//Declare variables
doublenumberScores;
doublescore, totalScores = 0.0, mean = 0.0;
//askuser how many scores user wishes to enter
cout<< "How many scores do you wish to enter? ";
cin>> numberScores;
//forloop statement to enter all the scores from the amount the userwishes to enter
for(double num = 1.0; num <= numberScores; num++)
{
cout << "Enter score " << num << ": ";
cin >> score;
//Calculate the total of the scores
totalScores = totalScores + score;
//Function to calculateMean()
calculateMean(numberScores, totalScores);
//Function to calculateStandardDeviation()
calculateStandardDeviation(mean, num);
}
//Function to getLetterGrade()
getLetterGrade();
//return a value
return0;
}
//calculate Mean function
void calculateMean(double numberScores,double totalScores)
{
//Declare variables
doublemean, standardD;
//Calculate the mean
mean =(1.0 / numberScores) * totalScores;
//Display the mean
cout<< "The mean of the scores is " << mean <<endl;
}
//calculateStandardDeviation() function
void calculateStandardDeviation(double mean,double num)
{
//Declare variables
doublestandardDeviation;
//Calculate the standard Deviation
standardDeviaiton = mean * (num - mean);
}
//Determine the letterGrade() function
void getLetterGrade()
{
}
Explanation / Answer
anyone have any ideas on this. I am still stuck and need toturn this in a few hours?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.