Answer:
I am writing a Python program that deletes players from the file whose names whose names do not begin with a vowel which means their names begin with a consonant instead. Since the SomePlayers.txt is not provided so i am creating this file. You can simply use this program on your own file.
fileobj= open('SomePlayers.txt', 'r')
player_names=[name.rstrip() for name in fileobj]
fileobj.close()
vowels = ('a', 'e', 'i', 'o', 'u','A','E','I','O','U')
player_names=[name for name in player_names
if name[0] in vowels]
fileobj.close()
print(player_names)
Explanation:
I will explain the program line by line.
First SomePlayers.txt is opened in r mode which is read mode using open() method. fileobj is the name of the file object created to access or manipulate the SomePlayers.txt file. Next a for loop is used to move through each string in the text file and rstrip() method is used to remove white spaces from the text file and stores the names in player_names. Next the file is closed using close() method. Next vowels holds the list of characters which are vowels including both the upper and lower case vowels.
player_names=[name for name in player_names
if name[0] in vowels]
This is the main line of the code. The for loop traverses through every name string in the text file SomePlayers.txt which was first stored in player_names when rstrip() method was used. Now the IF condition checks the first character of each name string. [0] is the index position of the first character of each players name. So the if condition checks if the first character of the name is a vowel or not. in keyword is used here to check if the vowel is included in the first character of every name in the file. This will separate all the names that begins with a vowel and stores in the list player_names. At the end the print statement print(player_names) displays all the names included in the player_names which begin with a vowel hence removing all those names do not begin with a vowel.
computer hardware is
Answer:
Computer hardware refers to the physical parts of a computer and related devices.
Explanation:
Examples of hardware are: keyboard, the monitor, the mouse and the central processing unit (CPU)
Answer:
As know an computer hardware is all the physical (outer) parts of a computer that you as a user or non-user can see the hardware devices and touch them. For example we can say the C.P.U we can touch that device and also see it with our very own eyes.
Select the uses of an IPO Chart.
Can anyone do this I can't under stand
Answer:
I think u had to take notes in class
Explanation:
u have yo write 4 strings
What is the controller in this image know as? Choose one
Answer:
mode dial
Explanation:
In the Stop-and-Wait flow-control protocol, what best describes the sender’s (S) and receiver’s (R) respective window sizes?
Answer:
The answer is "For the stop and wait the value of S and R is equal to 1".
Explanation:
As we know that, the SR protocol is also known as the automatic repeat request (ARQ), this process allows the sender to sends a series of frames with window size, without waiting for the particular ACK of the recipient including with Go-Back-N ARQ. This process is mainly used in the data link layer, which uses the sliding window method for the reliable provisioning of data frames, that's why for the SR protocol the value of S =R and S> 1.What are the revised version of water mill and horse cart
Answer:
A watermill or water mill is a mill that uses hydropower. It is a structure that uses a water wheel or water turbine
Explanation:
Upload your completed chart using the information you gained in your interviews.
Answer:
1.) X-ray Technician
Lead Apron & X-ray Machine
X-ray machine is used to make an image of a person’s bones, and the lead apron is used to block the radiation.
2.) Shipyard Project Manager
Hardhat & Gas Monitors
Gas monitors are used to detect gas leaks; while the hardhats are used to protect from falling objects.
3.) Teacher
Computers & Promethean Boards
Computers are used to project the assignments onto the Promethean boards.
Explanation:
Make me the brainliest!!! Thanks!!!
a) Explain any two problems associated with the existing system used by the organization. (25 marks)
Answer:
Lack of Strategy
Many of the most common MIS issues can be traced back to a lack of a solid strategy. Information systems leaders are well aware of the many tools available to gather data on their network. But putting that information to use is often a challenge.
At one time, technology departments served as a separate operation, providing tech support and keeping an organization’s server equipment running. Today, MIS leadership often sits alongside other business leaders, working together to ensure that the technology being used supports the overall mission of the company moving forward.
Meeting Organizational Needs
MIS plays an ever-increasing role in organizations, with professionals relying on technology for every aspect of operations. Sales and marketing rely heavily on customer relationship software to track client interactions, for instance, while accounting needs its own software for billing, invoicing and financial tracking.
With more than half of all companies now relying on big data analytics, MIS is playing an even more important role. Before making a decision, today’s management teams are likely to pull reports on existing activity to ensure they use facts rather than make educated guesses.
Explanation:
What data types should the following data be, Number or String?
The today's high temperature
Number
String
It should be number because people usually messure temprature in interger form. So it would be more effeicient to use number.
Identify the types of networks described.
A home network is a ______.
The network in a state is a _______.
The internet is a _______.
options for all three:
Wi-Fi Hotspot
Local Area Network (LAN)
Wide Area Network (WAN)
Answer:
wi-fi hotspot, local area network, wide area network
Explanation:
think about it. how are you on this site? you might be at home. you are using a wifi hotspot to connect to brainly. at home.
or maybe at school
the state network is LAN and even wider than that is the internet which is a WAN
The function below takes two parameters: a string parameter: csv_string and an integer index. This string parameter will hold a comma-separated collection of integers: ‘111, 22,3333,4’. Complete the function to return the indexth value (counting from zero) from the comma-separated values as an integer. For example, your code should return 3333 (not ‘3333 *) if the example string is provided with an index value of 2. Hints you should consider using the split() method and the int() function. print.py 1 – def get_nth_int_from_CSV(CSV_string, index): Show transcribed image text The function below takes two parameters: a string parameter: csv_string and an integer index. This string parameter will hold a comma-separated collection of integers: ‘111, 22,3333,4’. Complete the function to return the indexth value (counting from zero) from the comma-separated values as an integer. For example, your code should return 3333 (not ‘3333 *) if the example string is provided with an index value of 2. Hints you should consider using the split() method and the int() function. print.py 1 – def get_nth_int_from_CSV(CSV_string, index):
Answer:
The complete function is as follows:
def get_nth_int_from_CSV(CSV_string, index):
splitstring = CSV_string.split(",")
print(int(splitstring[index]))
Explanation:
This defines the function
def get_nth_int_from_CSV(CSV_string, index):
This splits the string by comma (,)
splitstring = CSV_string.split(",")
This gets the string at the index position, converts it to an integer and print the converted integer
print(int(splitstring[index]))
1. You have a light in your living room that you can turn on or off from either (A) the living room, or (B) the kitchen.
does anyone know what gate this would be??
Answer:
Table lamps or floor lamps with an adjustable head are the ideal fixtures for providing task lighting in living rooms.
Explanation:
what is real time os ?
Explanation:
A real-time operating system (RTOS) is an operating system (OS) intended to serve real-time applications that process data as it comes in, typically without buffer delays. Processing time requirements (including any OS delay) are measured in tenths of seconds or shorter increments of time. A real-time system is a time-bound system which has well-defined, fixed time constraints. Processing must be done within the defined constraints or the system will fail. They are either event-driven or time-sharing. Event-driven systems switch between tasks based on their priorities, while time-sharing systems switch the task based on clock interrupts. Most RTOSs use a pre-emptive scheduling algorithm.
Write a recursive function is_pow2(n) that returns True if the positive integer n is an integer power of 2, and False otherwise. For example: function call return value is_pow2(1) True is_pow2(2) True is_pow2(3) False is_pow2(4) True is_pow2(5) False is_pow2(6) False is_pow2(7) False is_pow2(8) True is_pow2(9) False is_pow2(255) False is_pow2(256) True Hint: Consider using repeated floor division.
Answer:
In Python:
def is_power(n):
if n > 2:
n = n/2
return is_power(n)
elif n == 2:
return True
else:
return False
Explanation:
This defines the function
def is_power(n):
If n is greater than 0
if n > 2:
Divide n by 2
n = n/2
Call the function
return is_power(n)
If n equals 2
elif n == 2:
Return True
return True
If n is less than 2
else:
Then, return false
return False
A Quicksort (or Partition Exchange Sort) divides the data into 2 partitions separated by a pivot. The first partition contains all the items which are smaller than the pivot. The remaining items are in the other partition. You will write four versions of Quicksort:
• Select the first item of the partition as the pivot. Treat partitions of size one and two as stopping cases.
• Same pivot selection. For a partition of size 100 or less, use an insertion sort to finish.
• Same pivot selection. For a partition of size 50 or less, use an insertion sort to finish.
• Select the median-of-three as the pivot. Treat partitions of size one and two as stopping cases.
As time permits consider examining additional, alternate methods of selecting the pivot for Quicksort.
Merge Sort is a useful sort to know if you are doing External Sorting. The need for this will increase as data sizes increase. The traditional Merge Sort requires double space. To eliminate this issue, you are to implement Natural Merge using a linked implementation. In your analysis be sure to compare to the effect of using a straight Merge Sort instead.
Create input files of four sizes: 50, 1000, 2000, 5000 and 10000 integers. For each size file make 3 versions. On the first use a randomly ordered data set. On the second use the integers in reverse order. On the third use the
integers in normal ascending order. (You may use a random number generator to create the randomly ordered file, but it is important to limit the duplicates to <1%. Alternatively, you may write a shuffle function to randomize one of your ordered files.) This means you have an input set of 15 files plus whatever you deem necessary and reasonable. Files are available in the Blackboard shell, if you want to copy them. Your data should be formatted so that each number is on a separate line with no leading blanks. There should be no blank lines in the file. Even though you are limiting the occurrence of duplicates, your sorts must be able to handle duplicate data.
Each sort must be run against all the input files. With five sorts and 15 input sets, you will have 75 required runs.
The size 50 files are for the purpose of showing the sorting is correct. Your code needs to print out the comparisons and exchanges (see below) and the sorted values. You must submit the input and output files for all orders of size 50, for all sorts. There should be 15 output files here.
The larger sizes of input are used to demonstrate the asymptotic cost. To demonstrate the asymptotic cost you will need to count comparisons and exchanges for each sort. For these files at the end of each run you need to print the number of comparisons and the number of exchanges but not the sorted data. It is to your advantage to add larger files or additional random files to the input - perhaps with 15-20% duplicates. You may find it interesting to time the runs, but this should be in addition to counting comparisons and exchanges.
Turn in an analysis comparing the two sorts and their performance. Be sure to comment on the relative numbers of exchanges and comparison in the various runs, the effect of the order of the data, the effect of different size files, the effect of different partition sizes and pivot selection methods for Quicksort, and the effect of using a Natural Merge Sort. Which factor has the most effect on the efficiency? Be sure to consider both time and space efficiency. Be sure to justify your data structures. Your analysis must include a table of the comparisons and exchanges observed and a graph of the asymptotic costs that you observed compared to the theoretical cost. Be sure to justify your choice of iteration versus recursion. Consider how your code would have differed if you had made the other choice.
The necessary conditions and procedures needed to accomplish this assignment is given below. Quicksort is an algorithm used to sort data in a fast and efficient manner.
What is the Quicksort?Some rules to follow in the above work are:
A)Choose the initial element of the partition as the pivot.
b) Utilize the same method to select the pivot, but switch to insertion sort as the concluding step for partitions that contain 100 or fewer elements.
Lastly, Utilize the same method of pivot selection, but choose insertion sort for partitions that are of a size equal to or lesser than 50 in order to accomplish the task.
Learn more about Quicksort from
https://brainly.com/question/29981648
#SPJ1
what is a computer modem?
Answer:
A modem modulates and demodulates electrical signals sent through phone lines, coaxial cables, or other types of wiring.
define the term output devices
So a output device is anything that can output info from the computer so
we are read and understand it some are a printer monitor and soundboard
Hope this helped
-scav
Dealerships for Subaru and other automobile manufacturers keep records of the mileage of cars they sell and service. Mileage data are used to remind customers of when they need to schedule service appointments, but they are used for other purposes as well. What kinds of decisions does this piece of 486 data support at the local level and at the corporate level? What would happen if this piece of data were erroneous, for example, showing mileage of 130,000 instead of 30,000? How would it affect decision making? Assess its business impact.
The kinds of decisions does this piece of 486 data support at the local level and at the corporate level is least servicing.
What is the issue about?The Dealerships for Sabaru and other automobile manufacturers is one that needs the ability to be able to know the brand of car that has the least requirement for servicing.
Note that On the other-hand, at the corporate level, the records is one that can afford them the ability to be able to know the automobile manufacturers that they will keep on trading with under dealership as a result of the feedback from their customers.
Hence, The kinds of decisions does this piece of 486 data support at the local level and at the corporate level is least servicing.
Learn more about Mileage data from
https://brainly.com/question/10093236
#SPJ1
what is the name of the program or service that lets you view e -mail messeges?
The program or service that allows you to view email messages is called an email client.
What is the name of the program?An email client is a software program or service that enables users to access, manage and view their email messages. It provides user-friendly interface for reading, composing and organizing emails.
Popular examples of email clients include Micro/soft Outlook, Gm/ail, Mo/zilla Thunderbird and Ap/ple Mail. These clients allow users to connect to their email accounts, retrieve messages from email servers and display them in an organized manner for easy viewing and interaction.
Read more about email client
brainly.com/question/24688558
#SPJ1
Which of the following best describes the ribbon?
In computer science, a ribbon refers to a graphical user interface (GUI) element used in software applications to provide access to various functions and features.
What is the Ribbon?The ribbon is typically a horizontal strip located at the top of the application window and contains tabs and groups of commands organized by functionality.
Users can click on a tab to display a group of related commands, and then select the desired command to perform a specific task. The ribbon was introduced in Microsoft Office 2007 and has since been adopted by many other software applications as a modern and user-friendly interface for organizing and accessing program features.
Read more about graphics here:
https://brainly.com/question/18068928
#SPJ1
What are some ways you can work with templates? Check all that apply.
A. creating a new template from scratch
B. scanning a template from a printed page
C. using many different templates in one document
D. using a preexisting template
E. modifying a preexisting template
Answer:
Look at the other answer that guy knows what he is talking about
Explanation:
The values at index X in the first array corresponds to the value at the same index position in the second array. Initialize the arrays in (a) and (b) above, write java statements to determine and display the highest sales value and the month in which it occured. Use the JoptionPane class to display the output
To determine and display the highest sales value and the month in which it occurred, you can use the following Java code:
Program:
import javax.swing.JOptionPane;
public class SalesAnalysis {
public static void main(String[] args) {
int[] sales = {1200, 1500, 900, 1800, 2000};
String[] months = {"January", "February", "March", "April", "May"};
int maxSales = sales[0];
int maxIndex = 0;
for (int i = 1; i < sales.length; i++) {
if (sales[i] > maxSales) {
maxSales = sales[i];
maxIndex = i;
}
}
String output = "The highest sales value is $" + maxSales +
" and it occurred in " + months[maxIndex] + ".";
JOptionPane.showMessageDialog(null, output);
}
}
In this illustration, the arrays "sales" and "months" stand in for the relevant sales figures and months, respectively. These arrays are initialised using sample values.
The code then loops through the'sales' array, comparing each value to the current maximum sales value. If a greater value is discovered, the'maxSales' variable is updated, and the associated index is recorded in the'maxIndex' variable.
The highest sales value and the month it occurred in are presented in a message dialogue that is shown using the 'JOptionPane.showMessageDialog' function.
When this code is run, a dialogue box containing the desired output—the highest sales amount and the matching month—is displayed.
For more questions on message dialog, click on:
https://brainly.com/question/32343639
#SPJ8
Help me .tìm ra câu đó giúp e vs an
"C" is your answer question
When you're formatting in excel 2013 there are basically three levels of formatting, put the
three levels in order of top to bottom levels
Answer:
The answer is "themes, styles, and direct formatting".
Explanation:
The selection of regular colors, font color, or type effects is also known as the Themes. There are many built-on Excel categories accessible mostly on page layout menu: an overview of its impact on the workbook could be accessed via a topic. You may find which various fonts will affect the design of your workbook. The style of a column is indeed a defined collection of layout tools like font and font color, numbers, cell borders, and cell shading. The range of cell styles incorporated, that can be added or modified. It could also alter or double a cell template to build your customizable cell model. To use a customized format it includes the font, color, borders, etc. It is the direct formatting for the document at a certain time and anywhere. It selects the cell and starts changing the font from the font drop list to modify the font of its current document.In a multimedia presentation, when might voice-over be a better choice than placing the text on the screen?
when you have very little to say
when your audience is bored
when you have a lot to say
when you don’t want to write
In a multimedia presentation, the option that might be the voice-over when you have a lot to say.
What is multimedia presentation?A multimedia presentation is known to be a presentation where a person is said to often stand by themselves to present information via slides, video, etc.
In a multimedia presentation, the option that might be in the case of voice-over is when you have a lot to say as it is better to put it in a video format.
Learn more about multimedia from
https://brainly.com/question/24138353
#SPJ2
3. Based on the code you created in this Unit, propose a way to re-use most of the code
(with different information in the variables like "city" and "rates) for a part of a similar app
that isn't related to parking at all. The app can be small-scale or large scale, but should be clearly connected to the code you’ve writted (you can defend your proposal if the connection is not immediately obvious).
One possible way to reuse the code for a similar app is to modify it for a hotel booking system. Instead of parking rates for different cities, the modified app could display room rates for different hotels in various cities.
The basic structure of the code can be kept the same, with adjustments made to the variable names, input fields, and calculations. The "city" variable can be replaced with a "hotel" variable, and the "rates" variable can be replaced with a "room rates" variable.
The user input can be modified to ask for the desired hotel and room type, and the app can display the available room rates for that selection.
To learn more about the booking system, follow the link:
https://brainly.com/question/28315659
#SPJ1
You have been trying all day to check your direct messages on social media. The site is really slow to load and sometimes you can't even get to it at all. Your friends seem to be having the same problem. What could be happening?
The Cyber in Cybercrime
What could possibly happen can come in two phases if you cannot access your direct messages
When trying to access a website, especially social media, if you are the only one not being able to check their direct messages, it is possible your internet connection is bad or maybe you do not have internet access at all.In a situation were by others are experiencing the same issue, then there is every likely hood that the problem might be from the websiteLearn more about Social media here:
https://brainly.com/question/3653791
What is the function of the Output Unit
Output devices provide a visible (monitor), audible (speakers), or media response from the computer.
What certificates does the Common Access Card CAC or personal identity verification?
Answer: CAC is based on X. 509 certificates with a software middleware that lets a operating system interface your card
Explanation:
in the situation above, what ict trend andy used to connect with his friends and relatives
The ICT trend that Andy can use to connect with his friends and relatives such that they can maintain face-to-face communication is video Conferencing.
What are ICT trends?ICT trends refer to those innovations that allow us to communicate and interact with people on a wide scale. There are different situations that would require a person to use ICT trends for interactions.
If Andy has family and friends abroad and wants to keep in touch with them, video conferencing would give him the desired effect.
Learn more about ICT trends here:
https://brainly.com/question/13724249
#SPJ1