ser look up a person’s email address, add a new name and email address, change an existing email address, and delete an existing name and email address. The program should pickle the dictionary and save it to a file when the user exits the program. Each time the program starts, it should retrieve the dictionary fro
Q: Question 32 Promiscuous Delta is a metric based on events reported in the Cisco Security Agent (CSA)...
A: Note: As per company guidelines we are supposed to answer only one question. Kindly repost other que...
Q: Describe how the implementation of the following style rule differs between Internet Explorer operat...
A: Explanation: Internet Explorer shows a mild difference when running in Quirks mode and standard mod...
Q: lates, and t
A: given - What are the axioms, postulates, and theorems of Boolean Algebra?
Q: Describe the relationship between HTML and SGML.
A: relationship between HTML and SGML are
Q: describe in depth the various computer hardware components
A: Intro Computer hardware includes the physical parts of a computer. PC hardware, such as a desktop co...
Q: rart 2: [2 A U-N flip-flip works as follows: UN=00 the next state of the flip-flop is 1. UN=01 the n...
A: a. From given data, table will be as below: Present State Q Next State Q+ U N 0 0 1 1 0 1...
Q: Which tools and applications will be needed to set up GitHub on your own machine?
A: Intro GitHub: GitHub is a Microsoft-owned distributed version control system. GitHub provides bot...
Q: ... Pl: tA = seq + 1; P2: seq = tA; Q1: tB Q2: seq = seq+ 2; = tB;
A: Here either of the process can execute first. Also a process can be preempted by another process. T...
Q: hen we use the new operator to produce a String, where does it go? a. Stack b. String storage c...
A: Introduction: When we use the new operator to generate a String, the Java compiler will construct a ...
Q: web app
A: given - make a barcode reader web application to scan barcode using a Asp.net or C#
Q: Write a loop to display the powers of 2 exactly as shown below: 1 2 4 8. 16 32 64 128
A: Powers of 2
Q: t is the largest decimal value it is able to sto
A: If a register has 9 bits, what is the largest decimal value it is able to store?
Q: Explanations and comments are appreciated for the following problem: In this coding problem, we are...
A: import nltk nltk.download('averaged_perceptron_tagger') # taking input text as India text = "Indi...
Q: vi. Explain the distinction between authorization and authentication in web testing.
A: Introduction: Authorization: Authorization is the process of allowing an authenticated user to acces...
Q: In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the number...
A: I have provided JAVA CODE along with OUTPUT SCREENSHOT----------
Q: How will you check the equality of two integer variables without using the arithmetic comparison ope...
A: Write how we can check the equality of two integer variables without using the arithmetic comparison...
Q: protected void onSavelnstanceState(@NonNull Bundle outState) { outState.putlnt("userID", 101); super...
A: Introduction:The Snippet tells about the on saved instance state of the input that is being passed.T...
Q: What do you mean by subnet mask?
A: According to the question the subnet cover are by and large utilized for 32 pieces manage used to se...
Q: H.W: Given the following matrices, please solve the questions below and if you can't solve the probl...
A: As per our guidelines we are supposed to answer only 4 subparts kindly repost other subparts as a se...
Q: Computer Science Discrete Structures Quantifiers based inferences explain and provide example of
A: The discrete Structure and the Quantifiers based interfaces are used for expressing the predicate is...
Q: please make a suitable java program(inheritance) according to picture House +nwmberRoomsint +type:St...
A: Here is The Solution. public class House{ public int numberRoom; public String type; pu...
Q: Write a program in C-language that will accept any positive number and will count down to 1, startin...
A: #include <stdio.h> int main(){ unsigned int n; unsigned int i; printf("Input a number...
Q: The three core processes of the requirement engineering process are elicitation, specification, and ...
A: Introduction Requirement Engineering: In general requirement, engineering may be defined as the pr...
Q: How does virtual memory fare in terms of speed in comparison to random access memory?
A: RAM stands for Random Access Memory and is known by the name of Main memory.
Q: why are cybercrimes becoming more prevalent and sophisticated?
A: Introduction: Cybercrime is becoming more prevalent in all industries.
Q: Problem 3 Consider the relation R = {A, B, C, D, E, F,G, H, I, J} and the set of functional dependen...
A:
Q: Write a program to reverse a string except the special characters or numbers in JAVA NOTE : pls pro...
A: Algorithm: Let input string be 'str[]' and length of string be 'n'l = 0, r = n-1 While l is smaller ...
Q: .Real-world instances of embedded systems all around us (Atleast 40)
A: Introduction Actually, An embedded system is a computer system that contains both computer softwar...
Q: What exactly is a Linux runlevel for a particular service or application? What command allows you to...
A: Introduction: A runlevel is a mode of operation in machine operating systems that implements Unix Sy...
Q: Describe the main characteristics of productivity and graphics applications.
A: Introduction: The key features of productivity and graphics applications are listed below. Customiz...
Q: Explain the use of static members using an example.
A: Introduction A static member function is a special member function, which is used to access only st...
Q: In a database, both forward and backward recovery are possible.
A: why recovery is needed ?: Database recovery is needed in case of a database instance failure (which...
Q: True or False. The powerset of the null set is empty
A: null set means empty which don't have any elements in it : {} powerset is : set of all subsets of gi...
Q: What exactly is the Win32API, PostxAPI, Java API, and Java virtual machine (JVM)?
A: Win32API: Actually, alternatively referred to as the window API and winAPI, win32 is the main set of...
Q: If you wanted to know the position of the letter v (i.e. return 2) in the String str containing the ...
A: The correct option will be (b) str.indexOf('v') Explanation:- str.indexOf('v') is a built in functio...
Q: Identify and explain the five features of an algorithm.
A: Introduction The following are the features of a good algorithm: Precision: a good algorithm must ...
Q: Use SMALL letters. What would be the complete equivalent of 0.23 base 10 to octal (put zero on the i...
A:
Q: Which CPU component is presently processing data? register ALU cache in RAM
A: Introduction RAM is the computer's electronic memory. RAM helps to make a computer fast. The term ...
Q: Justify the use of object-oriented analysis in the development of an information system.
A: To be determine: Justify the usage of object-oriented analysis to define an information system.
Q: Must use C language to create a BINGO game Criteria: 1. bingo array must be a 2D array of 5x5 2.G...
A: Here, I have to write a C program to the above question.
Q: Use the Subset construction, as defined in the lecture notes, to construct DFA from the NFA produced...
A: We may use Thompson Construction to obtain a Finite Automaton from Regular Expression. We will reduc...
Q: Used Python programming. Let's think of some creative ideas and implement them in this project. Yes!...
A: The code is given below:
Q: 3) There are n software engineers who are compatible with m developing teams. E.g SE; is compatible ...
A: Team collaboration is very important in software development.
Q: what is octal cable computer networking? writes its Uses? advantages and Disadvantages?
A: Lets see the solution in the next steps
Q: 56 ___ 31 == 39 Which operator would make this expression true?
A: Here in this question we have asked that 56 ___ 31 == 39 Which operator would make this expression t...
Q: Identify any four UNIX utility commands and explain its use with an example
A: four UNIX utility commands are 1) cal 2) date 3) banner 4) who
Q: When a stalemate is identified, the required resources are made available to those who are unable to...
A: Introduction: We must now recover the deadlock after it has been found. There are generally two ways...
Q: What exactly is an operating system? Only explain the batch operating system?
A: Operating system:- An OS is an interface between hardware compliers and the user. An OS is a device....
Q: Considering images, what are three possible parameters or things one can change to reduce the size o...
A: Resizing of the image can be done in different ways, however this is generally done by resampling.
Q: The Eight-Queens Problem: Place eight (8) queens on a chessboard so that no queen attacks another. A...
A: The Answer is given below step.
Write a
The program should display a menu that lets the user look up a person’s email address, add a new name and email address, change an existing email address, and delete an existing name and email address.
The program should pickle the dictionary and save it to a file when the user exits the program.
Each time the program starts, it should retrieve the dictionary from the file and unpickle it.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
- 8. Name and Email Addresses Write a program that keeps names and email addresses in a dictionary as key-value pairs. The program should display a menu that lets the user look up a person’s email address, add a new name and email address, change an existing email address, and delete an existing name and email address. The program should pickle the dictionary and save it to a file when the user exits the program. Each time the program starts, it should retrieve the dictionary from the file and unpickle it.Python Programming Assignment: Create a dictionary that takes a basketball team's information (that includes team's name and points) as parameter, creates a teams_dict and returns it. Also, create a parameter for write_file parameter that opens current results text file in write mode and writes the dictionary information to file as per format and closes the file.This is a python File Create a program that presents a menu with these options: Add product Sort by quantity (low to high) Print Inventory Quit Read the initial product information from a text file. Remember to ask the user to enter the filename & make sure it exists! The program should NOT product an error if the file isn’t there! Store the product information into a DICTIONARY called prodDict. The dictionary should map the productID (the key for the dictionary) to a LIST that contains description, unitPrice, and quantity. The text file will be structured as shown below, where each line contains the product id, product description, unitPrice and quantity.NOTE: Each entry on the line is separated by a comma and a space. Example textfile: 111, arm chair, 99.99, 5444, desk, 10, 40777, lamp, 20, 5333, credenza, 50.98., 20222,bassinet , 5.59, 10 Example of the empDict after the information shown has been readd and stored:{ 111: [“George Gray”, 10, 40], 222: [“Amy Abrahmson”,…
- #program should be wrote in python with comments please. Write a program that reads the contents of a text file. The program should create a dictio-nary in which the keys are the individual words found in the file and the values are the number of times each word appears. For example, if the word “the” appears 128 times, the dictionary would contain an element with 'the' as the key and 128 as the value. The program should either display the frequency of each word or create a second file containing a list of each word and its frequency.def print_main_menu(menu): """ Given a dictionary with the menu, prints the keys and values as the formatted options. Adds additional prints for decoration and outputs a question "What would you like to do?" """ if __name__ == "__main__": the_menu = {} # TODO 1: add the options from the instructions opt = None while True: # print_main_menu(...) # TODO 1: uncomment, define the function, and call with the menu as an argument print("::: Enter an option") opt = input("> ") if opt == ...: # TODO 2: make Q or q quit the program print("Goodbye!\n") break # exit the main `while` loop else: if ...: # TODO 3: check of the character stored in opt is in the_menu dictionary print(f"You selected option {opt} to > {the_menu[opt]}.") else: print(f"WARNING: {opt} is an invalid option.\n")Using Python, write a program which opens a text file and loads the data into a dictionary where the key is the line # from the file and the value is the line of text from the file. For instance, if the file looks like: Hello,Welcome to Introduction to Big Data It is good to meet everyone.Hope you enjoy the class. The dictionary should look like: KEY VALUE 1 Hello, 2 Welcome to Introduction to Big Data 3 It is good to meet everyone. 4 Hope you enjoy the class. Then change it to a list and reverse the order of the lines of text and save it back to a new text file.
- Python The program will create a quiz that will ask for the capital of a random state. Your program will repeat so that a total of 5 random states are presented to the user Write a program that creates a dictionary containing the U.S. states as keys, and their capitals asvalues. (Use the Internet to get a list of the states and their capitals.) The program should then randomly quiz the user by displaying the name of a state and asking the user to enter that state’s capital. The program should keep a count of the number of correct and incorrect responses. (As an alternative to the U.S. states, the program can use the names of countries and their capitals.)This assignment requires you to create a dictionary by reading the text file. Text file name: LightningP Text file contents: Stamkos3538Maroon2933Point5055Kucherov5565Killorn3340 The dictionary should have player names for the keys. The value for each key must be a two-element list holding the player's goals and assists, respectively. Start with an empty dictionary. Then, use a loop to cycle through the text file and add key-value pairs to the dictionary. Close the text file and process the dictionary to print the stats and determine the top scorer as before. Printing the stats for each player is the most challenging part of this program. The required output should be the same well-formatted table as below: PLAYER COLUMN: 10 characters wide and left-aligned. GOALS COLUMN: 6 characters wide and centered. ASSISTS COLUMN: 8 characters wide and centered. TOTAL COLUMN: 6 characters wide and centered. Example output:In Python Please check the pictures first. Write a program that keeps names and email addresses in a dictionary as key-value pairs. The program should display a menu that lets the user look up a person’s email address, add a new name and email address, change an existing email address, and delete an existing name and email address. The program should save the data stored in a dictionary to a file when the user exits the program. Each time the program starts, it should retrieve the data from the file and store it in a dictionary. You Must create and use at least 5 meaningful functions. A function to display a menu A function to look up a person’s email address A function to add a new name and email address A function to change an email address A function to delete a name and email address. Check the Your program should check user input; for example, if the user wants to delete a name that does not exist in the dictionary, you should print something like: the name is not in the…
- Python coding language Create a static dictionary with a number of users and with the following values: First name Last name Email address Password Ask the user for: 5. Email address 6. Password Loop (for()) through the dictionary and if (if()) the user is found print the following: 7. Hello, first name last name you have successfully logged in 8. Notify the user if the password and email address are wrong 9. Additional challenge: if you want the program to keep asking for a username and password when the combination is wrong, you will need a while() loop. 10. Save the file as assignment03yourlastname.pyQ.Create an interesting educational information chat box that asks the user to give an input question and then answers the question given by user with a suitable answer. You can make use of list for different questions and answers.Save two to three answers for a single question and then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with the questions present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python ***try using basic programming techniques in python without using arrays and pointers * * * copy paste the program itself and also the screenshot of program and output * * * use any type of data for questions such as name details of cities species etc depends on…In Java Oleae nust read a file A photographer is organizing a photo collection about the national parks in the US and would like to annotate the information about each of the photos into a separate set of files. Write a program that reads the name of a text file containing a list of photo file names. The program then reads the photo file names from the text file, replaces the "_photo.jpg" portion of the file names with "_info.txt", and outputs the modified file names. Assume the unchanged portion of the photo file names contains only letters and numbers, and the text file stores one photo file name per line. If the text file is empty, the program produces no output. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg GrandCanyon1996_photo.jpg IndianaDunes1987_photo.jpg LakeClark2009_photo.jpg…