Paste
Copy
Cut
Options

This problem has been solved!

You'll get a detailed solution from a subject matter expert that helps you learn core concepts.

See Answer
  • Question: Problem 1. [35 points] Grade calculator I. Dr. Schneebly asks you to write a C++ program that (1) reads a student's homework scores from an input text file "dat_hw5_prob1.txt" (in canvas under /Files/HomeworkSets) one at a time. (2) Find the lowest score. (3) Computes the average score after excluding the lowest score. (3) Calculate the student's grade based

    c++, visual studios.

    student submitted image, transcription available below
    student submitted image, transcription available below
    Show transcribed image text
  • Chegg Logo
    There are 3 steps to solve this one.
    Solution
    Step 1

    C++ Program:

    Step (1.) : Reading file and appending into vector.

    ifstream file; file.open ("dat_hw5_prob1.txt"); // reading file and appending into vector while (file >> num) { numbers.push_back(num); }
    Explanation:

    Using vector as don't know how may sc...

    View the full answer
    answer image blur
    Step 2
    Unlock
    Step 3
    Unlock
    Answer
    Unlock
Transcribed image text:
Problem 1. [35 points] Grade calculator I. Dr. Schneebly asks you to write a C++ program that (1) reads a student's homework scores from an input text file "dat_hw5_prob1.txt" (in canvas under /Files/HomeworkSets) one at a time. (2) Find the lowest score. (3) Computes the average score after excluding the lowest score. (3) Calculate the student's grade based on the following bracket: (4) displays the average score (after excluding the lowest score), and the final grade using cout. You may assume the file contains at least one number. But you do not know how many scores the file contains. Please report your results in the write-up. 10:29 L Back dat_hw5_prob1.txt 96 86 88 95 88 92 77 80 64 95 100 94