Answer:
The function in Python is as follows:
def rotateRight(strng, d):
lent = len(strng)
retString = strng[lent - d : ] + strng[0 : lent - d]
return retString
Explanation:
This defines the function
def rotateRight(strng, d):
This calculates the length of the string
lent = len(strng)
This calculates the return string
retString = strng[lent - d : ] + strng[0 : lent - d]
This returns the return string
return retString
Addition:
The return string is calculated as thus:
This string is split from the index passed to the function to the last element of the string, i.e. from dth to last.
The split string is then concatenated to the beginning of the remaining string
An infographic displays the relative frequencies of the 100 most common emojis used in text messaging for each of the last 12 months. Which of the following conclusions cannot be drawn from such a representation of emoji usage?
a. You can determine the growth or decline in popularity of a particular emoji.
b. You can determine what percentage of text messages contains a particular emoji.
c. You can determine how long the most popular emoji has held the #1 position.
d. You can determine the average age of emoji users based on emoji use.
Answer:
d. you can determine the average age of emoji users based on emoji use.
Explanation:
The infographic displays 100 most common emoji used in text messaging. This information can be used to determine percentages of text message which contains particular emoji. This details can not determine the age of emoji user based in emoji use.
Trình bày phép biến đổi tịnh tiến và quay quanh trục tọa độ? Hãy xác định ma trận chuyển đổi của các phép biến đổi sau :
H = trans(3,7,2). Rot(x,30).Rot(z,45)
Answer:B
Explanation: she she
For minimization problems, the optimal objective function value to the LP relaxation provides what for the optimal objective function value of the ILP problem?
Answer:
A lower bound on the optimal integer value.
Explanation:
The question is poorly typed. The original question requires the optimal solution of the objective function of a minimization problem
I will answer this question base on the above illustration.
When an objective function is to be minimized, it means that the objective function will take the feasible solution with the least value.
The least value are often referred to as the lower bound.
Create a file named A10.java. Place all your code in this file. Create a publicstatic ArrayList of integers named intList.
Define a public static method addNumber(int i) that adds ito your list.
Exercise 2
Create a publicstatic HashMap of integers,integers namedintMap.
Define a public static method addPair(int i,int j) that adds i,jto your HashMap (make ithe key and j the value).
Explanation:
The file named as A10.java has been attached to this response. It contains the source code for the exercises. The source code contains comments explaining important parts of the code.
A few things to note;
i. To add an item to an arraylist, the add() method is used. For example to add an integer 7 to the arraylist named intList, simply write;
intList.add(7);
ii. To add an item to a hashmap, the put() method is used. The put method receives two parameters which are the key and value respectively. The key is a form of identifier used to store or retrieve a particular value in a hashmap. To store an integer 8 with a key of 5 in a hashmap named intMap, for example, simply write;
intMap.put(5,8);
Which of the following CALL instructions writes the contents of EAX to standard output as a signed decimal integer?
a. call WriteInteger
b. call WriteDec
c. call WriteHex
d. call WriteInt
Answer:
d. call WriteInt
Explanation:
Required
Instruction to write to decimal integer
Of the 4 instructions, the call WriteInt instruction is used write to a decimal integer.
This is so, because the WriteInt instruction writes a signed decimal integer to standard output.
This implies that the output will have a sign (positive or negative) and the output will start from a digit other than 0 (i.e. no leading zero)
Which report views shows how the report will look in print and enable you to make modifications to the print settings?
Answer:
Print preview
Explanation:
In Microsoft access the report view that will show you an accurate picture of what your print out will look like before it is printed is : Print preview
Microsoft access is a relational database that allows the usage and storage of information in and organization
what is graphical browser ?
Answer:
Graphical browsers display text, images, and other web applications including video and audio files (as compared with text-only browsers).
The number of host addresses are available on the network 172.16.128.0 with a subnet mask of 255.255.252.0. Show the calculations.
Answer:
adress: 10101100.00010000.1 0000000.00000000
netmask: 11111111.11111111.1 0000000.00000000
Network: 172.16.128.0/17 10101100.00010000.1 0000000.00000000 (Class B)
Explanation:
ex: 10 -> 00001010
200 ->11001000
We will find an video named????
Help us and select once name.
Complete: B__in___t
What is scrum of scrum
Answer: scrum
Explanation:
Answer:
The Scrum of Scrums is a time-boxed session in which a representative from each Team shares high-level updates on their respective team's work and articulates their progress and impediments. Ideally, it should follow the various teams' Daily Stand-ups, so that the latest information is communicated.
hope that helps bby<3
Several families are planning a shared car trip on scenic drives in New Hampshire's White Mountains. To minimize the possibility of any quarrels, they want to assign individuals to cars so that no two members of a family are in the same car. Explain how to formulate this problem as a network flow problem.
Answer:
Following are the response to the given question:
Explanation:
Build a spring, sink, vertices, and vertices for each car for a household. Every unit in the stream is a human. Attach the source from each vertical of a family with such a capacity line equivalent to the family size; this sets the number of members in each household. Attach every car vertices to the sink with the edge of the car's passenger belt; this assures the correct number of people for every vehicle. Connecting every vertex in your household to any vertex in your vehicle with a capacity 1 border guarantees that one family member joins a single car. The link between both the acceptable allocation of people to vehicles as well as the maximum flow inside the graph seems clear to notice.
Compute the approximate acceleration of gravity for an object above the earth's surface, assigning accel_gravity with the result.
The expression for the acceleration of gravity is: (G*M)/(d2), where G is the gravitational constant 6.673 x 10-11, M is the mass of
the earth 5.98 x 1024 (in kg), and d is the distance in meters from the Earth's center (stored in variable dist_center)
Sample output with input: 6.3782e6 (100 m above the Earth's surface at the equator)
Acceleration of gravity: 9.81
Answer:
The summary of the given query would be summarized throughout the below segment. The output of the question is attached below.
Explanation:
Given values are:
[tex]G = 6.673e-11[/tex][tex]M = 5.98e24[/tex][tex]accel \ gravity = 0[/tex][tex]dist\ center=float(inp())[/tex]here,
inp = input
By utilizing the below formula, we get
⇒ [tex]\frac{GM}{d^2}[/tex]
Now,
⇒ [tex]accel \ gravity=\frac{G\times M}{dist \ center**2}[/tex]
⇒ print("Acceleration of gravity: {:.2f}".format(accel_gravity))
A python code only runs the except block when _____. Group of answer choices all the statements in the try block are executed an error occurs in the preceding try block the programmer manually calls the except block an error occurs anywhere in the code
Answer:
Python only running exception block when try block fails
Explanation:
i do cyber security and i was learning this in high school
In Python, try and except statements are used to catch and manage exceptions. Statements that can generate exceptions were placed within the try clause, while statements that handle the exception are put within the except clause.
An exception should be caught by except block, which is used to test code for errors that are specified in the "try" block. The content of the "except" block is executed if such a fault/error appears.In Python, the exception block only runs when an error occurs in the try block.Therefore, the answer is "try block fails ".
Learn more:
brainly.com/question/19154398
what is the Is option that prints the author of a file
Answer:
Print.. is your answer...
bao bì chủ động active packaging và bao bì thông minh intelligent packaging khác biệt như thế nào
answer:
yes....................
LAB: Winning team (classes)
Complete the Team class implementation. For the class method get_win_percentage(), the formula is:
team_wins / (team_wins + team_losses)
Note: Use floating-point division.
Ex: If the input is:
Ravens
13
3
where Ravens is the team's name, 13 is the number of team wins, and 3 is the number of team losses, the output is:
Congratulations, Team Ravens has a winning average!
If the input is Angels 80 82, the output is:
Team Angels has a losing average.
------------------------------------------------------------------------------------------------------------------------------------
We are given:
class Team:
def __init__(self):
self.team_name = 'none'
self.team_wins = 0
self.team_losses = 0
# TODO: Define get_win_percentage()
if __name__ == "__main__":
team = Team()
team_name = input()
team_wins = int(input())
team_losses = int(input())
team.set_team_name(team_name)
team.set_team_wins(team_wins)
team.set_team_losses(team_losses)
if team.get_win_percentage() >= 0.5:
print('Congratulations, Team', team.team_name,'has a winning average!')
else:
print('Team', team.team_name, 'has a losing average.')
Please help, in Python!
Answer:
The function is as follows:
def get_win_percentage(self):
return self.team_wins / (self.team_wins + self.team_losses)
Explanation:
This defines the function
def get_win_percentage(self):
This calculates the win percentage and returns it to main
return self.team_wins / (self.team_wins + self.team_losses)
See attachment for complete (and modified) program.
Answer: def get_win_percentage(self):
Explanation: got it right on edgen
which feature of organisations to manage needs to know about to build and use information system successfully
The correct answer to this open question is the following.
The feature of organizations to manage needs to know about to build and use information system successful is the following.
Managers of successful organizations should know that companies have hierarchies and different structures in which these companies are organized.
Every company use systems and procedures that could be specialized to the degree the company requires. For that system to function, they have to be perfectly interconnected to all the areas of the company. The goal: to maximize efficiency and accomplish the goals.
Systems and procedures should take into consideration the culture and diversity of the workplace. There are interest groups in every organization that have special characteristics and requirements that have to be taken into consideration to create a much better system.
Good managers must be aware of these elements, and the different roles, goals, management styles, tasks, incentives, and departmental structure of the company so the system can better serve the purpose of the entire organization.
Explain in details:
(i) Deadlock
(ii) File manager
(iii) Process
(iv) Multiprogramming
(v) Software Classification
(vi) Virtual memory
Answer and Explanation:
Deadlock occurs when two operating systems on the same computer are hindering each other's execution, getting blocked, waiting for each one to run first. This can happen when a preemption has not occurred, when a mutual exclusion has occurred, or when one of the systems causes the other to not execute.
File manager is software that allows a computer user to create directories and organize files inside and outside of them.
Process is the term used to determine the functioning of computer software. When a software is started, it uses its own programming code to perform a specific activity.
Multiprogramming is the term used for the moment when an operating system allows the user to run more than one software at the same time. For this to happen, the computer needs to have a high processing capacity, to handle the effort of running several software simultaneously.
Software Classification is the process that determines the composition and different aspects that make up a software. In this way, it is possible to understand the usefulness and programming of this software.
Virtual memory is the use of secondary memory for caching. This allows the user to share files more securely and quickly, in addition to alleviating the problems that limited memory presents.
Ten examples of an interpreter
Answer:
Some popular examples of today's interpreters are:
Interpreter of PythonInterpreter for RubyPerl performerInterpreter for PHPMATLAB UCSD PascalExplanation:
An interpreter executes the commands directly in an object code or a machine code, written in a program or a scripting language.
The Interpreter can be referred to as system software that can read and execute the programme instead of interpreting programmes. This interpretation includes high-level source code, pre-compiled programmes and scripts.
It is important to note that the interpreter translates programme by programme line, meaning that one statement is translated on one go. This feature makes it easy for programmers to check any line on debugging but slows the whole programme running time.
What has happened (or is still happening) to make this speech occur? armageddon
Answer:
Are you talking about the bruce willis is superman basically? Because if so i don't think so because that is a future event that hasn't happened yet also that film sucks.
Explanation:
Which orientation style has more height than width?
Answer:
"Portrait orientation" would be the correct answer.
Explanation:
The vertical picture, communication as well as gadget architecture would be considered as Portrait orientation. A webpage featuring portrait orientation seems to be usually larger than large containing lettering, memo abases as well as numerous types of content publications.One such volume fraction also becomes perfect for impressionism depicting an individual from either the top.Thus the above is the correct answer.
Given that EAX contains FFFF80C0h, which of the following would be true after executing the CWD instruction?
a. AX=FFFFh, DX=80C0h
b. EDX=FFFFFFFFh, EAX=FFFF80C0h
c. DX=FFFFh, AX=80C0h
d. cannot be determined
Answer:
c. DX=FFFFh, AX=80C0h
Explanation:
CWD instruction set all bits in DX register with same sign as in AX register. The effect is to create a 32 bit sign result. This will have same integer value as of 16 bit.
Consider an array inarr containing atleast two non-zero unique positive integers. Identify and print, outnum, the number of unique pairs that can be identified from inarr such that the two integers in the pair when concatenated, results in a palindrome. If no such pairs can be identified, print -1.Input format:Read the array inarr with the elements separated by ,Read the input from the standard input streamOutput format;Print outnum or -1 accordinglyPrint the output to the standard output stream
Answer:
Program.java
import java.util.Scanner;
public class Program {
public static boolean isPalindrome(String str){
int start = 0, end = str.length()-1;
while (start < end){
if(str.charAt(start) != str.charAt(end)){
return false;
}
start++;
end--;
}
return true;
}
public static int countPalindromePairs(String[] inarr){
int count = 0;
for(int i=0; i<inarr.length; i++){
for(int j=i+1; j<inarr.length; j++){
StringBuilder sb = new StringBuilder();
sb.append(inarr[i]).append(inarr[j]);
if(isPalindrome(sb.toString())){
count++;
}
}
}
return count == 0 ? -1 : count;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.next();
String[] inarr = line.split(",");
int count = countPalindromePairs(inarr);
System.out.println("RESULT: "+count);
}
}
Explanation:
OUTPUT:
A network technician is planning to update the firmware on a router on the network. The technician has downloaded the file from the vendor's website. Before installing the firmware update, which of the following steps should the technician perform to ensure file integrity?
a. Perform antivirus and anti-malware scans of the file.
b. Perform a hash on the file for comparison with the vendor’s hash.
c. Download the file a second time and compare the version numbers.
d. Compare the hash of the file to the previous firmware update.
Answer: B. Perform a hash on the file for comparison with the vendor’s hash.
Explanation:
Before installing the firmware update, the step that the technician should perform to ensure file integrity is to perform a hash on the file for comparison with the vendor’s hash.
Hashing refers to the algorithm that is used for the calculation of a string value from a file. Hashes are helpful in the identification of a threat on a machine and when a user wants to query the network for the existence of a certain file.
9- Which type of view is not present in MS
PowerPoint?
(A) Extreme animation
(B) Slide show
(C) Slide sorter
(D) Normal
Answer:
A.Extreme animation
hope it helpss
In a relational database, the three basic operations used to develop useful sets of data are:_________.
a. select, project, and join.
b. select, project, and where.
c. select, from, and join.
d. select, join, and where.
In a relational database, the three basic operations used to develop useful sets of data are:
[tex]\sf\purple{a.\: Select, \:project,\: and\: join. }[/tex]
[tex]\large\mathfrak{{\pmb{\underline{\orange{Mystique35 }}{\orange{❦}}}}}[/tex]
The basic operations used to develop useful sets of data in relational database are Select, Project and Join.
The Select and Project are of important use in selecting columns or attributes which we want to display or include in a table. The join function allows the merging of data tables to form a more complete and all round dataset useful for different purposes.Hence, the basic operations are select, project, and join.
Learn more : https://brainly.com/question/14760328
What do application in productivity suites have in common
Answer:
The function of the suites application is to create presentations and perform numerical calculations.
Explanation:
what's the difference between pseudo code and natural language
Answer:
The pseudo-code describes steps in an algorithm or another system in plain language. Pseudo-Code is often designed for human reading rather than machine reading with structural conventions of a normal language of programming.
Natural languages consist of phrases, usually declarative phrases, with a sequence of information.
Explanation:
Pseudo-Code is often designed for human reading rather than machine reading with structural conventions of a normal language of programming. It usually omits information that is essential to the understanding of the algorithm by the machine, for example, variable declarations and language code.Easily human, but not machines, use the natural languages (like English).Natural languages also are creative. Poetry, metaphor, and other interpretations are permitted. Programming permits certain style differences, but the significance is not flexible.The aim of using pseudo-code is to make it easier for people to comprehensibly than standard programming language code and to describe the key principles of an algorithm efficiently and environmentally independently. It is usually used for documenting software and other algorithms in textbooks and scientific publications.what is the meaning of photography
[tex] \sf\underline{ Photography} \: is \: the \: way \: / \: process \: / \: art \\ \sf \: of \: taking \: beautiful \: pictures \\ \sf \: usually \: of \: amazing \: sceneries \: (it \: can \: be \: of \: other \: \\ \sf things \: as \: well) \: for \: visual \: pleasure. \: The \: attached \: picture \\ \sf \: is \: an \: example \: for \: a \: good \\ \sf\: type \: of \: photography. \: A \: person \: who \: practices \: the \: \\\sf art \: of \: photography \: is \: known \: as \: a \: \underline{ photographer}.[/tex]
x-1; while x ==1 disp(x) end, then the result a. infinity or b. (1)
Answer:
1 is the answer because ur trying to trick us
Explanation: