Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 2 7 . 2 : Student Grades ( map ) Given a map pre - filled with student names as keys and grades as
Project : Student Grades map
Given a map prefilled with student names as keys and grades as values, complete main by reading in the name of a student, outputting their original grade, and then reading in and outputting their new grade.
Ex: If the input is:
Quincy Wraight
the output is:
Quincy Wraight's original grade:
Quincy Wraight's new grade:
Use this as a template for your file, acpp:
#include
#include
#include
using namespace std;
int main
string studentName;
double studentGrade;
map studentGrades;
Students' grades preentered
studentGrades.emplaceHarry Rawlins", ;
studentGrades.emplaceStephanie Kong", ;
studentGrades.emplaceShailen Tennyson", ;
studentGrades.emplaceQuincy Wraight", ;
studentGrades.emplaceJanine Antinori", ;
TODO: Read in new grade for a student, output initial
grade, replace with new grade in map,
output new grade
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started