Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

choose the correct option to accept a vector of test scores (values of type double between 0.00 and 100.00) and an empty vector of type

choose the correct option 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,

image text in transcribed

image text in transcribed

void calcLetterlconst vector&V1, vector &V2) forlint i-0;i= 90.0) lg = 'A'; else if (V1li]>-80.0) else if (V1li]70.0) g = 'C'; else if (V1li-65.0) else V2.push backllg); /There is no V2lil void calcLetter(const vector &V1 vector &V2) forint i=0;.V1.size();i++) char lg switch V1li]) case (>= 90.0): break; case (-80.0) break; case (-70.0) break; case -65.0): break; default: V2.push_ backlg): void calcLetter(const vector &V1, vector V2) forint i=0;.V1.size();i++) char lg; fV1i>-90.0) else if (V180.0) lg - 'B' else if (V1[i] >= 70.0) g='C'; else if (V1li>65.0) lg = 'D'; else V2push backlg

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

Describe S. Truett Cathys self-concept and self-efficacy.

Answered: 1 week ago

Question

4. Make recommendations on steps to take to melt the glass ceiling.

Answered: 1 week ago

Question

1. Discuss the potential legal issues that relate to training.

Answered: 1 week ago