The programming language: C++ The requirements of reports: 1.The algorithm design idea 2.The source code with necessary comments 3.Test case and results (show the screenshot of your terminal); 4.Summary Binary Search [Problem description] Given the grade list of students in a class and your grade, find your position of Ken in the list according to his grade by the binary search method. The grade list is an ordered list and sorted ascendingly. The maximal length of the grade list is 100. [Basic requirements] Use the binary search method. [Example] What you need to show in the terminal(the back part is outputted by you and the blue part is inputted by the user, i.e., teacher): Please input the student grade list: Alice:73 Bob:80Mark:82 David:84 Jenny:89 Maria:93 Please input the grade of Ken: 90 The position of Ken is: 6

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter12: Working With Document Nodes And Style Sheets: Creating A Dynamic Document Outline
Section12.2: Visual Overview: Exploring Attribute Nodes
Problem 2QC
icon
Related questions
Question

The programming language:  C++

The requirements of reports:

1.The algorithm design idea

2.The source code with necessary comments

3.Test case and results (show the screenshot of your terminal);

4.Summary

Binary Search

[Problem description]

Given the grade list of students in a class and your grade, find your position of

Ken in the list according to his grade by the binary search method. The grade

list is an ordered list and sorted ascendingly. The maximal length of the grade

list is 100.

[Basic requirements]

Use the binary search method.

[Example]

What you need to show in the terminal(the back part is outputted by you

and the blue part is inputted by the user, i.e., teacher):

Please input the student grade list:

Alice:73

Bob:80Mark:82

David:84

Jenny:89

Maria:93

Please input the grade of Ken:

90

The position of Ken is:

6

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Lists
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
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning