please please answer asap write a C++ program Assume that you are asked to group students based on quiz marks and grades

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

please please answer asap write a C++ program Assume that you are asked to group students based on quiz marks and grades

Post by answerhappygod »

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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply