Computer Science Illuminated Nell Dale; John Lewis

Summary: For the %leek 2 Exercises. you will complete and submit the following ems.

Chapter 6

In Charter 8 we earn about low-level programming languages and pseudo code. It is important to understand the purpose of algorithms and how to write algorithms using pseudo code as a prekminary step to writing programs in a programing language. In addition to witting algorithms in pseudo code. an m-pennant next step is testing the algorithms for correctness. You will show your Imo ledge of the topics by answering the following questions.

1. Explain how assembly language can be more beneficial than machine engage for the programmer?

2. Describe the foundational role of algorithms as 4 relates to computing and the purpose of usng pseudocode to write algorithms Include the rote of variables n pseudo code 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 Algonthms Psedocode Guidelines document in the course resources section of the course.

  1. test grade for student test
  2. total of al test grades added together
  3. the average foe the test grade

4. Create an assignment statement that sets the value of the variabe 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 aveage of the test grades. and output the average. Use a count-controlled loco to create the algorithm. Use the information eon 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 algorthin

7. Create a test to check the agorhm that is in a format similar to the following.

Reason for Test Case
Assumpoon: 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

Chapter 7

In Chapter 7 we continue learning about algorithms twit a focus on solving problems. The purpose of writing algrothms is to solve problems. Mile there are many ways to write an algorithm to correctly solve a problem. some structures are more efficient than others. IA% take a lock at different structures used in writing algorithm and the strategies utilized. You wit show your knowledge of the topics by answering the Waning questions.

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. 0. Explain how a sequential search algorithm weds as compared to a binary search algorithm. The purpose of the Exercise S to help you better understand the key points. It is not sufficient to state your opintos abre you must be able to back up your responses by apotyng concepts and topics from the text with the information that supports your findings. The expected response length is 3-5 sentences per question. Be as thorough as possible when writing your responses. and remember. this is an academic assignment so no ‘tert-talc.’ no conversational tone. and ABOVE ALL OTHER THINGS… don’t plagiarize!! Lastly. spell-check and proofread your work! Failure to follow these steps will negatively impact your grade.