Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function to accept a vector of test scores (values of type double between 0.00 and 100.00) and an empty vector of type char.
Write a function to accept a vector of test scores (values of type double between 0.00 and 100.00) and an empty vector of type char. The function should fill the second vector with the appropriate letter grade for each score in the first vector. So, if the first score were 75, the first letter grade would be C. The scale is 90 A, 80 B, 70 C, 65 D, 65 F O void calcLetter(const vector &V1, vector &V2) for(int i 0;i= 90.0) else if (V1li80.0 lg = 'B'; else if (V1il70.0 lg = 'C'; else if (V1lil 65.0 else V2.[i]=Ig
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