def main():
my_string = input("Enter a sentence: ").lower()
character = ""
count = 0
for x in my_string:
if x.isalpha():
if my_string.count(x)>count:
count = my_string.count(x)
character = x
print("The most popular character,",character,"appears",count,"time(s)")
main()
I wrote my code in python 3.8. I hope this helps
The program which will let the user enter a string and displays the character will be written in computer language.
What is programming?The process of producing a set of instructions that tells a computer how to complete a task is known as programming. Computer programming languages such as JavaScript, Python, and C++ can be used to create programs. Programming is widely regarded as one of the most difficult disciplines to master.
def main():
my_string = input("Enter a sentence: ").lower()
character = ""
count = 0
for x in my_string:
if x.isalpha():
if my_string.count(x)>count:
count = my_string.count(x)
character = x
print("The most popular character,", character,"appears",count,"time(s)")
main()
Therefore, the coding for the given program is written above.
To learn more about programming, refer to the link:
https://brainly.com/question/11023419
#SPJ5
You are running your warehouse using Autonomous Data Warehouse (ADW) service and you noticed that a newly configured batch job is always running in serial even through nothing else is running in the database. All your jobs are configured to run with parallelism enabled.What could be the reason for this batch job to run in serial?A. The batch job depends on only one table and parallelism cannot be enabled on single-table queries.B. The parallelism of batch job depends on the number of ADW databases involved in the queryC. The new batch job is connected to LOW consumer group.D. The new batch job runs on database tables that are not enable for parallel execution.E. Parallelism on the database is controlled by the application, not the database.
Answer:
C. The new batch job is connected to the LOW consumer group.
Explanation:
Remember, one of the main characteristics of the LOW consumer group database service is that queries would run serially.
Since in this case, we are told that the newly configured batch job is always running in serial, it most likely would be because the new batch job is connected to the LOW consumer group; as queries are designed to always run serially.
Finish the code to search for a 7 in the array.
from array import *
myArr = array('f',[3, 5, 7.3, 10])
location = myArr.
(7)
Answer:
The complete code is as follows:
from array import *
myArr = array('f',[3, 5, 7,3, 10])
location = myArr.index(7)
print(str("7")+" is at position "+str(location+1))
Explanation:
I made corrections to the third line of the code and I added a line
This line gets the index of 7 from the array myArr using the index keyword
location = myArr.index(7)
This line prints the position of the 7 in the array
print(str("7")+" is at position "+str(location+1))
What technique is used when setup times at a workstation are sequence dependent?
Answer:
johnsons rule minimizes total idle time for both machines or work centers. What technique is used when setup times at a workstation are sequence dependent? determine the total time of each job sequence permutation considering the setup time and choose the best (lowest) time.
Explanation:
please mark me as brainliest thank you
what are the use of computer at office?
Answer:
playing games XD
Explanation:
hahahahahahahahhaha
Answer:
Some of the many uses of computers in office work are writing letters, sending emails, scheduling meetings and collaborating with co-workers and clients. This has extended to mobile devices, which professionals now use to read and respond to email, access business files, update social media and more.
Explanation:
What are 5 good movies like The Breakfast Club or 8 Mile?
Answer:
The Notebook, Beauty and the Beast, Step Brother, The Breakfast Club and The Little Mermaid
Explanation:
Answer:
Avatarlife of piThe Dark knightpirates of Caribbeanbeauty and beastWhen writing code, how can printing be useful?
Answer:
See Explanation
Explanation:
Printing while writing code can be useful in several ways.
One of which is to determine the progress of your code. Many a times when you write a code and some parts of your codes are not working as expected, you can use the print statement to track where the program stopped working properly.
Take for instance, you write a program of 50 lines of code and you suspect that the program stops working at line 30, you can use the print statement to track this program.
Please note that: the statement to be printed is not specific but you should make use of something unique that you can easily spot.
E.g
print("It worked up till this point")
in spoofing internet attack, the attackers computer assumes false internet address in order to gain access to a network (true or false
Answer:
True.
Explanation:
Cyber security can be defined as preventive practice of protecting computers, software programs, electronic devices, networks, servers and data from potential theft, attack, damage, or unauthorized access by using a body of technology, frameworks, processes and network engineers.
Some examples of cyber attacks are phishing, zero-day exploits, denial of service, man in the middle, cryptojacking, malware, SQL injection, spoofing etc.
Spoofing can be defined as a type of cyber attack which typically involves the deceptive creation of packets from an unknown or false source (IP address), as though it is from a known and trusted source. Thus, spoofing is mainly used for the impersonation of computer systems on a network.
Hence, in spoofing internet attack, the attacker's computer assumes false internet address in order to gain access to a network.
+
Which of the following telecommunications careers requires the completion of a master's degree?
line installer
network risk analyst
computer administrator
network administrator
Answer:
Network administrator
Answer:
Network Risk Analyst
Explanation:
Edg2021
Its in the AV Tech Notes
Consider the following code segment which makes use of the list deck and the positive integer i: Which of the following could be displayed when this segment of code is executed, assuming that the block will sort the parameter list in alphabetical order from A to Z, and the user responds to each input? Steve Andrew Kevin Alex Joe Matt Sally Heather Barbie Tim Tim Tim
Answer: A) Steve Andrew Kevin
B) Alex Joe Matt C) Sally Heather Barbie D) Tim Tim Tim
Explanation:
In this exercise we have to use the knowledge of computational language in python to write the following code:
The code can be found in the attached image.
That way, to find it more easily we have the code like:
#Create a list of strings (names).
students = ['Steve" ,"Andrew ","Kevin", "Alex", "Joe ","Matt" , "Sally" ,"Heather ","Barbie" ,"Tim", "Tim", "Tim"]
student_name = "Lupe"
# Add student name to front of the list.
students.insert(0,student_name)
#Show me the new list.
print(students)
See more about python at brainly.com/question/26104476
Three PCs are on an Ethernet LAN, connected by a hub. Describe how the Ethernet protocol deals with collisions in this situation. How would the situation change if the hub were replaced by a switch?
Answer:
All the ports in a hub are in the same collision domain and a hub sends frames from one host to all other hosts in the network. This makes it prone to collision and poor network throughput. Just like a network switch, it uses the CSMA/CD protocol to detect collision in its network.
A network switch reduces its collision domain to just a port and sends frames from one host to another using its mac table as a route. This makes the network very efficient with high throughput. It also uses the CSMA/CD protocol to detect collision
Explanation:
Switches and hubs are used in networking to connect computer devices in a network. A hub is an obsolete device networking that broadcast a frame to all other ports or host in the network except for the send host port. This increases the rate of collision as all the ports in a hub share the same collision domain. A switch is an efficient frame switching device in a network, which uses its MAC table to decide and find a destination host.
CSMA/CD is a collision detection protocol used in a network to detect and prevent a collision. With this protocol, a host is able to listen, wait, send and resend frames to prevent a collision.
Write and test a program that accepts the user’s name (as text) and age (as a number) as input.
The program should output a sentence containing the user’s name and age.
name = input("Enter your name: ")
age = int(input("Enter your age: "))
print("Your name is",name,"and you are",age,"year(s) old.")
I wrote my code in python 3.8. I hope this helps.
Program description:
Defining header file.Defining the main method.In the next step, the character array as "name" and an integer variable "age" is declared that uses the input method to the input value.After input value, a print method is declared that prints value with the message.Program:
#include <stdio.h>//header file
int main()//defining main method
{
char name[50];//defining character array as name
int age;//defining integer variable
printf("Enter name: ");//print message
scanf("%s",name);//input name
printf("Enter age: ");//print message
scanf("%d",&age);//input age
printf("Hi.. \%s",name); //print value with message
printf(" your age is %d.",age);//print value with message
return 0;
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/13160158
The following program is suppose to use the sin() function in the math library and write out an input's absolute value over an interval. So for example if sine(0.6) is 0.564 then its absolute value is the same (0.564). But if sine(2.4) is -0.675 then its absolute value is 0.675. #include #include /* has sin(), abs(), and fabs() */ int main(void) { double interval; int i; for(i = 0; i <30; i++) { interval = i/10.0; printf("sin( %lf ) = %lf \t", interval, abs(sin(interval))); } printf("\n+++++++\n"); return 0; }
Answer:
#include <stdio.h>
#include <math.h> /* has sin(), abs(), and fabs() */
int main(void) {
double interval;
int i;
for(i = 0; i <30; i++) {
interval = i/10.0;
printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));
}
printf("\n+++++++\n");
return 0;
}
Explanation:
The C source code defines a void main program that outputs the absolute value of the sine() function of numbers 0.1 to 3.0.
The program is an illustration of loops.
Loops are used to perform repetitive and iterative operations.
The program statements in C language that completes the program are as follows:
interval = i/10.0;
printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));
The flow of the above statements is as follows
The first line determines the intervalThe second line prints the required output
Read more about similar programs at:
https://brainly.com/question/14575844
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
Answer:
(A) Always true
Explanation:
Given
Boolean variables x and y
Required
What is (x && y) || !(x && y)
Irrespective of what x or y is, the x && y is always true
Take for instance:
x = true;
y = true;
x&&y will also be true because the values of x and y were not altered
And this is true for whatever boolean value x or y assume
Having said that:
x&&y = true
So, the expression is analysed as follows:
(x && y) || !(x && y)
Substitute true for x&&y
(true) || !(true)
!(true) = false
So, the expression becomes:
true || false
|| represents the OR operator; and it returns true if at least one of the conditions is true.
By this:
true || false = true
Option (A) Always true answers the question.
Define persuasion. What would you like to persuade your parents to do or think? Explain which of the three goals of persuasive speech you would need to accomplish to achieve this.
Answer:
Persuasive communication is a form of interpersonal communication that aims to influence the communication partner. The primary goal of persuasive communication is to achieve changes in attitudes, but not understanding or exchanging information. Thus, basically, persuasion seeks to convince the receiver of the message of the idea emitted by the sender of the same.
In my particular case, I would like to persuade my parents to let me drive my father's car, which because it is a new car and of a quality model is restricted to me. To do this, I should use the argumentative and probative method, showing his false mistrust of me and proving that I can drive the car without problems.
Answer:
Answers will vary. Persuasion: – The act of convincing or influencing someone to act or think in a particular way. Answers will vary regarding what students would like to persuade their parent to do or think. An action or some change to beliefs, attitudes, values should be discussed. One of the three goals should be listed.
Explanation:
edge21
How do you distinguish between misrepresentation and embellishment of one’s professional accomplishments on a résumé? Provide an example of an embellishment that would not be considered misrepresentation.
A data structure to store trees with an arbitrary number of children at each node is: public class TreeNode / Integer data, TreeNode firstChild; TreeNode nextSibling / Write a recursive Java method to return the leaf node with minimum value given the root of the tree. All elements are unique and if there are no leaf nodes you should return null. Your method signature should be: _______
Answer:
TreeNode minimum(TreeNode root) {
if (root != null) {
if (firstChild == null && nextSibling == null) {
return root;
} else {
TreeNode begin = minimum(root.firstChild);
TreeNode last = minimum(root.nextSibling);
if (begin == false && (last == false || begin.data < last.data)) {
return begin;
} else {
return last;
}
} else {
return null;
}
}
Explanation:
The Java program defines a recursive method called minimum that calls itself twice with the first and last leaf of the treenode as the respective arguments. and returns the minimum value of the treenode if the root argument is not undefined.
PLZ HELP What will be the output? class num: def init (self.a): self. number = a mul* __(self. b) return self. number + b. number numA = num(5) nunB = num 10 product = numA * numB printiproduct) an error statement 0 50 ( 15
Answer:
15
Explanation:
got it right on edge
The output for the program will be 50 with error statement is 0.50.
What is program?Program is defined as a collection of guidelines that a computer follows to carry out a certain task. Low-level access to system memory is made possible by the procedural and general-purpose nature of the C programming language. To create an executable that a computer can run, a C program needs to be run through a C compiler. A computer programmer can write lines of code that the computer can understand by utilizing a programming language to develop a program.
A & B and the variable a & b are distinct. Thus, the #main program is the only program that functions.
As a result, A = 5 and B = 10, and the answer is
A x B, which equals 5 x 10 = 50.
Thus, the output for the program will be 50 with error statement is 0.50.
To learn more about program, refer to the link below:
https://brainly.com/question/11023419
#SPJ2
helppp pleassseeeee thank youuuu
Answer:
C
Explanation:
Because You don't need indented letters
Which of the following statements shows the relationship between cellular and wireless technology?
Brainliest to the right answer
Both use radio signals to communicate across distances.
Both were built using telephone infrastructure.
The two can be used together
to help people better communicate.
The two can be used together to drive down cost of service.
Answer:
The two can be used to help people better communicate.
Explanation:
Wireless technology doesn't use only radio signals, it uses Bluetooth, infrared, satellite signals and others.
They are both expensive.
Not that every wireless technology was built using telephone, like radio waves
Taylor and Rory are hosting a party. They sent out invitations, and each one collected responses into dictionaries, with names of their friends and how many guests each friend is bringing. Each dictionary is a partial list, but Rory's list has more current information about the number of guests. Fill in the blanks to combine both dictionaries into one, with each friend listed only once, and the number of guests from Rory's dictionary taking precedence, if a name is included in both dictionaries. Then print the resulting dictionary.
Answer:
Following are the code to this question:
def combine_guest(guest1, guest2):#defining a method combine_guest that accepts two dictionary
guest2.update (guest1)#use dictionary guest2 that use update method to update guest2 dictionary
return guest2#return guest2 dictionary values
Rory_guest= { "Ada":2, "Ben":3, "Dav":1, "Jo":3, "Charry":2, "Terry":1, "bob":4}#defining a dictionary and add value
Taylor_guest = { "Dav":4, "Nan":1, "bobert":2, "Ada":1, "Samantha":3, "Chr":5}#defining a dictionary and add value
print(combine_guest(Rory_guest,Taylor_guest))#calling the combine_guest method
Output:
{'Nan': 1, 'Samantha': 3, 'Ada': 2, 'bob': 4, 'Terry': 1, 'Jo': 3, 'Ben': 3, 'Dav': 1, 'Charry': 2, 'bobert': 2, 'Chr': 5}
Explanation:
In the code a method, "combine_guest" is defined, that accepts two dictionaries "guest1, guest2" inside the method, in which the "guest2" dictionary uses the update method to combine the value of the guest1 dictionary and use a return keyword to return guest2 values.
In the next step, two dictionaries are declared, that holds some values and use a print method to call the "combine_guest" method and prints its return values.
Once you start designing the processing logic for each function of your software, you might end up throwing out your logical data model design and completely redesigning it.
a
False
b
True
Answer:
B. True.
Explanation:
Software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications.
An incremental model refers to the process in which the requirements or criteria of the software development is divided into many standalone modules until the program is completed.
Hence, an incremental method typically involves developing a system through repeated cycles and smaller portions at a time, enhancing and evolving the system over time.
A database schema is a structure which is typically used to represent the logical design of the database and as such represents how data are stored or organized and the relationships existing in a database management system. There are two (2) main categories of a database schema; physical database schema and logical database schema.
Hence, once you start designing the processing logic for each function of your software, you might end up throwing out your logical data model design and completely redesigning it because each function would use a specific processing logic respectively.
In this exercise, first run the code as it is given to see the intended output. Then trace through each of the 3 variables to see what is actually going on in memory. Show the values of str1, str2, and str3 and the output after each line of code on a piece of paper.
Answer:
The memory with variable names str1, str2, and str3 all have equal and the same value after the first if-statement.
Explanation:
The str1 was first assigned a null value while the str2 and str3 were assigned the string value "Karen" with the String class and directly respectively. On the first if-statement, the condition checks if the str1 is null and assigns the value of the variable str2 to str1, then the other conditional statement compares the values of all the string variables.
What TCP message will be generated for an incoming SYN request for which is there no matching LISTENING port
Answer:
"Connection Refused"
Explanation:
This is the error message that is returned when the server is not listening on the correct port, or the server is offline.
Cheers.
The TCP message that will be generated for an incoming SYN request for which is there no matching LISTENING port is; “Connection Refused”.
TCP stands for Transmission Control Protocol and in the given situation in the question, the first step of the client application is to send the first packet with “SYN” flag.Now, when the above situation happens, the server will listen on the specified port and give a response of SYN-ACK packet so that it c an acknowledge the “SYN”packet requested by the client application which will generate a reply with ACK packet response that will make the established connection to end.
Finally, for an incoming SYN request for which is there no matching LISTENING port, the connection will be rejected with an “RST” flag that gives output an error message named “Connection Refused”.Read more about TCP at; https://brainly.com/question/24967184
Which of these is a good example of a user persona?
a
"Clippy, the Microsoft Word mascot"
b
"Teenage power-gamer who plays competitively 10+ hours a day"
c
"The U.S. government"
d
"Mom"
Answer:
The answer is "Option a".
Explanation:
The consumer is a sub-personality based on the real customer (or perfect). The people were created to improve marketing activities, through speaking to consumers and dividing up the different demographic and geographic data. In the creation of the user persona, it uses Clippy as the symbol for Microsoft Word.
Answer:
The answer is B
Explanation:
which driver must be running and configured to enable a PC to communicate with a CompactLogix PLC on an Ethernet network
Answer:
EtherNet/Ip
Explanation:
This IP called the EtherNet/IP is an industrial communication network protocol which adapts the CIP fully known as Common Industrial Protocol to standard Ethernet. This is one of the leading industrial protocols in some areas of the world like the US. It is used in industries such as factory, hybrid.
The mode used by this driver is the
Explicitt Messaging of the EtherNet/IP protocol.
Which of the following falls under the role of a web designer?
I. Creating the look and feel of a website
II. Writing the HTML and CSS that bring a site to life
III. Figuring out the best way to display information
IV. Thinking about the user experience
V. Building a website based on a given design
or
all of the above
Answer:
all of the above is the answer
If a variable uses more than one byte of memory, for pointer purposes its address is: Group of answer choices the address of the last byte of storage the average of the addresses used to store the variable the address of the first byte of storage general delivery None of these
Answer:
the address of the first byte of storage.
Explanation:
If a variable uses more than one byte of memory, for pointer purposes its address is the address of the first byte of storage.
A buffer in computer technology can be defined as a temporary area set aside for data storage. Buffers reside in the random access memory (RAM). In the event that, a system process or program places more data (much more than what was originally or initially intended to be allocated for data storage) in a buffer, the extra data overflows. Consequently, this would result in having some of the data to flow into other buffers and thus, causing the data to be overwritten or corruption of the data being held in that buffer.
For instance, we can liken a buffer-overflow to pouring water (data) into a container (program memory), once it is filled the water begins to overflow as the container has reached its maximum amount.
Your company is designing a multi-tenant application that will use elastic pools and Azure SQL databases. The application will be used by 30 customers.
You need to design a storage solution for the application. The solution must meet the following requirements:
✑ Operational costs must be minimized.
✑ All customers must have their own database.
✑ The customer databases will be in one of the following three Azure regions: East US, North Europe, or South Africa North.
What is the minimum number of elastic pools and Azure SQL Database servers required?
Answer:
The minimum number of elastic pools and Azure SQL Database servers required is:
three elastic pools and one Azure SQL Database server.
Explanation:
The above will ensure that the Azure regions of East US, North Europe, or South Africa North are grouped into their three elastic pools. Since cost minimization must be achieved, at the same time, one Azure SQL Database server will be enough to manage the 30 databases required, with one for each customer. Creating more than one Database server will increase the operational costs.
Consider the code block below. What is the value of amount when this method is called twice, the first time using cookieJar(7) and then using cookieJar(22)?
public static int cookieJar(int addCookies) {
int amount = 0;
amount += addCookies;
return amount;
}
A. 7
B. 15
C. 22
D. 29
E. An error occurs
Answer:
C. 22
Explanation:
Given that the argument is being passed by value, there is no memory to consider. So cookieJar(7) returns 7 and cookieJar(22) returns 22.
If the argument parameter was passed by reference or pointer, then perhaps the value from cookieJar(7) would be considered with cookieJar(22).
Note, this code block really isn't doing anything other than returning the value passed into it. The "amount" variable is immediately set to 0, and then the value passed in is added to amount (which is 0), and returns. The following code could replace this function:
public static int cookieJar(int addCookies){
return addCookies;
}
The above code will return an equivalent output to the given code.
Notice, the function is not dependent on any previous call, so the value for each is unique to the call itself, i.e., cookieJar(22) returns 22 and cookieJar(7) returns 7.
So, C. 22 would be correct.
A feedback loop is:
A. a hyperlink to another part of a story.
B. an endless cycle of creation and response.
C. the excitement people feel about networking.
D. the best method for creating a story.
Answer:
c
Explanation:
A feedback loop is the excitement people feel about networking
What is feedback loop?A feedback loop can be used in learning process, where the output or results is used as again as data for another process.
Therefore, A feedback loop is the excitement people feel about networking
Lear more on feedback loop below
https://brainly.com/question/13809355
#SPJ9