in java
Write a method called switchThem that accepts two integer arrays as parameters and switches the contents of the arrays. Take into account that the arrays may be of different sizes.

Answers

Answer 1

CODE:

public static void switchThem(int[] arr1, int[] arr2){
   int temp;
   int smallerSize = arr1.length < arr2.length ? arr1.length : arr2.length;
 for(int i = 0; i < smallerSize; i++){
   temp = arr1[i];
   arr1[i] = arr2[i];
   arr2[i] = temp;
}
}

What is code ?

Code, often referred as code, refers to language that a computer programmer has created in a computer language. Languages like C, C#, C++, Java, Perl, and PHP are examples. A somewhat less official term for text produced in markup or style languages, such as HTML and CSS is coding (Cascading Style Sheets). As an illustration, you may hear people are referring to code as "C code," "PHP code," "HTML code," or "CSS code."

To know more about code
https://brainly.com/question/20712703
#SPJ4


Related Questions

the socket on this next motherboard has 906 holes that can hold 906 pins on the processor. which processor brand will fit this socket? what is this socket's contact method? type in the name of the socket.

Answers

The processor brand that will fit this socket is FM2+.

The socket's contact method as well as type in the name of the socket are  A10-,A8-, and A6-Series of processors. The socket  type is contact or AMD FM2+ Socket.

What is the socket about?

AMD created Socket FM2+, a zero insertion force CPU socket, to connect desktop "Kaveri" and Godavari APUs to the motherboard. With two extra pin sockets, the FM2+ has a somewhat different pin arrangement than Socket FM2.

Therefore, since there is a a micro PGA package with 906 pins. Instead of the FM2+, you can also find this referred to as the Socket FM2b. Compared to the FM2 processor, it features is one that has two extra pins. used with the A10, A8, and A6 CPU series. There are 906 pinholes (PGA) uses AMD Steamroller architecture, and the processor has an integrated graphics controller.

Learn more about Socket from

https://brainly.com/question/15314283
#SPJ1

which of the following statements is not true? group of answer choices the dom for a web page is built as the page is loaded by the web browser. the dom is a hierarchical collection of nodes in the web browser's memory. you can modify the dom using the properties and methods that are defined by the dom core specification. to display changes made to the dom, you must refresh the web page.

Answers

The browser asks the server to transmit a copy of the website to the client by sending it an HTTP request message (you go to the shop and order your goods). TCP/IP is used to send this message and any other data between the client and the server over your internet connection.

What page is loaded by the web browser?

The Document Object Model is a programming environment for web documents (DOM). So that software can alter the document's structure, appearance, and content, it serves as a representation of the page.

Therefore, Because the document is represented by the DOM as nodes and objects, programming languages can communicate with the page.

Learn more about web browser here:

https://brainly.com/question/9776568

#SPJ1

you want to connect your small company network to the internet. your isp provides you with a single ip address that is to be shared between all hosts on your private network. you do not want external hosts to be able to initiate connections to internal hosts. what type of network address translation (nat) should you implement?

Answers

For the purpose of sharing public addresses among numerous private hosts, use Dynamic Network Address Translation (NAT).

Dynamic NAT permits private hosts to connect to the internet but forbids public hosts from initiating connections with private hosts.

A large number of hosts with private IP addresses can share an equal or smaller number of public IP addresses in a dynamic NAT.To link a port number to a request from a private host, the NAT router employs Port Address Translation (PAT).

Although it may appear to be very similar to a Dynamic PAT, the main distinction is that this is a NAT—only the IP address is changing. This means that a single public IP address cannot be used simultaneously by several internal Hosts.

It should be noted that individuals frequently use the phrase "dynamic NAT" when talking about address translation when they really mean "dynamic PAT." Dynamic NAT is rarely utilised in production for the reasons stated above. It is a dynamic PAT if a single IP address is used by numerous internal users and if the port number changes.

To learn more about Network address translation (NAT) click here:

brainly.com/question/13100300

#SPJ4

in an erlang loss model, customers who arrive when all servers are busy are lost to the system. group of answer choices true false

Answers

In an Erlang loss model, customers who arrive when all servers are busy are lost to the system is true.

What is the Erlang loss model definition?

