please please answer asap
write a C++ program
Assume that you are
asked to group students based on quiz marks and grades. Write a
program to read ‘n’ marks (1<=marks<=20) and ‘n’ grades (A,
B, C, . . . , N). Your program should include a function template
which takes an array, mark or grade ‘k’ and number of elements ‘n’
as arguments. If mark of one student is given, the immediate lesser
and greater marks to the given mark should be found by the
function. Similarly, if one grade letter (A or B, . . ., or
N) is given, the immediate lesser and greater grades should be
found. Along with the marks and grades, you program should output
their locations in the respective arrays to form the group of
three.
Input
10 (n)
2 11 6 8 1 3 5 7 9
10
3 (k)
6 (n)
ACFEBD
E (letter grade)
Output
2 3 5 (immediate
lesser , k , immediate greater)
0 5 6 (location)
DEF (immediate lesser
, k , immediate greater)
5 3 2 (location)
please please answer asap write a C++ program Assume that you are asked to group students based on quiz marks and grades
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am