You must complete this without talking or chatting or emailing or contacting or asking for help from other people. You may not use AI tools. You may use your books, labs, or resources on your computer etc. You may not use online resources (unless you are using your book or look up the slides). Everything you do must be on your computer’s screen (so no phones). Programming Midterm 100 points. Create two random numbers between 1 and 9. Determine if they are close, that is, within 5 points of each other. (4 and 9 would be considered close as they are exactly 5 points away from each other.) Ask the user to enter in a name. Use the numbers and to create a “tag”. The tag will be the last letter of the name and both numbers. (i.e., bob and 8 and 1 (as input and randoms) will yield b_8_1 as the tag.) If the numbers were close, make the “tag” with the two numbers summed together (instead of separate – see example). (i.e., bob and 7 and 2 will yield b_9) Next, ask the user to enter a word and two numbers. The first number is a place and the second number is an amount. Check if the tag is the same as the a part of the word. The part of the word you are to use is the word that starts at the first number and is of the second number length. Example: if the word was aaab_1_1aaa and the user enters in 3 and 5 The 3 means the part of the word starting at index 3 5 the means 5 letters. (Note: You may assume the user will not enter in input that will crash the program). If the part of the word was not the tag, be sure to print it to the screen! Example 1: Numbers are: 8 1Please enter a name: >> bobTag is: b_8_1Please enter a word:>> aaab_1_1aaaPlease enter two numbers>> 3 5Tag is not the same. Word was: b_1_1 Example 2: Numbers are: 3 8Numbers are closePlease enter a name: >> bobTag is: b_11Please enter a word:>> jackb_11aaaPlease enter two numbers>> 4 4Tag is the same
I uploaded my code to the turnin spot on canvas.
I uploaded my code to the turnin spot on canvas.
You are assessing genetic diversity in elk under different m…
You are assessing genetic diversity in elk under different management practices. Which management practice would most likely result the highest heterozygosity?
Which of the following are intrinsic explanations for the di…
Which of the following are intrinsic explanations for the diversity we see in animals? (select all that apply)
Ichthyosaurs, now extinct, were aquatic reptiles with dorsal…
Ichthyosaurs, now extinct, were aquatic reptiles with dorsal fins and tails, similar to those of fish. Their most recent ancestors were terrestrial reptiles that had neither dorsal fins nor aquatic tails. The dorsal fins and tails of ichthyosaurs and fish are ________.
We have collected data and analyzed it to determine whether…
We have collected data and analyzed it to determine whether or not the hypothesis that Earth is currently experiencing a 6th mass extinction is supported. Use the figures provided to determine which of the statements below is correct. (Select all that apply)
Adaptive radiations can be a direct consequence of four of t…
Adaptive radiations can be a direct consequence of four of the following five factors. Select the exception.
Research has shown that positive thinking can have a benefic…
Research has shown that positive thinking can have a beneficial impact by reducing test anxiety and improving performance on assessments. For your first question, select a positive affirmation from below to carry with you as you complete the quiz and write it as your answer for this first question. If you have your own positive affirmation, feel free to write it instead. I’ve done my best to study for this quiz and am well prepared. I will use any nervous energy I have as a positive force. This is a good opportunity to show what I know. This is just one quiz, and it doesn’t define who I am as a person or what my future holds. I have the skills to succeed on this quiz.
For this question, focus on the top graph in the image. The…
For this question, focus on the top graph in the image. The orange bars represent the five mass extinctions. Based on the graph below, what is the measurement of diversity when it reaches it’s peak following the fifth mass extinction ?
Use the following information for the next two questions. Dr…
Use the following information for the next two questions. Dr. Samwise is studying a species of ground pheasants that live around an extremely large ravine to determine if parapatric speciation has occurred. The pheasant species, Lophura diardi, is divided into seven subspecies based on morphology and the location of each subspecies around the ravine is plotted on the figure. Based on morphological observations, Dr. Samwise hypothesizes that an ancestral population similar to the Scathii subspecies originated on the eastern side of the ravine. Then, groups moved along the northern and southern sides of the ravine until the northern, and southern groups met again on the western side of the ravine. Dr. Samwise constructs a phylogeny of the subspecies using DNA data. Which of the phylogenies below support Dr. Samwise’s hypothesis based on morphological data?