C++
this program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team.
(1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers in one int vector and the ratings in another int vector. Output these vectors (i.e., output the roster).
Ex:
Enter player 1's jersey number:
84
Enter player 1's rating:
7
Enter player 2's jersey number:
23
Enter player 2's rating:
4
Enter player 3's jersey number:
4
Enter player 3's rating:
5
Enter player 4's jersey number:
30
Enter player 4's rating:
2
Enter player 5's jersey number:
66
Enter player 5's rating:
9

Answers

Answer 1

C++ program that stores and displays the elements of one or more lists. Output image of the algorithm is attached.

C++ code

#include<iostream>

using namespace std;

int main() {

   // Define variables

int jersey_number[5];

int pyer_rating[5];

int x;

// Entry data vectors

for (x=1;x<=5;x++) {

 cout << "Enter player" << x << "s jersey number (0 - 99): ";

 do {

  cin >> jersey_number[x-1];

 } while (!(jersey_number[x-1]>=0 && jersey_number[x-1]<=99));

 cout << "Enter player" << x << "s rating (1 - 9): ";

 do {

  cin >> pyer_rating[x-1];

 } while (!(pyer_rating[x-1]>=1 && pyer_rating[x-1]<=9));

}

// Output the roster

cout << "   " << endl;

cout << "**Player rating roster**" << endl;

cout << "   " << endl;

cout << "Jersey number   Rating " << endl;

for (x=1;x<=5;x++) {

 cout << "      " << jersey_number[x-1] << "           " << pyer_rating[x-1];

 cout << "   " << endl;

}

return 0;

}

To learn more about lists and vectors in c++ see: https://brainly.com/question/15088893

#SPJ4

C++this Program Will Store Roster And Rating Information For A Soccer Team. Coaches Rate Players During

Related Questions

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

Why was Tesla coil an invention

Answers

Don’t ask me bc l don’t know

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

Suppose when a crash occurred, the log in the stable storage has the following records in the given order (where T1, T2 and T3 represent different transactions):
,,,,,,,,
(a) If the deferred database modification recovery technique is used, what should be done to T1, T2 and T3 (the choices are "no action", "redo" and "undo")? Before the crash, what are the values of A, B, and D as can be seen by other database users with access privilege? After the recovery is completed, what are the values of A,B and D in the database? (b) If the immediate database modification recovery technique is used and the real database is updated as soon as possible (assume that for all log records in the stable storage, the corresponding changes have been made to the real database), what should be done to T1, T2 and T3? Before the crash, what are the values of A, B, and D as can be seen by other database users with access privilege? After the recovery is completed, what are the values of A,B and D in the database?

Answers

Databases crash because

Low Maintenance On Pre-Deployment ScriptsThe Database Is On The Wrong ServerUnfriendly Application and QueriesHardware and Software FailuresRunning Out Of Memory and Swap Space

Explanation in detail:

A database may appear ideal if such a complex setup runs flawlessly 24 hours a day, seven days a week, but that is not the case with a system or database administrator. The reason is straightforward, and software and hardware networks are not fault-proof.

The internal and external environments are constantly changing. In essence, new software is introduced, and existing software is updated. Database growth, memory consumption, log files and caches, growing buffers, and all of the challenges associated with a dynamic environment are all related to a database.

To know more about Database, visit: https://brainly.com/question/14350549

#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

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

true or false? in a known-plaintext attack (kpa), the cryptanalyst hs access only to a segment of encrpted data and has no choice as to what that data might be

Answers

Yes , it’s true. In a known-plaintext attack (kpa), the cryptanalyst can only view a small portion of encrypted data, and he or she has no control over what that data might be.

The attacker also has access to one or more pairs of plaintext/ciphertext in a Known Plaintext Attack (KPA). Specifically, consider the scenario where key and plaintext were used to derive the ciphertext (either of which the attacker is trying to find). The attacker is also aware of what are the locations of the output from key encrypting. That is, the assailant is aware of a pair. They might be familiar with further pairings (obtained with the same key).

A straightforward illustration would be if the unencrypted messages had a set expiration date after which they would become publicly available. such as the location of a planned public event. The coordinates are encrypted and kept secret prior to the event. But when the incident occurs, the attacker has discovered the value of the coordinates /plaintext while the coordinates were decrypted (without knowing the key).

In general, a cipher is easier to break the more plaintext/ciphertext pairs that are known.

To learn more about Plaintext Attack click here:

brainly.com/question/28445346

#SPJ4

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

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

which access feature is used to divide an access database into two files: one file contains the tables of the database and the other file contains the queries, forms, reports, and other database objects.

Answers

To split an Access database into two files, utilize the Split Database functionality. The database's tables are contained in the first file, while the second file houses the queries, forms, reporting, and database queries.

Describe a database.

A database is a collection of data organized for quick access, management, and update. In computer databases, information including such sales transactions, customer information, financial data, and product information are often stored as collections of collected data or files. Databases can be used to hold, organize, and access any kind of data. They gather data on people, places, or objects. To enable observation, that information is compiled in one location. Databases can be seen as a well-organized collection of data.

To know more about database
https://brainly.com/question/29412324
#SPJ1

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

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:

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 need to determine the priority of several processes. which command should you enter to identify the process id and nice value for each process?

Answers

The command you must enter to identify the process ID and the nice value of each process is the top command.

Since, the top command is used to display the resource usage of all processes running on a system. Such as:

The process ID (PID)User ID (UID)CPU usageMemory usagePriority (nice value)The command being executed

What are the commands in a process ID?

Ps: Display information about currently running processes.Top: Display information about all running processes.Kill: Terminate a process by its process ID.Nice: Change the priority of a process.Renice: Change the priority of an already running process.Strace: Trace system calls and signals for a process.Isof: List open files for a process.Itrace: Trace library calls for a process.Pmap: Display memory usage information for a process.Gdb: Debug a process by its process ID.

Learn more about the commands in a process ID:

https://brainly.com/question/28104938

#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

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

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

string word: a string that consists of only lowercase Latin letters Returns int. the number of good subsequences modulo(10 9+7)Constraints -1≤length of word≤10 5- word[i] is in the range [a-z] - Input Format For Custom Testing The first and the only line consists of a string, word. - Sample Case 0 Sample Input For Custom TestingSTDIN abcd ​FUNCTION → word = "abcd" ​Sample Output 15 Explanation All of the non-empty subsequences are good subsequences. 2. Good Subsequences A subsequence of a given string is generated by deleting zero or more characters from a string, then concatenating the remaining characters. A good subsequence is one where the frequency of each character is the same. Given a string that consists ofnLatin letters, determine how many good subsequences it contains. Since the answer can be quite large, compute its modulo(10 9+7)Note: An empty subsequence is not a good subsequence. Example word = "abca" A total of 15 non-empty subsequences can be formed from words. The only subsequences that are not good, are "aba", "aca" and "abca" as the frequencies of character "a" is 2 and every other character is 1. The total number of good subsequences=153=12and answer to the above example=12modulo(10 9+7)=12. Function Description Complete the function countGoodsubsequences in the editor below. countGoodsubsequences has the following parameter(s):

Answers

Using the knowledge in computational language in python it is possible to write a code that consists of only lowercase Latin letters Returns int.

Writting the code:

import bisect

mod = 10 ** 9 + 7

# HELPER FUNCTION:

# Calculating nCr % mod

def ncr(n, r):

   

   # Initializing numerator and denominator to 1

   numerator, denominator = 1, 1

   

   # Iterating over [0, r - 1]

   for i in range(r):

       

       # Applying mod on each step

       numerator = (numerator * (n - i)) % mod

       denominator = (denominator * (i + 1)) % mod

       

   # NOTE: modinverse of x and n is equal to mod of (x ^ (n - 2)) and n

   return (numerator * pow(denominator, mod - 2, mod)) % mod

           

       

def countGoodSubsequences(word):

   

   # Storing the length of the word

   n = len(word)

   

   # Building the frequency dictionary for the letters of the word

   freqs = dict()

   

   # Iterating over the letter word by word

   for letter in word:

       

       # Updating the frequency for that letter

       

       # If there is no value for that letter, add a value of 0

       if letter not in freqs:

           freqs[letter] = 0

           

       # Then, increment the value corresponding to that letter

       freqs[letter] += 1

   

   # Obtains the sorted counts of each letter

   counts = sorted(freqs.values())

   

   # Get the length of counts

   lens = len(counts)

   

   # Initialize the result to 0

   res = 0

   

   # Iterating over the frequencies [1, n]

   for i in range(1, n + 1):

       

       # Initializing the number of subsequences where each element has frequency i to 1

       freq_i = 1

       

       # bisect_left returns the first index of counts that is greater than or equal to i

       # That is, it finds the first frequency that is atleast i

       ind = bisect.bisect_left(counts, i)

       

       # Now, for all the elements having frequencies,

       # counts_1, counts_2, counts_3 ... such that counts_1, counts_2, counts_3 .... are all greater than or equal to i,

       # there are a total of (1 + (counts_1) C (i) *  (1 + (counts_2) C (i)  ) ...... -1 subsequences, nCr is (n!) / (c! * r!)

       

       # Iterating over [ind, lens) to count the total number of subsequences where each element has frequency i

       for j in range(ind, lens):

           

           # Updating freq_i

           freq_i *= (1 + ncr(counts[j], i)) % mod

           # Applying mod

           freq_i %= mod

       # Updating res

       res += (freq_i - 1)

       # Applying mod

       res %= mod

   return res

# Sample case

print(countGoodSubsequences("abca"))

See more about python at brainly.com/question/18502436

#SPJ1

which data mining process/methodology is thought to be the most comprehensive, according to kdnuggets rankings?

Answers

CRISP-DM methodology is thought to be the most comprehensive, according to kdnuggets rankings.

What is data mining?Analyzing a vast amount of data to find patterns and trends is known as data mining.Businesses can utilize data mining for a variety of purposes, such as figuring out what products or services their customers are interested in purchasing, as well as for fraud and spam filtering.Based on the information users supply or request, data mining systems analyze patterns and connections in data.In order to make money, social media corporations utilize data mining techniques to commodify their users.Since consumers frequently are not aware that data mining is taking place with their personal information, especially when it is used to influence preferences, this use of data mining has come under fire recently.

To learn more about data mining, refer to

https://brainly.com/question/2596411

#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

In java, how do I make a scanner class?

Answers

Answer:

Scanner input = new Scanner(System.in);

What is an SI base unit?
A.
an internationally accepted standard used to measure a physical quantity
B.
a unit formed through mathematical operations of accepted international units of measurement
C.
the smallest unit used to measure a physical quantity
D.
any unit that does not belong to the metric system
NEED ANSWERED ASAP

Answers

Answer:a

Explanation:

a user reports that she can't connect to a server on your network. you check the problem and find out that all users are having the same problem. what should you do next?

Answers

Since the user reports that she can't connect to a server on your network. you check the problem and find out that all users are having the same problem. The thing that you should  do next is option B: to Determine what has changed.

How Do You Define Network Server?

A network server is a computer built with the purpose of serving as a central repository and aiding in providing other computers on the network with resources such as hardware access, disk space, printer access, etc.

Therefore, on your network, the ways to  locate the server are:

Launch the Command Prompt.In the Command Prompt, enter "Tracert" and the website's address.Next to the website's URL, take note of the IP address.In the search bar, paste the IP address.The information page will have the country location listed.

Learn more about server from

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

See full option  below

What should you do next?

- Create an action plan.

- Determine what has changed.

- Established the most probable cause.

- Identify the affected areas of the network.

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

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

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

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

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

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

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.

Other Questions
Solve for the variable. 2(k+8) = 44 Match each type of anxiety disorder with its description.1. Agoraphobia2. Social Anxiety Disorder3. Panic Disorder4. Specific Phobia5. Generalized Anxiety Disorder Suppose you believe it would be just as wrong to hurt, eat, cage, or hunt an animal as it would be to do the same to a human. What theory could you use to justify your belief?. list 2 things from your study of the 1920s that continue to be important or influential today and explain why you chose each one. h(x)=x^2-1 what is the average rate of change of h over the interval -3 x -1 Your parents debt ratio increased, causing their credit score to drop from excellent rate of 5.75% to good rating of 6.20%. How much interest are they being charged during the first month on their mobile home loan of $74,860.00 Group of answer choices $358.70 $346.77 $374.30 $386.78 When four hydrogen atoms bind with oxygen and four electrons, what molecule is created? Can someone help me? If you pass an electric current through an iron nail, you will create an electromagnet. This magnet will pick up small objects, thus demonstrating that electrical energy can be converted into mechanical energy. Is there a way to use this principle to create a motor? On the coordinate plane, point F is located at (x, 8) and point G is located at (1, 4). Thedistance between points F and G is 52 units.What are the two possible locations of point F? Click on the box to choose the type of paragraph below.Melchizedek and the king of Sodom presented a marked contrast as they both descended into the king's dale in Genesis 14:17-18. Melchizedek was a mature believer; he was a king and a priest. He went down to give Abram communion and to help Abram keep his eyes firmly fixed on the Most High God, the possessor of heaven and earth, the source of his blessings. The king of Sodom, on the other hand, was no longer a king. His kingdom had been taken from him by force. As a man, he was clever and evil. He went down to ambush Abram, to rob him of the joy of God's grace and deliverance, to tempt him with the loot he had brought back. He ordered Abram to give him the people, for whom Abram could have demanded a ransom. He offered to let Abram keep the plunder. which would have made Abram the richest man in the world. His aim was to get Abram's eyes off the source and onto the possessions.method of exposition: 3. A bald eagle in level flight at a height of 135m drops the fish it caught. If the eagle'sspeed is 25.0 m/s how far from the drop point will the fish land? On page 104, of Think Like a Computer Scientist, you learned about paired data. With paired data, you can use a for loop with two index variables to iterative through the data. In this exercise you will create a turtle drawing using pairs of data, where the rst item of the pair is the distance to move forward , and the second item is the angle to turn.. Set up a list of pairs so that the turtle draws a house with a cross through the center, as show here. This should be done without going over any of the lines / edges more than once, and without lifting your pen.Your first pair of data will be (100,135). In a list this will look like ls = [ (100, 135) ] Then you need to add the other pairs for the remaining lines and angles. The 100 represents the distance forward the turtle will travel. The 135 represents the angle the turtle will turn left.Screen capture of run of program showing house figureHint: Your first line should be the bottom line. Then turn left 135 degrees and go forward. You may wish to create the drawing without the list first, then substitute a list and a for loop for the distances and angles.Use two functions: a main() function that sets up screen and turtle objects, and a drawhouse() function that takes a turtle object as an argument.Includes comments at the top to identify file name, project and a brief description.For further documentation, include comment for each section of code. Write in Python asap which part of this sentence is a phrase that modifies the subject of the sentence? showing his mischievous nature, jerome played an unfortunate trick on his best friend kurt. Which gas law can be used to calculate the pressure of hydrogen gas collected over water. on thursday morning, grace took a psychology test on the brain. later that afternoon, she began studying definitions for her biology test. the next day during the biology test, she writes down some of the psychology definitions instead of the correct biology definitions. the older memories of psychology terms interfered with her ability to access to the new biology term memories, which is an example of Which represents a strand of RNA bases?TGGCTCGAAUGGCUCGAAGTTAGTGCCCAATCTAGG Joey's boat weighs 0.62 tons. What is he weight of the boat measured in pounds? A cut in which bleeding occurs. Laceration Fracture Avulsion which recommendation will the nurse include when teaching an older patient about self-management during bathing A taxpayer who failed to claim the depreciation deduction for the last 12 years may correct this by ?