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.
Q: Please help me fix my errors in Python. def read_data(filename): try: with…
A: Start.Define a function read_data(filename) to read the contents of a file.Define a function…
Q: Question 1 Which is not a reason why data integration across multiple organizations is harder than…
A: According to our company's policy, we are obliged to answer only the first question in case of…
Q: What are the distinguishing factors of mobile applications?
A: Mobile applications, commonly referred to as mobile apps, have become an integral part of our daily…
Q: Why would a huge computer system need to group its functions and programs into separate subsystems?…
A: A computer system is a grouping of connected hardware, software, and data elements that collaborate…
Q: Exactly what does it mean to use "separable programming," and how does it work?
A: Separable programming is an approach to solving optimization problems where the objective function…
Q: In SQL which command is used to make permanant changes made by statement issue s the beginning of…
A: In this question we have to understand in SQL which command is used to make permanant changes made…
Q: In functional programming languages, lists are an extremely important data structure. What gives…
A: Central Role in Data Handling In functional programming languages, lists often play a crucial role…
Q: Function OutputStudentAge() returns nothing integer studentAge studentAge = Get next input…
A: The question presents two functions: OutputStudentAge() and Main(). The goal is to provide a…
Q: What is the most surprising thing about iOS app navigation controls, and what is the basic concept…
A: iOS app navigation controls are essential components of user interfaces in iOS applications. They…
Q: To what extent do the several varieties of OS vary from one another in the quantity and range of…
A: After being loaded into memory by the boot program, the operating system (OS) organizes and runs all…
Q: How do computers express themselves to one another? data making its way in a straight path from raw…
A: Computers communicate with each extra through a protocol called data transmission. This course…
Q: What exactly does "physical security" mean?
A: Physical refuge is a subfield of in order refuge that above all protects concrete income such as…
Q: What precisely does it mean when we say that wireless technology has caused a transformation?
A: Hello studentGreetingsWireless technology has revolutionized the way we communicate and interact…
Q: Consider the major advantages and disadvantages of both cloud computing and mobile devices. In what…
A: AdvantagesScalability: Cloud computing allows for easy scalability, meaning you can quickly and…
Q: What is the definition of Local Area Networks (LANs)?
A: Local Area Networks (LANs) are CPU networks intersect computers across a local area network (LAN) in…
Q: For how can I connect two computers using IPsec, and what software do I need to do so?
A: To safeguard data transmission across insecure networks like the technical group responsible for…
Q: What do you understand by the term "defensive programming," and what are some examples of such…
A: Defensive programming is an approach to software development that focuses on anticipating and…
Q: Just what does "cloud scalability" entail? Can scalability be done with cloud computing due to its…
A: Cloud scalability refers to the ability of a cloud computing system to handle increasing demands by…
Q: What are the two most essential responsibilities that an operating system plays, other than the…
A: One of the most essential household tasks of an operating system (OS) is the competent management of…
Q: What is the procedure that starts with the start symbol of a grammar, executes productions, and…
A: The procedure that starts with the start symbol of a grammar, executes productions, and results in a…
Q: What is the time complexity T(n) and the Big-Oh notation of the following programs in terms of n and…
A: A.The outer loop runs from i = 0 to 5n + 1, and the inner loop runs from j = 0 to 3 * i + 2 with a…
Q: What are the three prerequisites that must be met before a program may use a given file?
A: Before a program can use a given file,three prerequisites must be met.Firstly,the file must exist in…
Q: Outline the main steps that make up the segmentation process. The way it operates is what sets it…
A: Operating systems employ segmentation as a memory management strategy to allot memory to processes.…
Q: What are the distinguishing factors of mobile applications?
A: Mobile applications, commonly known as apps, are CPU programs developed specifically for portable…
Q: In what ways are file systems often accessed? In what ways are these two scenarios unlike from one…
A: To organise and store files on a storage device, such as a hard drive, solid-state drive, or flash…
Q: Is HTML distinguished from other languages in any way? What are those ways?
A: This question comes from Web Development which is a paper of Computer Science. In this question we…
Q: How is database programming different from other languages? What examples can you give?
A: In the broad spectrum of programming, database programming and general-purpose programming exist as…
Q: What precisely does the concept of Routing refer to, and how exactly does it work?
A: *) In a computer network, routing is the process of choosing the best path or route for data packets…
Q: Relational databases are distinguished by six important characteristics.
A: Relational databases are a specific kind of information storage and retrieval technology (DBMS) that…
Q: What precisely is meant by the term "Routing," and how does its implementation take place?
A: In order to facilitate data transfer and resource sharing, the practice of connecting and…
Q: Compared to their dynamically linked counterparts, statically linked programs use much more disk…
A: Static and dynamic linking are two techniques of linking reference library to a program. When a…
Q: How come RISC CPUs are more naturally pipelined than CISC ones?
A: The design and architecture of CPUs have evolved over time, with two prominent approaches being RISC…
Q: Why should we accept this premise as true? How have people and information systems contributed to…
A: Information systems, including databases, networks, and information management tools, have been…
Q: For what purpose does a computer need an OS?
A: An operating system (OS) is a software that acts as an intermediary between computer hardware and…
Q: Software engineering's role in software development?
A: Computing science's software engineering subfield. That focus on conniving, mounting, and maintain…
Q: Explain the use of the Swift language's Optionals construct and provide an example of how it might…
A: Swift is a programming language developed by Apple. It was designed to be easy to learn, safe, and…
Q: What exactly does "physical security" mean?
A: Sure, here is a more detailed explanation of physical security:Physical security is the protection…
Q: Who is credited as the pioneer in the development of the inaugural computer monitor?
A: The pioneer in the development of the computer monitor is Robert R. Everett who developed the first…
Q: s there a recommended method of note taking for a Computer Science course? Discuss
A: When it comes to note-taking in a Computer Science course, there are several methods that you can…
Q: So regarding minecraft blockbench, how do I actually export my model? Please illustrate using…
A: "Blockbench," which is used for creating and editing 3D models for Minecraft. Blockbench is a…
Q: In order to store linked lists in memory, two common approaches are utilized: the use of static…
A: In static arrays, linked lists are typically stored a diverse way. A static array has a permanent…
Q: What is c programming?
A: C programming is a widely used programming language that has been in existence for several decades.…
Q: What should a university's mobile device management software deployment aim to achieve for students,…
A: Mobile Device Management (MDM) software aim to streamline the use of mobile campaign within a…
Q: Which problems are common in software applications?
A: For computers to function and carry out specified activities, they need software consisting of these…
Q: What kinds of mapping algorithms are used by cache memory management?
A: 1) Cache memory management refers to the techniques and strategies used to optimize the utilization…
Q: 7. What is the difference between CHAR and VARCHAR2 datatype in SQL?
A: In SQL the CHAR and VARCHAR2 datatypes are mainly used to store data containing characters. we will…
Q: When it comes to a network, what exactly is the role of a router? Indicate no less than four aspects…
A: A networking device that plays a critical role in transmitting data packets between various networks…
Q: In the context of a local area network, what would be deemed as an acceptable response time for the…
A: The ping utility is a critical diagnostic tool used in computer networking to test the reachability…
Q: Why would an IT firm use different installation procedures for the many OS versions, device setups,…
A: Different versions of operating systems and device setups often have different installation…
Q: Why should we accept this premise as true? How have people and information systems contributed to…
A: The premise that people and information systems have contributed to the advancement of technology is…
8. Name and Email Addresses
Write a
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images
- 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.Problem Charge Account Validation Create an application that reads the contents of the file into an array or a List . The application should then let the user enter a charge account number. The program should determine whether the number is valid by searching for it in the array or List that contains the valid charge account numbers. If the number is in the array or List , the program should display a message indicating the number is valid. If the number is not in the array or List , the program should display a message indicating the number is invalid. For Visual Studio .Net 4.6.1 current solution on bartleby does not work as it does not actually use a list and does not properly retrieve the file file is a text document with 18 7 digit numbers named ChargeAccounts.txtSearching - a user should be able to search by ID or by item name create only one menu item for searching a user should be able to enter the name of the item using any case, (for example, sTRolleR) you may wish to store items in all lower/upper case to expedite the search write one search function that can search by ID and name and goes through the array of structs/objects only once show the entire record if found or an appropriate message if not Sorting - sort by any field write one function to sort by any field using a parallel array of pointers use Bubble Sort is not the most effective but the easiest to modify. do not copy and paste sort code five times into the same function. sorting using pointers is faster because you have to swap pointers only, which are normally stored in 4 bytes each; it also allows you to preserve the original order of the items If you choose to have a submenu, a submenu must have an option to go back to the previous menu or main menu if a user got…
- 5. Charge Account Validation If you have downloaded the source code from the Computer Science Portal you will find a file named charge_accounts.txt in the Chapter 07 folder. This file has a list of a com- pany's valid charge account numbers. Each account number is a seven-digit number, such as 5658845. Programming Exercises 403 program Write a program that reads the contents of the file into a list. The program should then ask the user to enter a charge account number. The program should determine whether the number is valid by searching for it in the list. If the number is in the list, the should display a message indicating the number is valid. If the number is not in the list, the program should display a message indicating the number is invalid. (You can access theExo12: krute an algorithm that looks up a word entered on the keyboard in a dictionary. The dictionary is assumed to be coded in a table filled and sorted.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.py
- JAVA INTRO Create a program that generates a report that displays a list of students, classes they are enrolled in and the professor who teaches the class. There are 3 files that provide the input data: 1. FinalRoster.txt List of students and professors ( The first value of each row indicates if it is a student or professor; S means a student , P means a professor) Student and Professor have different data Student row: "S",Student Name, StudentID Professor row: "P", Professor Name, Professor ID, Highest Education 2. FinalClassList.txt List of classes and professor who teach them Each row contains the following information: ClassID, ClassName, ID of Professor who teach that class The professor ID in this file matches the Professor ID in FinalRoster.txt. 3. FinalStudentClassList.txt List of classes the students are enrolled in. (StudentID, ClassID) Student ID matches Student ID in FinalRoster.txt and ClassID matches Class ID in FinalClassList.txt The output shall be…Word FrequencyWrite a python program that reads the contents of a text file. The program should create a dictio-nary inwhich the keys are the individual words found in the file and the values are the number of timeseach word appears. For example, if the word “the” appears 128 times, the dictionary wouldcontain an element with 'the' as the key and 128 as the value. The program should eitherdisplay the frequency of each word or create a second file containing a list of each word and itsfrequency.1994 Weekly Gas GraphIn the student sample programs for this book, you will find a text file named 1994_Weekly_Gas_Averages.txt. The file contains the average gas price for each week in the year 1994.(There are 52 lines in the file.) Using matplotlib, write a Python program that reads thecontents of the file then plots the data as either a line graph or a bar chart. Be sure to displaymeaningful labels along the X and Y axes, as well as the tick marks. (in python)
- Program Specification For this assignment you will write a program to help people record the events of their day by supplying prompts and then saving their responses along with the question and the date to a file. Functional Requirements This program must contain the following features: Write a new entry - Show the user a random prompt (from a list that you create), and save their response, the prompt, and the date as an Entry. Display the journal - Iterate through all entries in the journal and display them to the screen. Save the journal to a file - Prompt the user for a filename and then save the current journal (the complete list of entries) to that file location. Load the journal from a file - Prompt the user for a filename and then load the journal (a complete list of entries) from that file. This should replace any entries currently stored the journal. Provide a menu that allows the user choose these options Your list of prompts must contain at least five different prompts.…phyton Topics: list and list processing You will write a program to read grade data from a text file, displays the grades as a 5-column table, and then print the statistics (min, max, median, and median). You can assume that the input file only one number per line. You can assume the user always enter a file that exists. The median is the value in the middle of a sorted list. To sort a list, use list.sort() function. It’s computed as below. For a list of odd length, the middle number is just the length divide by 2. For the list, [1,2,3], the median is 2 since 2 is in the middle of the list. The middle index is 3//2, which is 1. Remember that // is the integer division operator. When the length of the list is even, there are two middle numbers. The median is the average of the two middle numbers. For example, [1,2,3,4], the median is (2+3)/2 = 2.5. The two middle indexes for this example are (4//2)-1 = 1 and (4//2) = 2. Functions you need to write: read_grades() Prompts…Overview This program will have you use a loop to prompt a user for three foods and their country of origin and then store them in a dictionary called food_dict). Then, it will prompt the user for a dish that they like and then will tell them the country of origin. Expected Output Example 1 What is good to eat? Tacos What country is that from? Mexico What is good to eat? Pho What country is that from? Vietnam What is good to eat? Burgers What country is that from? America What dish do you like? Burgers Burgers is from America Example 2 What is good to eat? Pizza What country is that from? Italy What is good to eat? Spaghetti What country is that from? Italy What is good to eat? Gelato What country is that from? Italy What dish do you like? Pizza Pizza is from Italy Specifications • You should submit a single file called M4A2.py • It should follow the submission standards outlined here: Submission Standards • Your program should start by defining an empty dictionary called food_dict •…