Explore BrainMass

Explore BrainMass

    C++ Programming (Arrays and Strings)

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    See attach file.

    © BrainMass Inc. brainmass.com March 4, 2021, 6:11 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/c-programming-arrays-and-strings-33498

    Solution Preview

    Blank or no answers are marked as 'N' instead of empty character. The input file Answers.txt is given, please try the program.

    #include<iostream>
    #include<fstream>
    #include<string>
    #include<iomanip>
    using namespace std;

    int CalculatePoints( char Correctans, char ans);
    int CalculatePercentage( double sumpoints);
    int CalculateGrade( double score);

    void main()
    {
    string stuID;
    char Canswer[20];
    char Correctanswer[20];
    char answer[20];
    double pts;
    char ...

    $2.19

    ADVERTISEMENT