Algorithms Psedocode
Answer the following questions.
1. Explain how assembly language can be more beneficial than machine enguage for the programmer?
2. Describe the foundational role of algorithms as 4 relates to computing and the purpose of using pseudocode to write algorithms. Include the rote of variables n pseudocode and how assignments are used in conjunction with variables in your description.
3. Create the following variables that can be used to store values. Use the naming conventions as °mined in the Algorithms Psedocode Guidelines document in the course resources section of the course.
1. test grade for student test 2. I0•21 of al test grades added together 3. the average foe the test grade 4. Create an assignment statement that sets the value of the variable you created to axe the value of al test grades added togeo`er to zero. You may refer to Table 8.1 in Chapter 8 for examples. 5. Create an input statement to input the value for the first test grade for the variable you created.
6. Create an algorithm that will obtain the test grade for three students. add the test grades together. calculate the average of the test grades. and output the average. Use a count-controlled loco to create the algorithm. Use the information on your arinvers to questions 3.4. and 5 in the creation of your algorithm. Also use information and examples from Chapter 5 and Chapter 7 to he you create the algorithm
7. Create a test to check the algorithm that is in a format similar to the following.
Reason for Test Case
Assumption: Input values are between 0 and 100.
Input three values greater than 0.
Input three values Wei one being a grade of 0.
Input three values wilt one being a grade of 100
Input values Expected Observed Output Output
8. Explain why an algorithm with a repetition control structure with a count-controlled loop is a better choice than a repetition with an event-controlled loop for the algorithm you created in question 8.
Explain how a sequential search algorithm weds as compared to a binary search algorithm.
The expected response length is 3-5 sentences per question. Be as thorough as possible when writing your responses.
Textbook: Computer Science Illuminated Nell Dale; John Lewis