The first publication of Erlang's M/M/C/C queue, or Erlang loss model, was in 1917 . It simulates a scenario where calls are received at a phone exchange using a Poisson process with rate, call holding durations are exponentially distributed with mean, and C lines are available.

Therefore, Erlang loss model assumes that each client is handled by a single server and that clients do not have to wait. Hence, the statement above is correct.

Learn more about Erlang loss model from

https://brainly.com/question/18760050
#SPJ1

Which siem component is responsible for gathering all event logs from configured devices and securely sending them to the siem system?.

Answers

Collectors are in charge of collecting all event logs from configured devices and securely transmitting them to the SIEM system. Collectors serve as a bridge between devices and the SIEM system.

What is SIEM system?

SIEM, or security information and event management, is a solution that assists organizations in detecting, analyzing, and responding to security threats before they disrupt business operations.

SIEM, pronounced "sim," is a security management system that combines security information management (SIM) and security event management (SEM). SIEM technology collects event log data from a variety of sources, uses real-time analysis to identify activity that deviates from the norm, and takes appropriate action.

In short, SIEM provides organizations with visibility into network activity, allowing them to respond quickly to potential cyberattacks and meet compliance requirements.

SIEM technology has evolved over the last decade to make threat detection and incident response smarter and faster with artificial intelligence.

To know more about SIEM system, visit: https://brainly.com/question/29454719

#SPJ4

you want to make the port 2700 exclusively for use by root users only. which command should you run?

Answers

Answer:

sudo ipadm set-prop -p extra_priv_ports+2700 tcp

Explanation:

you are viewing the routing table and you see an entry 10.1.1.1/32. what legend code would you expect to see next to this route?

Answers

In the new 15 IOS code, Cisco defines a different route called a local route. Each has a /32 prefix defining a route just for the one address. Thus, the correct option is B.

What is local route?

Additionally, a router gets packets for regional use. The router supports multiple IP address configurations. A specific router object is represented by each configured IP address. The second route reveals where on the router a specific IP address is accessible. The host route is the second route in the chain. The router designates this kind of route with the letter L (Local).

On the GigabitEthernet0/0 interface in our example, the IP address 10.0.0.1/8 is set up. The router creates a local route for this IP address so that packets can be forwarded to the GigabitEthernet0/0 interface. Since a local route denotes a particular local object, the router makes use of that object's IP address. The router's local route makes use of the prefix /32. An address for a host is denoted by the prefix /32.

Learn more about route

https://brainly.com/question/28484617

#SPJ4

one very common technique to attack a system is to deliver an e-mail or web page that contains a malicious piece of code called a(n) .

Answers

One very common technique to attack a system is to deliver an e-mail or web page that contains a malicious piece of code called an mobile malicious code.

What is malicious code?

Malicious code is a type of harmful computer code or web script that is intended to introduce security flaws into a system, opening the door for back doors, information and data theft, and other potential harm to files and computing systems.

Antivirus software may not always be able to stop this kind of threat. Infections brought on by malicious code, which is distinct from malware, cannot always be treated by antivirus software, according to Kaspersky Lab. Malware is a term used to describe malicious software specifically, but malicious code also includes website scripts that can upload malware by taking advantage of security flaws.

It is an auto-executable program that can activate itself and manifest as Java Applets, ActiveX controls, pushed content, plug-ins, scripting languages, or other programming languages intended to enhance Web pages and email, among other forms.

Learn more about malicious code

https://brainly.com/question/29671316

#SPJ4

