Create a list of 20 random grades between 0 and 100. Write the code for filtering that generates a list of grades that are A or B only (80<= grades <<100).        Use filtering and lambda to create the auxiliary function.      Example:  [95, 19, 96, 69, 61, 72, 57, 85, 56, 75, 53, 23, 33, 94, 39, 96, 48, 49, 54, 90]       Output:       [95, 96, 85, 94, 96, 90] Make sure you generate random as required numbers. Don't take input

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 16PE
icon
Related questions
Question

Create a list of 20 random grades between 0 and 100. Write the code for filtering that generates a list of grades that are A or B only (80<= grades <<100).

       Use filtering and lambda to create the auxiliary function.

     Example:  [95, 19, 96, 69, 61, 72, 57, 85, 56, 75, 53, 23, 33, 94, 39, 96, 48, 49, 54, 90]

      Output:

      [95, 96, 85, 94, 96, 90]

Make sure you generate random as required numbers. Don't take input

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning