Page 1 of 1

|| As we learned in class, there are three structures we can use to create an algorithm/script - sequence, selection, an

Posted: Thu Jun 02, 2022 8:22 am
by answerhappygod
As We Learned In Class There Are Three Structures We Can Use To Create An Algorithm Script Sequence Selection An 1
As We Learned In Class There Are Three Structures We Can Use To Create An Algorithm Script Sequence Selection An 1 (67.6 KiB) Viewed 15 times
And please label the answers (example :a , b , c ,d ,e )
|| As we learned in class, there are three structures we can use to create an algorithm/script - sequence, selection, and repetition. You've used at least two in part A above. An American employee was recently hired and they prefer to use Fahrenheit to measure temperature. They know that 32°F is freezing... but they don't understand Celsius. Their job requires that they take certain actions if it's below freezing outside. For example: Make a copy of your flowchart in the response area below. Then, move this blue rectangle to surround an example of sequence and red to encircle and example of selection. 10 If the temperature inputted is below zero, your solution will output "Below Freezing" • If the temperature is above zero, your solution will output "Above Freezing" If the temperature is zero, your solution will output "Freezing" In this question you'll design a simple solution, write the script, document it, execute it, and test it. First, make an abstract design for your algorithm by creating a flowchart that outlines the design and flow of your algorithm. For example: This image illustrates an instance of repetition with an orange rectangle: Satisfactory Not yet satisfactory Start Note: It's recommended to use a tool like MS Visio, draw.io, lucidchart.com, or PowerPoint to do this and paste the image here (Word's flowchart tools are tricky if you're not familiar with them) a Candidate response Condition? False True Do Task End Candidate response Look at your flowchart and briefly answer each of these questions: • Is the flowchart guaranteed to end? • Does it take into account all possible outcomes? . (e.g. user temperature input of positive, negative, zero values, etc.) Candidate response Write the script and paste a screenshot of the code below. Satisfactory Not yet satisfactory Note: your code must have internal documentation as we've done in class. You must have at least two comments in the code: . d At least one at the start (documenting your name, date, purpose of code, sts) At least one comment in the code (explaining that part of the code) Candidate response Run your script with three test cases: A negative temperature, a temperature of 0, and a positive temperature. Do the following Satisfactory Not yet satisfactory • Create three screenshots showing the output of your code for each temperature • Briefly answer. Does your flowchart and script correctly identify each temperature as above, below, or equal to freezing? (i.e. is your algorithm an exact/sufficient solution?) Candidate response