write a method contains() that returns true if the key is stored in the array values. the key is stored using closed hashing with linear probing method and uses keytoindex() as the hash function. (keytoindex() is already defined and provided for you). linear probing means that when we have a collision, we check the next (hence linear) position to see if the key is there (probing). we continue until we find they key or find an empty slot (null) in values. The details of the algorithm are:
Compute the index for the key by calling keyToIndex().
If position index in values is empty (i.e. null) then the key is not found and we return false.
If position index is in use (i.e., not null) then we compare the key with the value stored at index. If they are the same, then the key exists and we return true.
Otherwise, the position index is in use and the key stored there is not the same as the key being searched. This is a collision and we must resolve it using linear probing. Increment the index returned by keyToIndex() by one and check the next position. Continue doing this until either you find a position with the key already stored (return true) or you find an empty position (return false). When you increment index, make sure you wrap it around the end of the values table using the remainder (modulo) so that you check all possible positions.
boolean contains(String key, String values[])
{
int index = keyToIndex(key);
<< your code here >>

Answers

Boolean includes (String key, String values[]) <your code here>: int index = keyToIndex(key);.

A technique called hashing is used to distinguish one particular object from a collection of related ones. Let's say a key is given to an item to make searching easier. One can use a straightforward array akin to a data structure to store the key/value combination, where keys (integers) can be used directly as an index to store values.

Hashing should be employed, nevertheless, when the keys are big and cannot be utilized as an index directly. During hashing, hash functions are used to break up huge keys into smaller ones. The values are then kept in a hash table, a type of data structure. Using linear probing the hashing method might be used to produce an array index that has already been used. If this is the case, we can look into each subsequent cell in the array until we discover one that is empty. This method is known as linear probing.

To know more about hashing click here:

https://brainly.com/question/13106914

#SPJ4

Which council was designed to streamline the processing of information regarding issues of national security?.

Answers

The National Security as revised by the National Security Act Amendments of 1949, created the National Security Council (NSC) to streamline the processing of information regarding issues of national security

The President typically discusses national security and foreign policy issues with his top national security advisers and cabinet members at the National Security Council (NSC). The Council's role has been to advise and assist the President on matters of national security and foreign policy ever since it was established by President Truman. The Council also acts as the President's main tool for liaising between various government entities to  implement these policies.

The President serves as the NSC's chair.The Assistant to the President for National Security Affairs, the Vice President, the Secretary of State, the Secretary of the Treasury, the Secretary of Defense, and others regularly attend (both statutory and non-statutory). The official military advisor to the Council is the Chairman of the Joint Chiefs of Staff, while the official intelligence advisor is the Director of National Intelligence.

To learn more about National Security Council click here:

brainly.com/question/2994510

#SPJ4

a well formed primary key will guarantee that you can always identify a unique row. however, what should you use to ensure that you maintain uniqueness in your table for a set of fields that is not the primary key?

Answers

Fixed-length character data types are the second-best option for a primary key after integer (number) data types.

Each record in a table is given a special identification by the PRIMARY KEY constraint. Primary keys cannot have NULL values and must have UNIQUE values. There can only be one primary key in a table, and this primary key may include one or more columns (fields). The primary key (PK) of the table is this column, or set of columns, and it upholds the table's entity integrity. Primary key constraints are frequently defined on an identity column because they ensure unique data. Each row of data values in a database table in a relational database is uniquely identified by a candidate key.

Learn more about database here-

https://brainly.com/question/28385898

#SPJ4

you want to view how your worksheet will print and make edits to the worksheet in this mode. what is the easiest way to accomplish this?

Answers

Since you want to view how your worksheet will print and make edits to the worksheet in this mode. The thing that is the easiest way to accomplish this is to select Page Layout on the bottom of the page in the area of the status bar.

Where is the status bar button for page layout?

The three standard worksheet view options are Normal View, Page Layout View, and Page Break Preview. The three buttons are located in the bottom right corner.

Therefore, in regards to your work above, you can see a preview of the data that will appear on the printed when you choose one or more sheets and choose File > Print. Choose the worksheet(s) you want to preview. To access the Preview window and printing options, select File and then click Print. keyboard shortcut Additionally, you can use Ctrl+F2.

Learn more about worksheet from

https://brainly.com/question/25130975
#SPJ1

FILL IN THE BLANK. Fill in the blank: A technique is used to balance traffic by iterating a list of items one by one from is known as ____. multiple choice, shuffle1. Round Robin2. Recursion3. Authoritative lookup4. Multiplexing

Answers

A technique is used to balance traffic by iterating a list of items one by one from is known as Round Robin.

What is round robin?One of the techniques used by process and network schedulers in computing is round-robin. Time slices are allocated to each process in equal parts and in circular order, as the word is typically employed, handling all processes equally.Other scheduling issues, such data packet scheduling in computer networks, can be solved with round-robin scheduling. It relates to operating systems.As soon as the time quota is reached, the scheduler removes the process from the CPU, making the round-robin algorithm a preemptive algorithm.A round robin is a scheduling technique used by sports teams in which each player competes against every other player in the competition. This is also known as a round robin competition.

To learn more about round-robin refer :

https://brainly.com/question/15376473

#SPJ4

what is a data collector set, and what are the three basic types of data collection tools and formats?

Answers

Answer:

A set of strategies for gathering performance and diagnostic data and presenting it in a report or log style. The fundamental data collection approaches can include one or more of the following: performance counters, event traces, and system configuration data.

Performance counters and performance counter reports, traces and trace reports, and system configuration data are the three basic types.

Why was Tesla coil an invention

Answers

Don’t ask me bc l don’t know

What term was discussed to describe how surgeons use augmented reality, high-definition video, and real-time data readings from medical sensors to control the remote robotic surgical tool?.

Answers

A terminology which was discussed to describe how surgeons use augmented reality, high-definition video, and real-time data readings from medical sensors to control the remote robotic surgical tool is telesurgery.

What are the forms of Extended Reality (ER)?

In Computer technology, there are four (4) main types of Extended Reality and these include the following:

Virtual RealityMixed RealityHaptic RealityAugmented Reality

What is telesurgery?

In Artificial intelligence, telesurgery is sometimes referred to as remote surgery and it can be defined as a type of technology which avails a surgeon an ability to remotely perform surgery on a patient, especially through the use of high-definition video, real-time data readings, and Augmented Reality (AR).

Read more on telesurgery here: https://brainly.com/question/29662419

#SPJ1

computer 1 on network b, with ip address of 192.168.1.233, wants to send a packet to computer 2, with ip address of 10.1.1.205. on which network is computer 2?

Answers

IP address of 10.1.1.205. on computer2. i.e. computer two is connected with subnet.

What IP address means?Internet Protocol address is referred to as an IP address. A set of guidelines known as the Internet Protocol governs online interactions such as sending email, streaming video, and connecting to websites. On the internet, a network or device is identified by its IP address.Select the network you are currently connected to by going to your WiFi network settings. Your IP address may be found alongside the other network details.An IP address range is all that a subnet is. Without using any routers, all the devices on the same subnet may connect with one another directly. A network interface in IPv4 only connects to one subnet and has a single IP address.

To learn more about subnet refer,

https://brainly.com/question/29039092

#SPJ4

You want to implement an authentication method so that different password attacks, like dictionary attacks, brute force attacks, etc., will not result in unauthorized access to the web application hosted by your enterprise. You want to do this by not using any specialized hardware or making any changes to the user's activity during the authentication process. Which of the following methods should you apply? You should implement keystroke dynamics. You should implement fingerprint authentication. You should implement iris scanning. You should implement facial recognition. 10. Sam is working as a cybersecurity expert. An enterprise that manages nuclear powerplants approached Sam's company to install an authentication facility for its employees when they access the nuclear plant. The enterprise is demanding multifactor authentication with high security, lowest false acceptance rate, and lowest false rejection rates. Which of the following authentication methods should Sam apply? PIN and face recognition PIN and gait recognition PIN and fingerprint scanner PIN and password 11. In an interview, you were asked to crack a password and told that the password is a commonly used word. Which of the following methods should you apply? You should perform a brute force attack. You should perform a dictionary attack. You should perform a rule attack. You should perform skimming. 12. You are asked to choose a secure authentication method other than a username and password for the employees to access your enterprise's database. Which of the following should you choose? Gait recognition Smart card authentication Security key authentication Facial recognition

Answers

Security key authentication. Biometric authentication uses a user's distinctive biological characteristics to confirm their identification.

As a result, biometrics are currently among the most secure authentication techniques. Knowledge factors, possession factors, inheritence factors, location factors, and behavior factors make up the five basic types of authentication factors. Answering a personal security question is often required for knowledge-based authentication. Passwords, four-digit personal identification numbers (PINs), and one-time passwords are the most common knowledge factor technologies. In order to access a resource like an application, an online account, or a VPN, the user must submit two or more verification factors, which is known as multi-factor authentication (MFA).

Learn more about security here-

https://brainly.com/question/5042768

#SPJ4

write the definition of an exception class named panicexception that does not have its own error message

Answers

Coding faults and flaws are quite common. The truth is that even the greatest code is rarely error-free, despite the fact that extremely well-written programs might claim to have fewer problems.

What class named panic exception own error message?

Additionally, when features are added, code is modified, it is updated, and refactored, flaws can sneak into the code. Minor mistakes cause hiccups during program execution, although they don't necessarily result in a system crash.

Therefore, But that does not imply that they are not serious. In fact, if those issues are not resolved, they may end up being more dangerous in the long term.

Learn more about error message here:

https://brainly.com/question/29580898

#SPJ1

the following program is supposed to compute only profits (positive earnings) for the first half of the year (6 months). what is logically wrong with the implementation?

Answers

The output will be 1 1 1 2 1 4 6. Hence, the output will be 1 1 2 4 5 1 for the second half.

N = 7, and the price is equal to [100 80 60 70 60 75 85].

1 1 1 2 1 4 6 as output

Explanation: Crossing the input span of 100 will result in the span being 1, 80 being less than 100, 1, 60 being less than 80, 1, 70 being more than 60, 2, and so on. The result will therefore be 1 1 1 2 1 4 6.

N = 6, and the price is equal to [10 4 5 90 120 80].

Results: 1 1 2 4 5 1

Explanation: When traversing the input given, the span for 10 will be 1, since 4 is less than 10 and 5 is greater than 4, and the span for 2 and 3.

Learn more about output here-

https://brainly.com/question/18133242

#SPJ4

you are concerned that an attacker can gain access to your web server, make modifications to the system, and alter the log files to hide his or her actions. which of the following actions would best protect the log files?

Answers

The following action that would best protect the log files is send the log entries to another server using syslog.

Syslog is a useful tool. It is a common network-based logging protocol that enables a very wide range of different kinds of devices and applications to transmit log messages in free text format to a centralized server.

Almost all of the devices on your network—whether they are switches, firewalls, storage boxes, or servers—have syslog agents that can be used to send messages to a single, shared location.

Those who are acquainted with SNMP might be perplexed.

Both of them are utilized to send notifications and messages to a central server without the need for polling. Without having to wait for the server to poll for status, the message can be sent as soon as an event takes place.

To know more about syslog click here:

https://brainly.com/question/29556656

#SPJ4

your team is getting ready to start coding a new digital product based on validated learning about a focal user and some key propositions. you've got a story map of focal user experiences with user stories. before jumping into development, you think the team should take a step that would help to keep user outcomes top of mind. what might you recommend that the team focus on next?

Answers

Design thinking can also help to create the right environment for a true and much broader understanding of the customer's voice.

What is meant by design thinking?Design thinking refers to the set of cognitive, strategic, and practical procedures used by designers in the design process, as well as the body of knowledge developed about how people reason when confronted with design problems.Design thinking is a problem-solving method that prioritises the needs of the consumer above all else. It is based on observing people's interactions with their environments with empathy and employs an iterative, hands-on approach to creating innovative solutions.While design thinking is an ideology founded on designers' workflows for mapping out design stages, its goal is to provide all professionals with a standardised innovation process for developing creative solutions to design-related or non-design-related problems.

To learn more about design thinking refer :

https://brainly.com/question/24596247

#SPJ4

Answer:

test

Explanation:

TRUE/FALSE. if the programmer does not explicitly define a copy constructor for a class, copying objects of that class will not be possible.

Answers

Answer: false

Explanation:

you just got a new powermate input device that you want to use on your computer. you don't think that the powermate driver was compiled into the kernel of your linux distribution. in this lab, your task is to: use lsmod to verify that the device driver was not compiled into the kernel. insert the powermate module into the kernel. confirm that you have loaded the module into the kernel.

Answers

The way to insert the power mate module into the kernel. confirm that you have loaded the module into the kernel. is by:

modprobe gamepadinsmod gamepad.koWhy is it called a kernel?

Given that it is the core component of the OS, it is known as the kernel. It offers a way for software and hardware to communicate. For instance, it offers capability for system calls such as writing to disk and memory.

It is the core that offers essential services for all other components of the OS. It serves as the primary interface between the operating system and the underlying computer hardware and aids with operations including networking, device control, file systems, and process and memory management.

Therefore, one can say that the operating system of a computer is composed of a core program called the kernel, which typically controls every aspect of the system. It is the section of the operating system's code that is permanently stored in memory and allows for interactions with hardware.

Learn more about kernel from

https://brainly.com/question/29406028
#SPJ1

1. For each of the communications listed below, indicate (1) the time period during which the
communication is typically obtained or provided and (2) whether the communication is oral,
written, or either oral or written. Use the following abbreviations in providing your answer:
A. Prior to the engagement
B. Prior to or at the date of the auditors' report
C. Following the date of the auditors' report
D. Either following the date of the auditors' report or as significant matters are identified
E. Oral
F. Written
G. Either oral or written
___ 1. Engagement letter
___ 2. Acceptance letter (signed copy of engagement letter)
___ 3. Attorney letter response
___ 4. Written representations
___ 5. Internal control deficiencies
___ 6. Communications with individuals charged with governance
___ 7. Management letter

Answers

Below is the answer containing or each of the communications listed below, indicating the time period during which the communication is typically obtained or provided and (2) whether the communication is written or oral, or either written or oral.

Solution:

1  Engagement letter:  

Prior to the engagement  and   Written

2  Acceptance letter (signed copy of engagement letter):

       A  Prior to the engagement  and   Written

3  Attorney letter response:

Prior to or at the date of the auditors' report  and Written

4  Written representations  

Prior to or at the date of the auditors' report    and  Written

5  Internal control deficiencies:  

 Either following the date of the auditors' report or as significant    matters are identified  and  Written

6  Communications with individuals charged with governance:  

Following the date of the auditors' report  and  Either oral or written

7  Management letter:

 Following the date of the auditors' report  and  Either oral or written

To know more about communications, visit: https://brainly.com/question/29338740

#SPJ4

in the event of a duplicate mac address shared by two hosts on a switched network, what statement is accurate?

Answers

The hosts will still send and receive traffic, but traffic may not always reach the correct destination.

What is Ibgp route reflection?One way to get rid of the full-mesh of IBGP peers in your network is by using route reflectors (RR). BGP confederations are the alternative strategy.This greatly simplifies our IBGP arrangement, but there is a drawback as well. The route reflector can malfunction. When it comes to IBGP peerings, there is a single point of failure. We can have numerous route reflectors in our network as a solution, of course.

Three types of peerings are possible for the route reflector:

neighbouring EBGPIBGP neighbour clientNon-client IBGP neighbour

You must inform the router if the other IBGP router is a client or non-client when configuring a route reflector.

To learn more about Ibgp route, refer to

https://brainly.com/question/6783973

#SPJ4

What is the goal of staging? A. to make the player feel scared B. to visually set the mood or idea C. to communicate the rules of the game D. to show the player how to beat the game

Answers

The goal of staging is: B. to visually set the mood or idea.

What is a game development tool?

In Computer technology, game development tool can be defined as a set of specialized software programs that are typically used by game developers or programmers for the design and development of a game, and these include the following:

EmulatorLevel editorGame engineModeling toolScripting tool

During a game development project, the terminology "staging" simply refers to a process through which the mood or idea about a particular game is virtually set by a game developer set, in order to prepare the game player's psych and mind.

Read more on game here: brainly.com/question/13956559

#SPJ1

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. the program should include the following functions: a. a function to display a menu. b. a function to look up a person’s email address. c. a function to add a new name and email address. d. a function to change an email address. e. a function to delete a name and email address. f. a function to load emails from a file. g. a function to save emails in a file. h. write main function with a loop that displays the menu allowing the user to select an operation from the menu; the program continue until the user enter 5. i. validate all user input. your program should check user input; for example, if the user wants to search or delete a name that does not exist in the dictionary, you should print something like the name is not in the database. if the user selects invalid operation from the menu, the program prints an error and allows the user to renter a valid operation; the program continue asking for a valid operation until a user selects a valid operation.

Answers

To write a program that keeps names and email addresses in a dictionary as key-value pairs check the code given below.

What is key-value pairs?

In a key-value pair, two related data elements are combined: a value, which is a variable that belongs to the set (for example, male/female, green, 100), and a key, which is a constant that defines the data set (for example, gender, color, price).

A key-value pair could look something like this when fully formed:

gender = male

color = green

price > 100

↓↓↓//Python code//↓↓↓

import pickle

import sys

try:

   f=open('email.dat','rb')

   d=pickle.load(f)  

   f.close()

     

except:    

   d={}

while True:

   print('\n1. Find a email address')

   print('2. Add name and email address')

   print('3. Change an email address')

   print('4. Delete an email address')

   print('5. Exit\n')

   choice=input('\nEnter a choice: ')

   if choice:

       choice=int(choice)

   else:

       print('\nEnter a number')

       continue    

   if choice == 1:

       while True:

           name=input('\nEnter the name ')

           if name:

               if name in d:

                   print('\n%s is the email id of %s \n' % (d[name],name))

                   break

               else:

                   print('\n Email not found \n')

                   break

           else:

               print('\nName cannot be empty\n')

               continue

           

   elif choice==2:

       while True:            

       

           name=input('\nEnter the name ')

           if name:

               break;

           else:

               print('\nName cannot be empty \n')

               continue

       while True:            

       

           email=input('\nEnter the email address ')

           if email:

               d[name]=email

               break

           else:

               print('\nEmail cannot be empty\n')

               continue

           

   elif choice==3:

       while True:            

       

           name=input('\nEnter the name to change the email address ')

           if name:

               if name in d:

                   email=input('\nEnter the new email address ')

                   d[name]=email

                   print('\nEmail address changed \n')

                   break;

               else:

                   print('\nName not found \n')

                   break

           else:

               print('\nName cannot be empty \n')

               continue

           

   elif choice == 4:

       while True:            

       

           name=input('\nEnter the name to remove ')

           if name:

               if name in d:

                   del d[name]

                   print('\nName and Email address removed \n ')

                   break;

               else:

                   print('\nName not found \n')

                   break

           else:

               print('\nName cannot be empty\n')

               continue

   elif choice == 5:

       

       f=open('email.dat','wb')

       pickle.dump(d,f)

       f.close()

       sys.exit()

   else:

       print('\nEnter a valid choice ')    

Learn more about key-value pair

https://brainly.com/question/29414672

#SPJ1

comsc 260 fall 2022 programming assignment 9 worth 12.5 points (1.25% of your grade) due: sunday, 11/13/22 by 11:59 p.m. on canvas late pass deadline: sunday, 11/20/22 by 11:59 p.m. on canvas START by downloading the 260 assign11.asm file from Canvas NOTE: Your submission for this assignment should be a single .asm file and a single .pdf file. The following naming convention should be used for naming your files: firstname_lastname_260_assign11.asm and firstname_lastname_260_assign11.pdf. The pdf file that you submit should contain the screenshots of your sample runs of the program (see below). For example, if your first name is "James" and your last name is "Smith", then your files should be named James_Smith_260_assign11.asm and James_Smith_260_assign11.pdf. Comments - worth 1.25 points (10%) of your programming assignment grade: Your program should have at least ten (10) different detailed comments explaining the different parts of your program. Each individual comment should be, at a minimum, a short sentence explaining a particular part of your code. You should make each comment as detailed as necessary to fully explain your code. You should also number each of your comments (i.e., comment 1, comment 2, etc.). NOTE: My comments do NOT count towards the ten comments! Sample Runs - worth 1.25 points (10%) of your programming assignment grade: You should submit screenshots of at least five (5) different sample runs of your program. Each sample run needs to use a different input for register EAX, and your sample runs should NOT be the same as the sample runs that are used in this write-up for the assignment. You should also number each of your sample runs (i.e., sample run 1 , sample run 2, etc.). All of your sample runs should follow this format - for each individual sample run, screenshot (1) the value placed into register EAX at the beginning of the program and (2) the value in the letter_grade variable at the end of the program. For example: (1) IMPORTANT NOTE: In this class (for this assignment and ANY other assignment) the high-level directives from section 6.7 of chapter 6 are NOT allowed to be used under any circumstances. This means things such as .if, .else, .repeat, .while, etc. must NOT be used in this assignment, or any other assignment in this class. Use of these high-level directives would make the assignments too easy, so they are NOT allowed for this reason. When your program needs to make decisions, it needs to do so using the conditional jump instructions that we are learning about in class. OK: conditional jump instructions such as je, jne, jecxz, ja jnae, jg jcxz, jp, jnp, jb, jnbe, jp, jz, js, etc. NOT OK: High-level directives such as .if, .while, .else, .repeat, etc. (do NOT use anything from section 6.7 of chapter 6 in any of your assignments!!!) For your programming assignment you will be implementing the following procedure: *The grading scale could be changed at any time by changing the A_grade, B_grade, C_grade, and D_grade constants in the program. The program should still work correctly even if these constants were changed in the future. The idea is that in main, a number between 0−100 will be placed in register eax. Then, main will call the calculate_grade procedure. The calculate_grade procedure will determine the letter grade based on the value in eax, and then move the letter grade ('') into the letter_grade variable in the data segment. For example, if value in eax is 92 , then ' A ' should be moved into letter_grade. If the value in eax is 74 , then 'C ' should be moved into letter_grade, and so on. Sample run 1: Initial state-BEFORE calling calculate_grade ( 90 is placed into eax) Final state - AFTER calling calculate_grade ('A' is placed into letter_grade because eax is 90) Sample run 2: Initial state - BEFORE calling calculate_grade ( 82 is placed into eax) Final state - AFTER calling calculate_grade ('B

Answers

A constant is a value that the program cannot change while it is normally running, i.e., the value is constant.

Although the phrases "constant" and "named constant" are frequently used interchangeably, a constant is considered to be "named" when it is coupled with an identifier. In computer programming, an assignment is a statement that sets a value to a variable name. The equal symbol (=) designates the operator that is used to do assignment. In computer programming, an assignment statement transfers a value into the variable by setting and/or resetting the value in the storage location(s) indicated by a variable name. The assignment statement (or expression) is a key building block in the majority of imperative programming languages.

Learn more about programming here-

https://brainly.com/question/11023419

#SPJ4

a cloud administrator is migrating services from the on-premises network to the cloud network. what phase of the lifecycle roadmap does this activity fall in?

Answers

There are three stages to migrating to the cloud: planning, mid-shift, and go-live. Once the decision has been made that cloud computing is the best solution to address the business difficulties you are facing.

The process of shifting digital company processes to the cloud is known as cloud migration. Similar to a physical move, cloud migration entails moving data, programs, and IT procedures from one data center to another, as opposed to packing up and transporting actual physical items. the CloudEndure Migration Factory should receive wave data import. Get the source servers ready. Check the status of server replication. Migration test, please.

Learn more about server here-

https://brainly.com/question/7007432

#SPJ4

Other Questions
Will give brainliest how should a nurse prepare to administer a measles, mumps, rubella (mmr) vaccination to a 6 year old child? Determine the output voltage Vo in the circuit given below using nodal analysis, where the dependent source A-0.2Vo Please report your answer so the magnitude is positive and all angles are in the range of negative 180 degrees to positive 180 degrees. j2 12/0V 4 The output voltage of the circuit is V.-n/r n/r according to the trait model of leadership, what trait helps managers influence employees despite any difficulties? multiple choice integrity and honesty dominance control controllable revenue is included in a performance report of a: cost center profit center a. yes no b. yes yes c. no no d. no yes consider a directed social network in which the actors are nations. nation x has a tie to nation y if x sells more to y than y sells to x. (in other words, the ties point in the direction of net trade.) find appropriate adjectives to describe the nation with the largest indegree and the nation with the largest outdegree. how does murderball expect its audiences to respond to disability before and after viewing the film? do you think the film changes audience expectations? how and why? according to cognitive theory, the depressed person selectively accepts the most negative interpretations available and assumes that things will only get worse in the future. true or false: as the pressure to reduce costs increases, the best entry modes are franchising and joint ventures. The sum of two numbers is 31. The second number is 4 more than the first number. what should the prioritiezed list of assets and their vulnerabilities and the prioritized list of threats facing the organization be combined to create? Based on the passage above, what does circumnavigate mean?A. pass overB. exploreC. sail aroundD. investigatePlease select the best answer from the choices provided For a brainstem injury, what type of response would you expect when testing the triceps reflex?. 5 g of gold and 25 g of silver are mixed to form a single-phase ideal solid solution. (a) how many moles of solution are there? (b) what are the mole fractions of gold and silver? It costs a craftsperson 110 to bring 150 picture frames to market and the picture frames sell for 2. The difference between the cost and the income from sales is the craftspersons profit? Help me please please please please System of equations and inequalities aglebera 1 many viruses cause what are referred to as flu-like symptoms as a result of the body's response to the infection. these symptoms include . you need to determine the priority of several processes. which command should you enter to identify the process id and nice value for each process? 5 sentences how reform movements attempted to change society for the better during and after the Industrial Revolution. the enthalpy of neutralization for all strong acid-strong base reactions should be the same within experimental error. will that also be the case for all weak acid-strong base reactions?