Question: In Chapter 6 we learn about low - level programming languages and pseudocode. It is important to understand the purpose of algorithms and how to
In Chapter we learn about lowlevel programming languages and pseudocode. It is important to understand the purpose of algorithms and how to write algorithms using pseudocode as a preliminary step to writing programs in a programming language. In addition to writing algorithms in pseudocode, an important next step is testing the algorithms for correctness. You will show your knowledge of the topics by answering the following questions.
Explain how assembly language can be more beneficial than machine language for the programmer?
Describe the foundational role of algorithms as it relates to computing and the purpose of using pseudocode to write algorithms. Include the role of variables in pseudocode and how assignments are used in conjunction with variables in your description.
Create the following variables that can be used to store values. Use the naming conventions as outlined in the AlgorithmsPseudocode Guidelines document in the course resources section of the course.
test grade for student test
total of all test grades added together
the average for the test grades
Create an assignment statement that sets the value of the variable you created to store the value of all test grades added together to zero. You may refer to Table in Chapter for examples.
Create an input statement to input the value for the first test grade for the variable you created.
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 countcontrolled loop to create the algorithm. Use the information from your answers to questions and in the creation of your algorithm. Also use information and examples from Chapter and Chapter to help you create the algorithm.
Create a test to check the algorithm that is in a format similar to the following.
Reason for Test Case
Input values
Expected Output
Observed Output
Assumption: Input values are between and
Input three values greater than
Input three values with one being a grade of
Input three values with one being a grade of
Chapter
In Chapter we continue learning about algorithms with a focus on solving problems. The purpose of writing algorithms is to solve problems. While there are many ways to write an algorithm to correctly solve a problem, some structures are more efficient than others. We take a look at different structures used in writing algorithm and the strategies utilized. You will show your knowledge of the topics by answering the following questions.
Explain why an algorithm with a repetition control structure with a countcontrolled loop is a better choice than a repetition with an eventcontrolled loop for the algorithm you created in question
Explain how a sequential search algorithm works as compared to a binary search algorithm.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
