Group Template Assume that you are asked to group students based on quis marks and grades. Write a program to mad 's' ma
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Group Template Assume that you are asked to group students based on quis marks and grades. Write a program to mad 's' ma
Group Template Assume that you are asked to group students based on quis marks and grades. Write a program to mad 's' marks (Iemarks-20) and 'a' grades (A.B.C...N). Your program should include a f template which takes an array, mark or grade and number of elements 's' as arguments. If mark of one student is given, the immediate leser and greater marks to the given mark should be found t function. Similarly, if one grade letter (A or B....or F) is given, the immediate lesser and greater grades should be found. Along with the marks and grades, you program should put their loca the spective arrays to form the group of three Input 10 (A) 211681357910 300 ACTERD Er grade) Output 235 Gimmedias lesser, k,immediate greater) 656 (loc
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 6813579 10 3 (k) 6 (n) ACFEBD E (letter grade) Output 2 3 5 (immediate lesser, k, immediate greater) 056 (location) DEF (immediate lesser, k, immediate greater) 5 32 (location)