Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a python program for the given problem. Part 1: Searching Algorithm Program A: Binary Search Suppose you have the following list of numbers to

image text in transcribed
Create a python program for the given problem. Part 1: Searching Algorithm Program A: Binary Search Suppose you have the following list of numbers to search: [19. 1. 9. 7. 3. 10. 13. 15. 8. 12] This list is to be searched using binary search as described in this laboratory activity. Search for 10. List down the step by step procedure using binary search Search for 9. List down the step by step procedure using binary search Program B: Algorithm Analysis What is the best case, worst case, and average case complexity of binary search algorithms? Part 2; Python Programming Create a program for the given scenario using binary search algorithm. The user wanted to create a python program that would compute for the student grades. The input requires 5 student names and their corresponding grades in computer programming. The program consists of each prelim, midterm and final grade that will require inputting student grades such as quiz. laboratory exercises and exam. Put a remark each term (prelim, midterm. final). if the grade belongs 50 to 100, remarks the word "Passed". if grade belongs to 0 to 49.9, remarks the word "Failed" otherwise "Out of Range". The formula below show the following computation: Prelim Grade = Quiz * 25% + Lab. Exercise * 25% + Prelim Exam * 50% Midterm Grade = Quiz * 25% + Lab. Exercise * 25% + Midterm Exam * 50% Total Midterm Grade = 1/3 Prelim Grade + 2/3 Midterm Grade Final Grade = Quiz . 25% + Lab. Exercise . 25% + Final Exam * 50% Total Final Grade = 1/3 Midterm Grade + 2/3 Final Grade List of Components: [1] Quiz [2] Lab. Exercise Select: [3] Exam Grade (Prelim. Midterm. Final) Search for a grade

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

\f\f

Answered: 1 week ago