Answer the following questions:
1. Describe your solution for the second project that added a Search button. Provide a screenshot of the search button click code that uses a complex algorithm with loops and lists. Why was a loop necessary?
Answer
see below.
A loop was necessary because it the program more efficient, otherwise there would be four individual procedures.
2. Write AP text-style pseudocode for a linear search that searches through a list to find an item x. It should display found if the x is equal to an item in the list.
Answer
initialize global list = 1
list: a
b
c
d
x
if global list = x
then print x
3. Give brief descriptions of the enhancements you added to your app for the third project, a quiz topic of your own choosing. Provide screenshots of important blocks and describe how you used them to solve certain programming problems.
Answer
Enhancements-created a way to win, added many more images, snipped the end of the Image pathway and made it the answer.
4. To practice for the Create project prompt, grab a screenshot of a program code segment from your project that implements an algorithm that includes two or more algorithms within it and includes mathematical and/or logical concepts. An ideal algorithm is a procedure that you created that includes calls to other procedures that you created, where at least one of those includes math or logic (ifs or loops). Describe how each of the two algorithms within the bigger algorithm functions independently as well as in combination to form a new algorithm.
Answer
Each of the two algorithms within the bigger algorithm function independently as well as in combination to form a new algorithm by using local variable and global variable. The smaller algorithms check the validity of the answer, and will update the label accordingly. The bigger algorithm is responsible for displaying the two smaller algorithms.