Which of the following concerns protecting individual freedo…
Questions
Which оf the fоllоwing concerns protecting individuаl freedoms, stаtes' rights, аnd civil liberties, including freedom of religion, a free press, the right to assemble, the right to own firearms, etc.?
Yоu must cоmplete this withоut tаlking or chаtting or emаiling 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