Answer:true
Explanation:
Answer:
false it is not true.
it is different on its own
8.19 LAB*: Program: Soccer team roster (Dictionaries) 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 and the ratings in a dictionary. Output the dictionary's elements with the jersey numbers in ascending order (i.e., output the roster from smallest to largest jersey number). Hint:
roster = {}
for x in range(5):
jersey = int(input('Enter a jersey number: '))
rating = input('Enter the player\'s rating: ')
roster[jersey] = rating
print('Smallest to largest jersey number with player rating: ')
for x in sorted(roster):
print('Jersey number: '+str(x),'Player rating: '+roster[x])
I wrote my code in python 3.8. I hope this helps.
The program is an illustration of loops
Loops are used to perform repetitive operations.
The program in Python, where comments are used to explain each line is as follows:
#This initializes the dictionary
mydict = {}
#This following loop is repeated 5 times
for i in range(5):
#This gets the jersey number
nums = int(input('Jersey number (0 - 99): '))
#This gets the player ratings
rating = input('Rating (0 - 9): ')
#This populates the dictionary
mydict[nums] = rating
#This prints the output header
print('Jersey Number\tPlayer Rating: ')
#This iterates through the sorted dictionary
for i in sorted(mydict):
#This prints the jersey number and the player rating
print(str(i),'\t\t',mydict[i])
At the end of the program, the jersey number and the player ratings are printed.
Read more about similar programs at:
https://brainly.com/question/14447914
siapa mahapatih brainly.com atau yg disebut Brainly Amerika Serikat ?
Answer:
The option to delete your account can be found in your Profile Settings under Privacy. Click on the box labeled I want to delete my account, and the request will be sent for the account to be deleted
what helps you to ensure that writing is well organized?
In your role as network administrator you need to make sure the branch manager can access the network from the PC in her office. The requirements specify that you: Use a network device that provides wireless access to the network for her mobile device. Connect the network device to the Ethernet port in the wall plate. Use a wired connection from the PC to the network device. Use cables that support Gigabit Ethernet.
Answer:
In your role as network administrator you need to make sure the branch mana... ... The Branch Manager Can Access The Network From The PC In Her Office. ... Use A Network Device That Provides Wireless Access To The Network For Her Mobile Device. 2. ... Connect the network device to the Ethernet port in the wall plate.
Explanation:
A network administers are those who are responsible for the day-to-day operations and management of the network. Your role is to organize the support the organization. It networks systems, need to manage the LAN, MANs, etc.
When the branch manager ant to have a network and PC in her office you need to make sure that the need that specific to your use by providing the wired connection from the PC to the network device.Hence the option C is correct.
Learn more about the network administrator you need to make.
brainly.com/question/24240647.
Your task is to diagnose and correct the problem. In the computer, the top hard drive contains the operating system files. Troubleshoot the hard drives to see why they are not all being recognized. Verify that all drives are detected in the BIOS.
Answer:
Explanation:
The first thing that needs to be done is make sure that all of the cables are properly connected to each hard drive and that they are powering on when the computer is turned on. Next, enter the BIOS and check to make sure that all of the drives are being detected. If they are not then either the cables or the drive itself may be damaged. If all drives are detected then log into the operating system, on the search bar type and launch Disk Management. Here search for the drive that is not showing up and assign it a drive letter. It should now show up in the file explorer.
ik its a dead game but who wants to play agar.io with me? the code is agar.io/#UMDX3A and my name on there is cohen
Answer:
I git banned lol
Explanation:
Write a c++ program that generates three random numbers. The first number should be between 0-30, the second number should be between 30-60 and the third number should be between 60-90.
Answer:
#include <stdlib.h>
#include <time.h>
#include <iostream>
using namespace std;
int main() {
srand(time(NULL));
cout << rand() % 30 << endl;
cout << rand() % 30 + 30 << endl;
cout << rand() % 30 + 60 << endl;
}
Explanation:
rand() returns a pseudo-random integral number in the range between 0 and RAND_MAX. By applying the modulo operator, you map that to the desired range (30 in your case), then you add an offset.
Consider the following code segment, where num is an integer variable.int[][] arr = {{11, 13, 14 ,15},{12, 18, 17, 26},{13, 21, 26, 29},{14, 17, 22, 28}};for (int j = 0; j < arr.length; j++){for (int k = 0; k < arr[0].length; k++){if (arr[j][k] == num){System.out.print(j + k + arr[j][k] + " ");}}}What is printed when num has the value 14 ?
a. 14 14
b. 18 19
c. 16 17
d. 17 16
e. 19 181/1
Answer:
c. 16 17
Explanation:
Given
[tex]num = 14[/tex]
The above code segment
Required
The output
In the code segment, we have the following iterations:
for (int j = 0; j < arr.length; j++) and for (int k = 0; k < arr[0].length; k++)
The above iterates through all the elements of the array.
The if condition is true, only on two occasions
(i) When i = 0; j = 2
(ii) When i = 3; j = 0
i.e.
arr[0][2] = 14
arr[3[0] = 14
So, the result of the print statement is: j + k + arr[j][k]
(i) When i = 0; j = 2
j + k + arr[j][k] = 0 + 2 + 14 = 16
(ii) When i = 3; j = 0
j + k + arr[j][k] = 3 + 0 + 14 = 17
Hence, (c) 16 17 is true
Which one is the answer for the question.
Answer:
if/else statement
Explanation:
If the condition specified in the if statement is true, the block of code at the if statement is run. If not, the code at the else statement is run.
When creating loyal customers you must develop all of the following except: a. Smooth relationships b.customer marketing c. Dedicated employees d. Memorable services
Answer: I think a
Explanation: sorry I’m in wrong, have a great day!! :D
All software, services and protocols not required by the system or necessary being disabled or not installed is called:____.
a. simplicity.
b. isolation.
c. encapsulation.
d. minimization.
Answer: Minimization
Explanation:
All the software, services and protocols
that's not required by the system or necessary being disabled or not installed is referred to as minimization
Minimization simply has to do with the uninstalling of the software that's useless and that's not using up the protocols as well.
Therefore, the correct option is D.
Name the processes that the information processing cycle consist of:
Answer:
Hello Dear!...Explanation:
The information-processing cycle consists of four basic operations: input, processing, output, and storage.
Hope that helps you Buddy..
Buhbye!
Take care!
The following truth table matches which boolean condition?
A B ?
1 1 1
1 0 1
0 1 0
0 0 1
A && ( A || B)
A || ( !A && !B)
A && ( A && B)
!A && ( A || !B)
A || ( A || B)
Consider the following class:
public class Thingy implements Comparable {
private int val;
public Thingy() {
this(0);
}
public Thingy(int t) {
val = t;
}
}
Which of the following methods must be included so this class can be instantiated?
a. compareTo
b. equals
c. indexOf
d. size
e. toString
Assume that x and y are boolean variables and have been properly initialized.
(x || y) && !(x && y)
The result of evaluating the expression above is best described as:_____.
A. Always true
B. Always false
C. True only when x is true and y is true
D. True only when x and y have the same value
E. True only when x and y have different values
You have created the following set of classes: Bus, Car, Scooter, Train, and Vehicle. Which would you choose to be the abstract class?
A. Bus
B. Car
C. Scooter
D. Train
E. Vehicle
Consider the method definition:
public static String analyzeTemps(int temps [], int avg) {
int above = 0;
int below = 0;
for(int i =0; i < temps.length; i++) {
if (temps[i] > avg)
above++;
if (temps[i] < avg)
below++;
}
if (above > below)
return "Hotter than normal";
if (above < below)
return "Cooler than normal";
return "Temperatures normal";
}
What is returned by the following?
int temps [] = {82 , 73 , 77 , 79 , 86 , 88 , 76 , 78 , 83};
System.out.println(analyzeTemps(temps, 81));
4
5
Cooler than normal
Hotter than normal
Temperatures normal
Consider the following code:
int list [] = /* missing code */;
int val = /* missing code */;
int n = -1;
for (int i = 0; i < list.length; i++) {
if (val == list[i]) {
n = i;
break;
}
}
What algorithm is shown?
A. Binary Search
B. Insertion Sort
C. Merge Sort
D. Selection Sort
E. Sequential Search
Suppose a child class has overridden a method of its parent class. What key word does the child class use to access the method in the parent class?
a. child
b. parent
c. static
d. super
e. this
What two methods from Object are often overridden?
a. add, compareTo
b. add, remove
c. toString, add
d. toString, equals
e. toString, compareTo
Consider the following class:
public class FrozenDesert{
public FrozenDesert() {
System.out.println("Yum");
}
}
You write a class, FrozenYogurt, which extends FrozenDesert. Which of the following is a correct implementation of the constructor for FrozenYogurt?
I. public FrozenYogurt() {
System.out.println("I'm the new ice cream");
super();
}
II. public FrozenYogurt() {
super();
System.out.println("I'm the new ice cream");
super();
}
III. public FrozenYogurt() {
super();
System.out.println("I'm the new ice cream");
}
a. I only
b. II only
c. III only
d. I and II
e. I, II and III
The constant in the Integer wrapper class that represents the smallest int value is ______.
A. MIN
B. MIN_VALUE
C. SMALL_INT
D. SIZE
E. Integer.MAX
Answer:
1 a
2 c
3 a
4 a
5c
6 b
7 a
8 c
Explanation:
The mass percent of hydrogen in CH₄O is 12.5%.Mass percent is the mass of the element divided by the mass of the compound or solute.
What is the mass percent?Mass percent is the mass of the element divided by the mass of the compound or solute.
Step 1: Calculate the mass of the compound.
mCH₄O = 1 mC + 4 mH + 1 mO = 1 (12.01 amu) + 4 (1.00 amu) + 1 (16.00 amu) = 32.01 amu
Step 2: Calculate the mass of hydrogen in the compound.
mH in mCH₄O = 4 mH = 4 (1.00 amu) = 4.00 amu
Step 3: Calculate the mass percent of hydrogen in the compound.
%H = (mH in mCH₄O / mCH₄O) × 100%
%H = 4.00 amu / 32.01 amu × 100% = 12.5%
The mass percent of hydrogen in CH₄O is 12.5%.
CO2 = 1.580 grams H2O = 0.592 grams Lookup the molar mass of each element in the compound Carbon = 12.0107 Hydrogen = 1.00794 Oxygen = 15.999 Calculate the molar mass of CH4O by adding the total masses of each element used. 12.0107 + 4 * 1.00794 + 15.999 = 32.04146 Now calculate how many moles of CH4O you have by dividing by the molar mass. m = 1.15 g / 32.04146 g/mole = 0.035891 mole Now figure out how many moles of carbon and hydrogen you have. Carbon = 0.035891 moles Hydrogen = 0.035891 moles *
Therefore, The mass percent of hydrogen in CH₄O is 12.5%.
Learn more about mass percent here:
https://brainly.com/question/5295222
#SPJ5
what are the six command groups in powerpoint
Answer:
Clipboard, Slides, Font, Paragraph, Drawing, and Editing
what happens when you run a program in Python?
Explanation:
The python virtual machine executes the byte codes. The Python interpreter performs following tasks to execute a Python program : Step 1 : The interpreter reads a python code or instruction. Then it verifies that the instruction is well formatted, i.e. it checks the syntax of each line.
Answer:
Hello There!!
Explanation:
It doesn't convert the code into a machine code instead it converts it to a byte code.The python virtual machine executes the byte codes.
hope this helps,have a great day!!
~Pinky~
what is execution unit ?
Answer:
In computer engineering, an execution unit (E-unit or EU) is a part of the central processing unit (CPU) that performs the operations and calculations as instructed by the computer program.
Site at least 3 articles of impact of internet that affect in our daily lives.
Answer:
Here are 5 ways IOT already affects our lives today.
Transportation. AT&T just added 2.1 million new wireless lines last quarter, but only about half of them were for people. ...
Health and Exercise. ...
Home. ...
Business. ...
Pollution and Waste Management.
Explanation:
Select the correct answer from each drop-down menu. What is the purpose of the domain name?
The domain name BLANK is an example of a service provider. The domain name.gov.nz is an example of a BLANK government website.
Awnser the blanks
the first blanks options are .net, .com, .gov,.org.
options for blank 2 are New York, New Zealand, news, commercial
Hurry pls
Answer:
First Blank: .net
Second Blank: New Zealand
Examine about the Internal & External Fragmentation methods give an example for each. essay
Internal Fragmentation occurs when a process needs more space than the size of allotted memory block or use less space. External Fragmentation occurs when a process is removed from the main memory. Internal Fragmentation occurs when Paging is employed. External Fragmentation occurs when Segmentation is employed.
A bigger chunk of RAM is set aside for the process. Some memory is left unused because it cannot be utilised by another function. By properly allocating the smallest division that is yet large enough for the process, internal fragmentation can be reduced.
When there is a mismatch between the quantity of memory needed and the amount of memory that is actually available, internal fragmentation becomes a problem.
When paging is used, internal fragmentation occurs.
When memory allocations are made but chunk sizes are fixed, internal fragmentation follows.
Internal process fragmentation occurs when a process consumes less memory or uses more than the allocated memory block can hold.
External FragmentationAlthough the total RAM is large enough to accommodate a process or handle a request, we are unable to use it since it is not contiguous. To lessen external fragmentation, we can condense or shuffle memory to free up a substantial amount of space. For compaction to be useful, relocation must be dynamic.
Internal fragmentation is largely controlled via Best Fit Block Search.
External fragmentation is fixed through compaction.
When the size of the allotted memory blocks fluctuates, external fragmentation occurs.
When segmentation is used, external fragmentation happens.
When small, non-contiguous memory blocks cannot be assigned to any process, external fragmentation results.
An affected process is deleted from the main memory as a result of external fragmentation.
What website or search engine that helps people find the web pages that they are looking for by tying in the subject they want?
Amazon can be use to search
Overview
To understand and make use of any database system, you must learn various techniques associated with the fundamental operations of create, read, update, and delete (CRUD). For this assignment, you will begin by creating databases of document collections and performing basic reading or querying operations to retrieve specific documents from the database system. You will also gain practice updating documents and subdocuments, and removing documents from a database. You will use the mongo shell and mongoimport commands to complete this assignment. Note: Since this is the only assignment for Module Two, it is longer than a typical assignment. Be sure to begin working on this early in the week.
Prompt
After completing the textbook reading and reviewing the mongoimport tool documentation in the module resources, complete the following tasks using the mongo shell in Apporto.
1. The data set for this assignment, city_inspections.json, has already been loaded into the Apporto environment for you. Using the mongoimport tool, load the database "city" with documents found in the city inspections.json file into the "inspections" collection. Complete this by typing the following commands in the Linux terminal to perform the import in the right directory:
cd /usr/local/datasets/ #change into the Apporto directory with the data sets mongoimport --db city --collection inspections ./city_inspections.json #mongo import utility
TIP: In any Linux systems, commands must be exact and use proper syntax and case sensitivity.
2. Verify your load by switching to the "city" database and issuing the following queries in the mongo shell:
a. db. inspections.find({"id" : "10021-2015-ENFO"})
b. db. inspections.find({"result": "Out of Business"}, {"business_name":1}). limit(10)
Provide screenshots of the results as evidence.
3. Using the appropriate commands in the mongo shell, insert a document to the database named "city" within the collection named "inspections." Use the following key-value pairs as data for your document.
Key Value
id "20032-2020-ACME"
certificate number 9998888
business name ACME Explosives"
date Today's date
result "Business Padlocked"
sector "Explosive Retail Dealer-999"
address number -> 1721
street-> Boom Road
city -> BRONX
zip -> 10463
Be sure the address is inserted as a sub-document, and use the JavaScript function Date() for "Today's date." Verify your database creation and insertion using the findOne() function in the mongo shell. Provide a screenshot as evidence.
4. Answer the following questions using MongoDB queries.
a. What is the distinct list of inspection "sector in the current inspections collection? How many are in the list? Do not count by hand.
b. What is the difference in the date data type for the business named "AUSTIN 2012" versus your business document insertion of "Acme Explosives"?
c. How many businesses have a "Violation Issued"? (See Value column above).
Verify by providing screenshots of the queries and results as evidence.
5. Using the appropriate command in the mongo shell, update the document with the ID "20032-2020-ACME" in the collection "inspections" in the database "city" with the information below.
Key Value
business_name "New ACME Flowers"
result "Business Re-opened"
comments "Flowers after the explosion"
Verify your database update using the appropriate find() function in the mongo shell. Provide a screenshot as evidence.
6. Using the database "City" with documents found in the "inspections" collection, perform the tasks listed below. Verify by providing screenshots of the results as evidence.
a. Update all the documents that contain the key-value pair "city": "ROSEDALE" in the address subdocument by changing the zip code in the address subdocument to "76114".
b. Remove the first document with the key-value pair "result":"Violation Issued."
Guidelines for Submission
Submit a Word document containing all of your screenshots. Use a screenshot tool, such as the Snipping Tool, for your screenshots and be sure to enlarge the images in the Word document before submitting. This will help make sure that your screenshots are an appropriate size for your instructor to be able to read them. Refer to this Use Snipping Tool to Capture Screenshots guide for help with taking screenshots.
Answer:
Overview To understand and make use of any database system, you must ... system, you must learn various techniques associated with the fundamental ... you will begin by creating databases of document collections and performing ... You will use the mongo shell and mongoimport commands to complete this assignment.
Explanation:
Which action is performed by crosstab queries and can be handled by creating a query using the Crosstab Query wizard?
Use more than one table or query as a record source.
Use an expression to create fields.
Display data grouped by category.
Add a parameter prompt.
Answer:
The correct option is "Display data grouped by category".
Explanation:
A crosstab query displays the similar data but organizes it horizontally and vertically in order to ensure that the datasheet is more compact and easy to read.
The crosstab query generates a total, average, or other aggregate function. The results are grouped by two sets of values: one on the datasheet's side and the other across the top.
If one set of headers contains date data, the wizard will guide you through the process of grouping the entries by conventional intervals such as months or quarters.
Therefore, the action that is performed by crosstab queries and can be handled by creating a query using the Crosstab Query wizard is "display data grouped by category".
whats the meaning of debugging?
Answer:
whats the meaning of debugging?
Answer : Debugging is the routine process of locating and removing computer program bugs, errors or abnormalities, which is methodically handled by software programmers via debugging tools.
This is the Answer for your question :3
I hoped I helped you :3
I hope you are having a great day ❤️❤️❤️❤️
The World Health Organization decided that addiction to video games is considered a mental health disorder. Do you agree or disagree?
What responsibility, if any, do game designers have to ensure that users do not misuse their games?
(I’m mainly looking for an answer to the second bit, thank you! ^^)
Answer:
I disagree and I will tell you why because there was study based on video games and seniors and the theory was that they play games to keep there minds active. I will give you an example let's say you were in a situation and you learned how to make or create something from playing video games, in closeur video games can help us in problems
StringReverser
Given the following code that creates a Scanner and gets a String from the user, finish the code so that the program will:
Output the provided String, input, backwards
Note that the answer should be one phrase - the reverse of input.
The use of an additional method is optional.
SAMPLE OUTPUT
======================
Enter a word or phrase:
this is a test
REVERSED:
tset a si siht
Answer:
Explanation:
The following code is written in Java, it uses the scanner import to take in a string from the user. Then it uses the string builder import to use the input string and reverse it. Finally outputting the reversed string. The output can be seen in the attached picture below.
import java.util.Scanner;
class Brainly
{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter a string: ");
String answer = in.nextLine();
StringBuilder sb=new StringBuilder(answer);
sb.reverse();
System.out.println("Reversed: \n" + sb.toString());
}
}
Write one line of code to declare a 'Path' reference variable named: pathobject4 AND create the object by calling the 'Paths' class method get and passing it: C:/programs/values.dat Write one line of code to declare a Scanner reference variable named: my_input AND create the object passing the constructor the variable: fileobject3
Answer:
Explanation:
Using Java as the programming language of choice, the exact implementation of what is asked in the question would be the following, it would also need the file location to be exact and the imports in order to work.
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
class Test
{
public static void main(String[] args)
{
Path paths = new Paths("C:/programs/values.dat");
Scanner my_input = new Scanner(fileobject3);
}
}
(a)
The computer network that covers the whole city is called
Answer:
A metropolitan area network, or MAN, consists of a computer network across an entire city, college campus or small region. A MAN is larger than a LAN, which is typically limited to a single building or site. Depending on the configuration, this type of network can cover an area from several miles to tens of miles.
Explanation:
Suppose that three different processes, P1, P2, and P3, share the variables x and y and execute the following code fragments concurrently, and that the initial value of y is 8. The instructions to add and subtract in memory are not atomic.
P1: P2: P3:
x = y; x = y; x = y;
x = x + 1; x = x - 1; x = x - 1;
y = x; y = x; y = x;
Which of the following values of y are possible after all three processes finish executing their code fragments?
a. 5
b. 6
c. 7
d. 8
e. 9
f. 10
Answer:
c. 7
Explanation:
The initial value of the y is 8. When the instructions are inserted in the memory the coding will change its value and the new value for the y will be different from the initial value. The different is due to the instruction in the memory which are not atomic and the process finishes the execution of the command. The new value will be y - 1 which means 8 -1 = 7.
1. Write code to make a paragraph 'YELLOW' in color?
Answer:
I will assume html.
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
<style>
#p {
color: rgb(255,255,0)
}
</style>
</head>
<body>
<p id="p">YELLOW</p>
</body>
</html>
Explanation:
Which is the correct option? Please explain
Answer:
A
Explanation:
Just to make sure it is not a scam.