Write a Python program that asks the user to input 3 student names and then stores them in a list. The program should then ask the user to input the index/position of a student name stored in list to retriev. Using the index/position value provided by the user, the program should print the student name. The program should make sure the index/position/value is valid, otherwise the program should print a firenly error meesage saying the provided value was invalid.
Q: What will be the value of x when the code is executed successfully x = 0 a = 5 b = 5 if a > 0: if b…
A: Here in this question we have given a code segment and we have asked to execute the code find the…
Q: i) Find all the minimal super keys of the relational table ?. List the derivations of all minimal…
A: . .
Q: 150. Write a C# Sharp program to create a new list from a given list of integers removing those…
A: Coded using C#.
Q: 53, VBST constructs a spanning tree in each VLAN so that traffic from different VLANs is load…
A: VBST corresponds to STP or RSTP running on each VLAN. Spanning trees in different VLANs are…
Q: 9. Cgroups and namespaces are two key container technologies. You can use Cgroups to isolate…
A: A key vault is part of the Windows key database that contains all key pairs (public and private…
Q: Q.2 What is Naïve Bayes? Classifiers ?
A:
Q: Write a Python program that prompts the user to enter 4 numbers, store these numbers in a list, and…
A: The above question is solved in step 2 :-
Q: When a DHCP client applies for an IP address, only DHCP ACK messages are sent in unicast mode.
A: DHCP (Dynamic Host Configuration Protocol): A network management protocol called DHCP (Dynamic Host…
Q: In current wireless cellular networks, what is NOT the functionality for the base station? collect…
A: The above question is solved in step 2 :-
Q: What is the bit mask design to invert the bits in the position 0 through 3 of the register AL, while…
A: What is the bit mask design to invert the bits in the position 0 through 3 of the register AL, while…
Q: Design a program that allows two players to play a game of tic-tac-toe. Use a two dimensional…
A: I use in C++ program:- C++: - In a C++ is an object-oriented programming language that is a…
Q: What is the bit mask design to invert the bits in the position 0 through 3 of the register AL, while…
A: The question has been answered in step2
Q: Q.13 List application and benefits of SVM.
A: SVM (Support Vector Machine): Support Vector Machine, sometimes known as SVM, is a linear model…
Q: 1) Givern the truth table! no. abcd F 0000 X 0 1 23456 TTTT 7 8 +++ 0001 0 (b) 0010 X 0011 1 0100…
A: solution Simplified the expression in both SOP and POS formats using the provided truth table.POS…
Q: ignal with 60 milliwatts power passes through a device with a R and SNRdB?
A: Summary In analog and digital communications, the signal-to-noise ratio, often called S/N or SNR, is…
Q: Suppose splice_site_pairs = ['GT-AG','GC-AG','AT-AC']. What is splice_site_pairs[:-1] ? We want to…
A: Required language is python:
Q: To prove a set A is a subset of a set B, we must: O Show for all x, if x is in A then x is in B O…
A: The solution to the given problem is below.
Q: 38, ASPF is an application-layer packet filtering technology that implements special security…
A: In software firewalls, packet filtering is done by programs called packet filters. A packet filter…
Q: What is SHA-256?
A: Hashing: Hashing is the process of scrubbing raw data until it can no longer be reproduced in its…
Q: Question 3) a) Define a Context-Free Grammar (CFG) formally and in general. Explain in detail. b)…
A: a) Context free Grammar is a grammar which is generated from the Context free language and this can…
Q: 29. Two routers are deployed on the same LAN and both run OSPF. Which of the following multicast…
A: Direct IP encapsulation of OSPF packets is done with the protocol field set to 89. Depending on the…
Q: 4. Write a program that allows the user to enter the last names of five candidates in a local…
A: C++ Programming Some computer languages are created with a particular objective in mind. Like Java,…
Q: Java allows for methods to be chained together. Consider the following message from the captain of a…
A: Java introduction:- Software written in Java, an object-oriented programming language, can run on…
Q: 22. Which of the following technologies can be used to preserve electronic evidence? OA. Digital…
A: Digital Certificate - A digital certificate, also known as a public-key certificate, is an…
Q: quicksort as follows: Recursive algorithm, and Non-recursive algorithm Analyze the efficiency of…
A: Summary The implementation uses the closing index as a pivot. This reasons worst-case conduct on…
Q: a) What is the difference between StringBuilder and String? b) Which of the following classes are…
A: A String is immutable in Java, while a StringBuilder is mutable in Java. An immutable object is an…
Q: Use examples to explain what the following Default Desktop Settings (KDM) configuration options are…
A: A. View: View often refers to observing something in real life or the contents of a computer file.…
Q: HOMEWORK #2 - Length Conversion Write a program that reads in a given length in feet and inches, and…
A: Solution- Here we have create a programme that reads a length in feet and inches and transforms it…
Q: Methods Java Write the appropriate method headings using the provided method name for the following…
A: The program is written in Java. Please find the source code and output in the following steps.
Q: 1-----------Write a Java program to input marks of five subjects Physics, Chemistry, Biology,…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: Generate ten random numbers (s1-s10) using the linear congruently generator using the seed (s0) as…
A:
Q: Write a program that prompts the user to enter a decimal integer and displays its corresponding…
A: Answer:
Q: Create a flowchart of the program that will ask the user to input an integer value that is both a…
A: Here is the python code for the given problem: # Python Program to Check Number is Divisible by 5…
Q: 150. Write a C# Sharp program to create a new list from a given list of integers removing those…
A: logic:- create a list and insert above elements. Create another list. Iterate previous list and…
Q: Create a java class called product with three data elements: name, price peer unit and quantity .…
A: Solution : The class is fairly simple: it is public and contains three private members, three public…
Q: I need javascript, not C#
A: In this project you will generate a poker hand containing five cards randomly selected from a deck…
Q: Does using passwords with salts make attacking a specific account more difficult than using pass-…
A: Introduction Including random data in a hash function's input in cryptography ensures that the hash…
Q: What is the output of the following? x = ("apple", "banana", "cherry") y = list(x) y[1] = "kiwi" x =…
A: Output: ('apple', 'kiwi', 'cherry')
Q: The following is the list of students' marks in ICT303 and ICT304: Question 3 Student ICT303 ICT…
A: The above question is solved in step 2 :-
Q: Q.13 List application and benefits of SVM.
A: Face observation: Face observation is used to identify faces in accordance with the model and…
Q: 41. Which of the following statements about L2TP over IP: A. The IPsec tunnel is established first.…
A: Layer 2 Tunneling Protocol (L2TP) is a VPN tunneling protocol that allows clients to use the public…
Q: 4-Write MIPS assembly for the following function. Assume N is passed to your function in register…
A: MIPS assembly language simply refers to the assembly language of the MIPS processor. The term which…
Q: What do you understand by the term cryptography using examples
A: What do you understand by the term cryptography using examples answer in below step.
Q: 23. If a wireless client connects to the same SSID of two APs, which of the following methods can be…
A: The question has been answered in step2
Q: Hive checks data validity when loading data into tables.
A: Answers :- According to the question is True statement data validity when loading data into…
Q: Write short note on : Evolutionary computing.
A:
Q: Write a program that reads the student information from a tab separated values (tsv) file. The…
A: In this question we have to write a C++ program to read student info from a .tsv file and then…
Q: 1. Which of the following SSL VPN functions can be used to enable mobile users to access internal…
A: We need to find the correct option regarding SSL VPN.
Q: The memory location at address 00002001 contains the memory variable. What is the data memory…
A: The question has been answered in step2
Q: C Program Pass-by-reference in Functions Using Pointers Write a function swap that swaps the values…
A: To swap three numbers in c programming language.
Step by step
Solved in 4 steps with 2 images
- Write a program that read the total rainfall for each of the 12 months into a list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts. The input data is available in Program9.txt on the I: drive.No input, processing, or output should happen in the main function. All work should be delegated to other functions. The program should have at least 5 functions (main and developerInfo included). Include the recommended minimum documentation for each function. See the program one template for more details. Do not use any global variable.Write a python program that contains a function called word_selection() that takes a list as a parameter and randomly selects one item in the list and prints it. Your program should have the following functionality:1. Continuously prompt the user to enter a word until the user enters q2. Store the entered words in a list3. Making use of the random module, your program should call word_selection() that randomly selects a word from the list and prints it4. Include the guard for the main function:if __name__ == '__main__':main() Example: Enter a word (or ‘q’ to quit): Wallaby Enter a word (or ‘q’ to quit): Dingo Enter a word (or ‘q’ to quit): Platypus Enter a word (or ‘q’ to quit): q WallabyExercise 5: Write a Python program that reads from an input from user n student test scores in the range 0 – 100 and store these scores in a list (Hint: use sentinel value score < 0). Your program should determine the number of students having scores in each of the following ranges: 0-59, 60-79, 80-89, and 90- 100. Display the score ranges and the number of students. If you run your program with the following data: 76, 89, 100, 95, 90, 100, 76, 100, 50, 67, 78, 89, 77, 89, 98. Your output should be as follows:
- Write a Python program using List that prompts the user to enter the total rainfall for each of the 12 months of the year.The program should display the total rainfall for each of the 12 months, the average monthly rainfall in 2 decimal places, the month with the highest rainfall, the month with the lowest rainfallWrite a program to keep records and perform stastitical analysis for a class of students. The class may have up to 40 students. There are five quizzes during the term. Each student is identified byfour-digit student number. The program is to print the student scores and calculate and print statistics for each quiz. The outputis in the same order as the input, no sorting is needed. The program should read the input form the user and should print the output similar to the following: Student Quiz1 Quiz2 Quiz3 Quiz4 Quiz5 1234 78 83 87 91 86 2134 67 77 84 82 79 3124 77 89 93 87 71 Low Score 67 77 84 82 71 High Score 78 89 93 91 86 Average 73.4 83.0 88.2 86.6 78.6write a c++ program that declares an array that can hold 20 chars. then the program outputs two upper case character which are A & Z(initials). next using a loop the program populates the array with the pair of the initials until the array is full. then the program outputs the array on one line. then the program swaps the contents of the first and last locations in the array and output the modified array on the next line.
- The local driver's license office has asked you to create an application that grades the written portion of the driver's license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 6. A 11. B 16. C 12. C 17. C 13. D 18. B 14. A 19. D 15. D 20. A 1. B 2. D 3. A 4. A 5. C 7. B 8. A 9. C 10. D Your program should store these correct answers in a list. The program should read the student's answers for each of the 20 questions from a list named Anskey_list and store the answers in another list, say ans_list. After the student's answers have been read from the ans_list, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions.Write a python program. Your program should have the following functionality:1. Randomly selects a word from a pre-set list: kangaroo, capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburrahint: modify you function from problem 22. Prompts the user to guess a letter3. Validates the input4. If the letter is not in the word, print a message reflecting this5. Prints the word where all guessed letters are revealed and all unguessed letters are replaced by underscoreshint: consider storing the guessed letters in a list6. The program should continuously prompt the user to guess letters until they enter ‘quit’ or all the letters in the word have been guessed7. Don’t forget to include the main guard Be sure to split functionality into functions where appropriate. Some possible ideas for functions:● checks if input is valid● randomly selects a word from a list● prints out the word with appropriate underscores● checks if the user has won the game Example: # The program selects the…Your math teacher has asked you to write a program that grades the multiple-choice questions in a Math exam. The exam has 10 multiple-choice questions. Here are the correct answers: 1. A 6. B 2.D 3. B 4.B 5.C 7.A 8. B 9.C 10.D Your program should store the correct answers shown above in a list. It should ask the student to enter her answers for each of the 10 questions, and the answers should be stored in another list. After the student's answers have been entered, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly at least answer 7 of the 10 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions. Your program must have at least the following functions: 1. getInput(inputList) 2. checkAnswers(userlist, correctAnswerList, rightQuestions, wrongQuestions) *. The getInput function accepts a list and asks the user to input…
- Program is Python 1. Create a program that accepts a user-specified number of students and their corresponding grades on a test. Store the names and grades in a dictionary. Once the user has entered the information, they should be able to type in a student's name and that student's individual test score should be output to the screen. - 2. Write a program that counts, in the given list of integers below, the number of occurrences of each integer. You must loop through the list to assign keys and values to the dictionary. Use must use another loop to print the dictionary values for the output. - list1 = [1,2,3,3,2,4,5,6,3,2,4,5,2,3,4,5,6,3] Example Output (It must look like this): 1 is in the list 1 time(s).2 is in the list 4 time(s).3 is in the list 5 time(s).4 is in the list 3 time(s).5 is in the list 3 time(s).6 is in the list 2 time(s).Code should be in Python. Given the code that reads a list of integers, complete the number_guess() function, which should choose a random number between 1 and 100 by calling random.randint() and then output if the guessed number is too low, too high, or correct. Import the random module to use the random.seed() and random.randint() functions. random.seed(seed_value) seeds the random number generator using the given seed_value. random.randint(a, b) returns a random number between a and b (inclusive). For testing purposes, use the seed value 900, which will cause the computer to choose the same random number every time the program runs. Ex: If the input is: 32 45 48 80 the output is: 32 is too low. Random number was 80. 45 is too high. Random number was 30. 48 is correct! 80 is too low. Random number was 97.In C language / Please don't use (sprint) function. Write a function fact_calc that takes a string output argument and an integer input argument n and returns a string showing the calculation of n!. For example, if the value supplied for n were 6, the string returned would be 6! 5 6 3 5 3 4 3 3 3 2 3 1 5 720 Write a program that repeatedly prompts the user for an integer between 0 and 9, calls fact_calc and outputs the resulting string. If the user inputs an invalid value, the program should display an error message and re-prompt for valid input. Input of the sentinel -1 should cause the input loop to exit. Note: Don't print factorial of -1, or any number that is not between 0 and 9. SAMPLE RUN #4: ./Fact Interactive Session Hide Invisibles Highlight: None Show Highlighted Only Enter·an·integer·between·0·and·9·or·-1·to·quit:5↵ 5!·=·5·x·4·x·3·x·2·x·1·x··=·120↵ Enter·an·integer·between·0·and·9·or·-1·to·quit:6↵ 6!·=·6·x·5·x·4·x·3·x·2·x·1·x··=·720↵…